Class BasicMarkLogicPersistentEntity<T>
- java.lang.Object
-
- org.springframework.data.mapping.model.BasicPersistentEntity<T,MarkLogicPersistentProperty>
-
- io.github.malteseduck.springframework.data.marklogic.core.mapping.BasicMarkLogicPersistentEntity<T>
-
- All Implemented Interfaces:
MarkLogicPersistentEntity<T>,Iterable<MarkLogicPersistentProperty>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.data.mapping.model.MutablePersistentEntity<T,MarkLogicPersistentProperty>,org.springframework.data.mapping.PersistentEntity<T,MarkLogicPersistentProperty>
public class BasicMarkLogicPersistentEntity<T> extends org.springframework.data.mapping.model.BasicPersistentEntity<T,MarkLogicPersistentProperty> implements MarkLogicPersistentEntity<T>, org.springframework.context.ApplicationContextAware
-
-
Constructor Summary
Constructors Constructor Description BasicMarkLogicPersistentEntity(org.springframework.data.util.TypeInformation<T> information)BasicMarkLogicPersistentEntity(org.springframework.data.util.TypeInformation<T> information, Comparator<MarkLogicPersistentProperty> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseUri()Returns the base URI of the entity.StringgetCollection()Returns the collection the entity shall be persisted to.com.marklogic.client.io.FormatgetDocumentFormat()Determines the serialization format for the entity, i.e.Class<? extends ServerTransformer>getTransformer()Gets the configured server transformer classStringgetTypeName()Gets the name of the type to use when interacting with the databaseTypePersistenceStrategygetTypePersistenceStrategy()Returns the strategy for determining how to preserve "type" information about a document.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)-
Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
-
-
-
-
Constructor Detail
-
BasicMarkLogicPersistentEntity
public BasicMarkLogicPersistentEntity(org.springframework.data.util.TypeInformation<T> information)
-
BasicMarkLogicPersistentEntity
public BasicMarkLogicPersistentEntity(org.springframework.data.util.TypeInformation<T> information, Comparator<MarkLogicPersistentProperty> comparator)
-
-
Method Detail
-
getBaseUri
public String getBaseUri()
Description copied from interface:MarkLogicPersistentEntityReturns the base URI of the entity.- Specified by:
getBaseUriin interfaceMarkLogicPersistentEntity<T>
-
getCollection
public String getCollection()
Description copied from interface:MarkLogicPersistentEntityReturns the collection the entity shall be persisted to.- Specified by:
getCollectionin interfaceMarkLogicPersistentEntity<T>
-
getTypePersistenceStrategy
public TypePersistenceStrategy getTypePersistenceStrategy()
Description copied from interface:MarkLogicPersistentEntityReturns the strategy for determining how to preserve "type" information about a document.- Specified by:
getTypePersistenceStrategyin interfaceMarkLogicPersistentEntity<T>
-
getDocumentFormat
public com.marklogic.client.io.Format getDocumentFormat()
Description copied from interface:MarkLogicPersistentEntityDetermines the serialization format for the entity, i.e. JSON, XML, or binary formats- Specified by:
getDocumentFormatin interfaceMarkLogicPersistentEntity<T>
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getTypeName
public String getTypeName()
Description copied from interface:MarkLogicPersistentEntityGets the name of the type to use when interacting with the database- Specified by:
getTypeNamein interfaceMarkLogicPersistentEntity<T>
-
getTransformer
public Class<? extends ServerTransformer> getTransformer()
Description copied from interface:MarkLogicPersistentEntityGets the configured server transformer class- Specified by:
getTransformerin interfaceMarkLogicPersistentEntity<T>
-
-