Class AbstractMarkLogicConverter
- java.lang.Object
-
- io.github.malteseduck.springframework.data.marklogic.core.convert.AbstractMarkLogicConverter
-
- All Implemented Interfaces:
MarkLogicConverter,org.springframework.data.convert.EntityConverter<MarkLogicPersistentEntity<?>,MarkLogicPersistentProperty,Object,DocumentDescriptor>,org.springframework.data.convert.EntityReader<Object,DocumentDescriptor>,org.springframework.data.convert.EntityWriter<Object,DocumentDescriptor>
- Direct Known Subclasses:
JacksonMarkLogicConverter
public abstract class AbstractMarkLogicConverter extends Object implements MarkLogicConverter
-
-
Constructor Summary
Constructors Constructor Description AbstractMarkLogicConverter(org.springframework.data.mapping.context.MappingContext<? extends MarkLogicPersistentEntity<?>,MarkLogicPersistentProperty> mappingContext)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <R> RdoRead(Class<R> type, DocumentDescriptor source)abstract voiddoWrite(Object source, DocumentDescriptor sink)org.springframework.core.convert.ConversionServicegetConversionService()List<String>getDocumentUris(List<?> ids)<T> List<String>getDocumentUris(List<?> ids, Class<T> entityClass)org.springframework.data.mapping.context.MappingContext<? extends MarkLogicPersistentEntity<?>,MarkLogicPersistentProperty>getMappingContext()<R> Rread(Class<R> clazz, DocumentDescriptor doc)<T> com.marklogic.client.query.QueryDefinitionwrapQuery(com.marklogic.client.query.StructuredQueryDefinition query, Class<T> entityClass)voidwrite(Object source, DocumentDescriptor doc)
-
-
-
Constructor Detail
-
AbstractMarkLogicConverter
public AbstractMarkLogicConverter(org.springframework.data.mapping.context.MappingContext<? extends MarkLogicPersistentEntity<?>,MarkLogicPersistentProperty> mappingContext)
-
-
Method Detail
-
getMappingContext
public org.springframework.data.mapping.context.MappingContext<? extends MarkLogicPersistentEntity<?>,MarkLogicPersistentProperty> getMappingContext()
- Specified by:
getMappingContextin interfaceorg.springframework.data.convert.EntityConverter<MarkLogicPersistentEntity<?>,MarkLogicPersistentProperty,Object,DocumentDescriptor>
-
getConversionService
public org.springframework.core.convert.ConversionService getConversionService()
- Specified by:
getConversionServicein interfaceorg.springframework.data.convert.EntityConverter<MarkLogicPersistentEntity<?>,MarkLogicPersistentProperty,Object,DocumentDescriptor>
-
write
public void write(Object source, DocumentDescriptor doc)
- Specified by:
writein interfaceorg.springframework.data.convert.EntityWriter<Object,DocumentDescriptor>
-
read
public <R> R read(Class<R> clazz, DocumentDescriptor doc)
- Specified by:
readin interfaceorg.springframework.data.convert.EntityReader<Object,DocumentDescriptor>
-
getDocumentUris
public List<String> getDocumentUris(List<?> ids)
- Specified by:
getDocumentUrisin interfaceMarkLogicConverter
-
getDocumentUris
public <T> List<String> getDocumentUris(List<?> ids, Class<T> entityClass)
- Specified by:
getDocumentUrisin interfaceMarkLogicConverter
-
wrapQuery
public <T> com.marklogic.client.query.QueryDefinition wrapQuery(com.marklogic.client.query.StructuredQueryDefinition query, Class<T> entityClass)- Specified by:
wrapQueryin interfaceMarkLogicConverter
-
doRead
public abstract <R> R doRead(Class<R> type, DocumentDescriptor source)
- Specified by:
doReadin interfaceMarkLogicConverter
-
doWrite
public abstract void doWrite(Object source, DocumentDescriptor sink)
- Specified by:
doWritein interfaceMarkLogicConverter
-
-