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
ConstructorDescriptionBasicAerospikePersistentEntity
(TypeInformation<T> information) Creates a newBasicAerospikePersistentEntity
using a givenTypeInformation
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
boolean
boolean
void
setEnvironment
(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, verify
Methods inherited from class java.lang.Object
equals, 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
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 newBasicAerospikePersistentEntity
using a givenTypeInformation
.- Parameters:
information
- must not be null.
-
-
Method Details
-
addPersistentProperty
- Specified by:
addPersistentProperty
in interfaceMutablePersistentEntity<T,
AerospikePersistentProperty> - Overrides:
addPersistentProperty
in classBasicPersistentEntity<T,
AerospikePersistentProperty>
-
getSetName
- Specified by:
getSetName
in interfaceAerospikePersistentEntity<T>
- Returns:
- set name
-
getExpiration
public int getExpiration()- Specified by:
getExpiration
in interfaceAerospikePersistentEntity<T>
- Returns:
- expiration value in seconds
-
isTouchOnRead
public boolean isTouchOnRead()- Specified by:
isTouchOnRead
in interfaceAerospikePersistentEntity<T>
- Returns:
- value of an optional
Document.touchOnRead()
flag
-
getExpirationProperty
- Specified by:
getExpirationProperty
in interfaceAerospikePersistentEntity<T>
- Returns:
- expiration property
-
hasExpirationProperty
public boolean hasExpirationProperty()- Specified by:
hasExpirationProperty
in interfaceAerospikePersistentEntity<T>
- Returns:
- true if there is expiration property
-
setEnvironment
- Specified by:
setEnvironment
in interfaceEnvironmentAware
-