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, verify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doWithAll, 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, requiresPropertyPopulation
forEach, iterator, spliterator
public BasicCouchbasePersistentEntity(TypeInformation<T> typeInformation)
typeInformation
- the type information of the entity.public void setEnvironment(Environment environment)
setEnvironment
in interface EnvironmentAware
protected CouchbasePersistentProperty returnPropertyIfBetterIdPropertyCandidateOrNull(CouchbasePersistentProperty property)
returnPropertyIfBetterIdPropertyCandidateOrNull
in class BasicPersistentEntity<T,CouchbasePersistentProperty>
@Deprecated public int getExpiry()
CouchbasePersistentEntity
The 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()
CouchbasePersistentEntity
The 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()
CouchbasePersistentEntity
isTouchOnRead
in interface CouchbasePersistentEntity<T>
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.