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 classDefaultMarkLogicQueryConversionService.BooleanToValueConverterstatic classDefaultMarkLogicQueryConversionService.MapToContainerQueryConverterstatic classDefaultMarkLogicQueryConversionService.NumberToValueConverterstatic classDefaultMarkLogicQueryConversionService.ObjectToContainerQueryConverterstatic classDefaultMarkLogicQueryConversionService.ObjectToStringValueConverterstatic classDefaultMarkLogicQueryConversionService.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.StructuredQueryDefinitionconvert(PropertyIndex index, Object source, List<String> options)com.marklogic.client.query.StructuredQueryDefinitionconvert(PropertyIndex index, Object source, List<String> options, org.springframework.core.convert.TypeDescriptor sourceType)protected com.marklogic.client.query.StructuredQueryDefinitionconvertNullSource(PropertyIndex index, List<String> options)protected QueryTypeConvertergetConverter(org.springframework.core.convert.TypeDescriptor sourceType)Map<Object,QueryTypeConverter>getConvertersToRegister()protected QueryTypeConvertergetDefaultConverter()protected org.springframework.core.convert.TypeDescriptorgetTypeFromSource(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:
convertin interfaceQueryConversionService
-
convert
public com.marklogic.client.query.StructuredQueryDefinition convert(PropertyIndex index, Object source, List<String> options, org.springframework.core.convert.TypeDescriptor sourceType)
- Specified by:
convertin interfaceQueryConversionService
-
getConvertersToRegister
public Map<Object,QueryTypeConverter> getConvertersToRegister()
- Specified by:
getConvertersToRegisterin 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()
-
-