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()
Deprecated.
|
static int |
getExpiry(Expiry annotation,
Environment environment)
Deprecated.
|
Duration |
getExpiryDuration()
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>@Deprecated public int getExpiry()
CouchbasePersistentEntityThe Couchbase format for expiration time is: - for TTL < 31 days (<= 30 * 24 * 60 * 60): expressed as a TTL in seconds - for TTL > 30 days: expressed as Unix UTC time of expiry (number of SECONDS since the Epoch)
getExpiry in interface CouchbasePersistentEntity<T>@Deprecated public static int getExpiry(Expiry annotation, Environment environment)
public Duration getExpiryDuration()
CouchbasePersistentEntityThe Couchbase format for expiration time is: - for TTL < 31 days (<= 30 * 24 * 60 * 60): expressed as a TTL in seconds - for TTL > 30 days: expressed as Unix UTC time of expiry (number of SECONDS since the Epoch)
getExpiryDuration in interface CouchbasePersistentEntity<T>public boolean isTouchOnRead()
CouchbasePersistentEntityisTouchOnRead in interface CouchbasePersistentEntity<T>Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.