Class BasicAerospikePersistentEntity<T>
java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T,AerospikePersistentProperty>
org.springframework.data.aerospike.mapping.BasicAerospikePersistentEntity<T>
- All Implemented Interfaces:
Iterable<AerospikePersistentProperty>,Aware,EnvironmentAware,AerospikePersistentEntity<T>,MutablePersistentEntity<T,,AerospikePersistentProperty> PersistentEntity<T,AerospikePersistentProperty>
public class BasicAerospikePersistentEntity<T>
extends BasicPersistentEntity<T,AerospikePersistentProperty>
implements AerospikePersistentEntity<T>, EnvironmentAware
Default implementation of
AerospikePersistentEntity.- Author:
- Oliver Gierke
-
Constructor Summary
ConstructorsConstructorDescriptionBasicAerospikePersistentEntity(TypeInformation<T> information) Creates a newBasicAerospikePersistentEntityusing a givenTypeInformation. -
Method Summary
Modifier and TypeMethodDescriptionvoidintbooleanbooleanvoidsetEnvironment(Environment environment) Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addAssociation, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
-
Constructor Details
-
BasicAerospikePersistentEntity
Creates a newBasicAerospikePersistentEntityusing a givenTypeInformation.- Parameters:
information- must not be null.
-
-
Method Details
-
addPersistentProperty
- Specified by:
addPersistentPropertyin interfaceMutablePersistentEntity<T,AerospikePersistentProperty> - Overrides:
addPersistentPropertyin classBasicPersistentEntity<T,AerospikePersistentProperty>
-
getSetName
- Specified by:
getSetNamein interfaceAerospikePersistentEntity<T>- Returns:
- set name
-
getExpiration
public int getExpiration()- Specified by:
getExpirationin interfaceAerospikePersistentEntity<T>- Returns:
- expiration value in seconds
-
isTouchOnRead
public boolean isTouchOnRead()- Specified by:
isTouchOnReadin interfaceAerospikePersistentEntity<T>- Returns:
- value of an optional
Document.touchOnRead()flag
-
getExpirationProperty
- Specified by:
getExpirationPropertyin interfaceAerospikePersistentEntity<T>- Returns:
- expiration property
-
hasExpirationProperty
public boolean hasExpirationProperty()- Specified by:
hasExpirationPropertyin interfaceAerospikePersistentEntity<T>- Returns:
- true if there is expiration property
-
setEnvironment
- Specified by:
setEnvironmentin interfaceEnvironmentAware
-