Class DefaultMarkLogicQueryConversionService
- java.lang.Object
-
- io.github.malteseduck.springframework.data.marklogic.repository.query.convert.DefaultMarkLogicQueryConversionService
-
- All Implemented Interfaces:
QueryConversionService
public class DefaultMarkLogicQueryConversionService extends Object implements QueryConversionService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultMarkLogicQueryConversionService.BooleanToValueConverter
static class
DefaultMarkLogicQueryConversionService.MapToContainerQueryConverter
static class
DefaultMarkLogicQueryConversionService.NumberToValueConverter
static class
DefaultMarkLogicQueryConversionService.ObjectToContainerQueryConverter
static class
DefaultMarkLogicQueryConversionService.ObjectToStringValueConverter
static class
DefaultMarkLogicQueryConversionService.OldDateToStringValueConverter
-
Constructor Summary
Constructors Constructor Description DefaultMarkLogicQueryConversionService()
DefaultMarkLogicQueryConversionService(Map<Object,QueryTypeConverter> converters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.marklogic.client.query.StructuredQueryDefinition
convert(PropertyIndex index, Object source, List<String> options)
com.marklogic.client.query.StructuredQueryDefinition
convert(PropertyIndex index, Object source, List<String> options, org.springframework.core.convert.TypeDescriptor sourceType)
protected com.marklogic.client.query.StructuredQueryDefinition
convertNullSource(PropertyIndex index, List<String> options)
protected QueryTypeConverter
getConverter(org.springframework.core.convert.TypeDescriptor sourceType)
Map<Object,QueryTypeConverter>
getConvertersToRegister()
protected QueryTypeConverter
getDefaultConverter()
protected org.springframework.core.convert.TypeDescriptor
getTypeFromSource(Object source, org.springframework.core.convert.TypeDescriptor sourceType)
-
-
-
Constructor Detail
-
DefaultMarkLogicQueryConversionService
public DefaultMarkLogicQueryConversionService()
-
DefaultMarkLogicQueryConversionService
public DefaultMarkLogicQueryConversionService(Map<Object,QueryTypeConverter> converters)
-
-
Method Detail
-
convert
public com.marklogic.client.query.StructuredQueryDefinition convert(PropertyIndex index, Object source, List<String> options)
- Specified by:
convert
in interfaceQueryConversionService
-
convert
public com.marklogic.client.query.StructuredQueryDefinition convert(PropertyIndex index, Object source, List<String> options, org.springframework.core.convert.TypeDescriptor sourceType)
- Specified by:
convert
in interfaceQueryConversionService
-
getConvertersToRegister
public Map<Object,QueryTypeConverter> getConvertersToRegister()
- Specified by:
getConvertersToRegister
in interfaceQueryConversionService
-
getTypeFromSource
protected org.springframework.core.convert.TypeDescriptor getTypeFromSource(Object source, org.springframework.core.convert.TypeDescriptor sourceType)
-
convertNullSource
protected com.marklogic.client.query.StructuredQueryDefinition convertNullSource(PropertyIndex index, List<String> options)
-
getConverter
protected QueryTypeConverter getConverter(org.springframework.core.convert.TypeDescriptor sourceType)
-
getDefaultConverter
protected QueryTypeConverter getDefaultConverter()
-
-