public class BasicCouchbasePersistentEntity<T> extends BasicPersistentEntity<T,CouchbasePersistentProperty> implements CouchbasePersistentEntity<T>, EnvironmentAware
TTL_IN_SECONDS_INCLUSIVE_END| Constructor and Description |
|---|
BasicCouchbasePersistentEntity(TypeInformation<T> typeInformation)
Create a new entity.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getExpiry()
Returns the expiration time of the entity.
|
boolean |
isTouchOnRead()
Flag for using getAndTouch operations for reads, resetting the expiration (if one was set) when the entity is
directly read (eg. findOne, findById).
|
protected CouchbasePersistentProperty |
returnPropertyIfBetterIdPropertyCandidateOrNull(CouchbasePersistentProperty property) |
void |
setEnvironment(Environment environment) |
addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulationforEach, iterator, spliteratorpublic BasicCouchbasePersistentEntity(TypeInformation<T> typeInformation)
typeInformation - the type information of the entity.public void setEnvironment(Environment environment)
setEnvironment in interface EnvironmentAwareprotected CouchbasePersistentProperty returnPropertyIfBetterIdPropertyCandidateOrNull(CouchbasePersistentProperty property)
returnPropertyIfBetterIdPropertyCandidateOrNull in class BasicPersistentEntity<T,CouchbasePersistentProperty>public int getExpiry()
CouchbasePersistentEntitygetExpiry in interface CouchbasePersistentEntity<T>public boolean isTouchOnRead()
CouchbasePersistentEntityisTouchOnRead in interface CouchbasePersistentEntity<T>Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.