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
getExpiry
in interface CouchbasePersistentEntity<T>
@Deprecated public static int getExpiry(Expiry annotation, Environment environment)
public Duration getExpiryDuration()
CouchbasePersistentEntity
getExpiryDuration
in interface CouchbasePersistentEntity<T>
public boolean isTouchOnRead()
CouchbasePersistentEntity
isTouchOnRead
in interface CouchbasePersistentEntity<T>
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.