Interface RedisPersistentEntity<T>
- Type Parameters:
T-
- All Superinterfaces:
Aware, EnvironmentAware, Iterable<RedisPersistentProperty>, KeyValuePersistentEntity<T, RedisPersistentProperty>, MutablePersistentEntity<T, RedisPersistentProperty>, PersistentEntity<T, RedisPersistentProperty>
- All Known Implementing Classes:
BasicRedisPersistentEntity
public interface RedisPersistentEntity<T>
extends KeyValuePersistentEntity<T, RedisPersistentProperty>
Redis specific
PersistentEntity.- Since:
- 1.7
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescription@Nullable RedisPersistentPropertyGet thePersistentPropertythat is annotated withTimeToLive.Get theTimeToLiveAccessorassociated with the entity.default booleandefault booleanMethods inherited from interface EnvironmentAware
setEnvironmentMethods inherited from interface Iterable
forEach, iterator, spliteratorMethods inherited from interface KeyValuePersistentEntity
getKeySpace, getRequiredKeySpaceMethods inherited from interface MutablePersistentEntity
addAssociation, addPersistentProperty, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyMethods inherited from interface PersistentEntity
doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
-
Method Details
-
getTimeToLiveAccessor
TimeToLiveAccessor getTimeToLiveAccessor()Get theTimeToLiveAccessorassociated with the entity.- Returns:
- never null.
-
hasExplicitTimeToLiveProperty
default boolean hasExplicitTimeToLiveProperty()- Returns:
- true when a property is annotated with
TimeToLive. - Since:
- 3.4
-
getExplicitTimeToLiveProperty
@Nullable RedisPersistentProperty getExplicitTimeToLiveProperty()Get thePersistentPropertythat is annotated withTimeToLive.- Returns:
- can be null.
- Since:
- 1.8
-
isExpiring
default boolean isExpiring()- Returns:
- true if the entity could potentially expire.
- Since:
- 2.3
-