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 String
getBaseUri()
Returns the base URI of the entity.String
getCollection()
Returns the collection the entity shall be persisted to.com.marklogic.client.io.Format
getDocumentFormat()
Determines the serialization format for the entity, i.e.Class<? extends ServerTransformer>
getTransformer()
Gets the configured server transformer classString
getTypeName()
Gets the name of the type to use when interacting with the databaseTypePersistenceStrategy
getTypePersistenceStrategy()
Returns the strategy for determining how to preserve "type" information about a document.void
setApplicationContext(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:MarkLogicPersistentEntity
Returns the base URI of the entity.- Specified by:
getBaseUri
in interfaceMarkLogicPersistentEntity<T>
-
getCollection
public String getCollection()
Description copied from interface:MarkLogicPersistentEntity
Returns the collection the entity shall be persisted to.- Specified by:
getCollection
in interfaceMarkLogicPersistentEntity<T>
-
getTypePersistenceStrategy
public TypePersistenceStrategy getTypePersistenceStrategy()
Description copied from interface:MarkLogicPersistentEntity
Returns the strategy for determining how to preserve "type" information about a document.- Specified by:
getTypePersistenceStrategy
in interfaceMarkLogicPersistentEntity<T>
-
getDocumentFormat
public com.marklogic.client.io.Format getDocumentFormat()
Description copied from interface:MarkLogicPersistentEntity
Determines the serialization format for the entity, i.e. JSON, XML, or binary formats- Specified by:
getDocumentFormat
in interfaceMarkLogicPersistentEntity<T>
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getTypeName
public String getTypeName()
Description copied from interface:MarkLogicPersistentEntity
Gets the name of the type to use when interacting with the database- Specified by:
getTypeName
in interfaceMarkLogicPersistentEntity<T>
-
getTransformer
public Class<? extends ServerTransformer> getTransformer()
Description copied from interface:MarkLogicPersistentEntity
Gets the configured server transformer class- Specified by:
getTransformer
in interfaceMarkLogicPersistentEntity<T>
-
-