Class BasicRedisPersistentEntity<T>
java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T, RedisPersistentProperty>
org.springframework.data.keyvalue.core.mapping.BasicKeyValuePersistentEntity<T, RedisPersistentProperty>
org.springframework.data.redis.core.mapping.BasicRedisPersistentEntity<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Iterable<RedisPersistentProperty>, Aware, EnvironmentAware, EnvironmentCapable, KeyValuePersistentEntity<T, RedisPersistentProperty>, MutablePersistentEntity<T, RedisPersistentProperty>, PersistentEntity<T, RedisPersistentProperty>, RedisPersistentEntity<T>
public class BasicRedisPersistentEntity<T>
extends BasicKeyValuePersistentEntity<T, RedisPersistentProperty>
implements RedisPersistentEntity<T>
RedisPersistentEntity implementation.- Author:
- Christoph Strobl, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionBasicRedisPersistentEntity(TypeInformation<T> information, @Nullable KeySpaceResolver keySpaceResolver, TimeToLiveAccessor timeToLiveAccessor) Creates newBasicRedisPersistentEntity. -
Method Summary
Modifier and TypeMethodDescription@Nullable RedisPersistentPropertyGet thePersistentPropertythat is annotated withTimeToLive.Get theTimeToLiveAccessorassociated with the entity.protected @Nullable RedisPersistentPropertyMethods inherited from class BasicKeyValuePersistentEntity
getKeySpaceMethods inherited from class BasicPersistentEntity
addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEnvironment, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getValueEvaluationContext, getValueEvaluationContext, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, setEnvironment, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, requiresPropertyPopulationMethods inherited from interface RedisPersistentEntity
hasExplicitTimeToLiveProperty, isExpiring
-
Constructor Details
-
BasicRedisPersistentEntity
public BasicRedisPersistentEntity(TypeInformation<T> information, @Nullable KeySpaceResolver keySpaceResolver, TimeToLiveAccessor timeToLiveAccessor) Creates newBasicRedisPersistentEntity.- Parameters:
information- must not be null.keySpaceResolver- can be null.timeToLiveAccessor- can be null.
-
-
Method Details
-
getTimeToLiveAccessor
Description copied from interface:RedisPersistentEntityGet theTimeToLiveAccessorassociated with the entity.- Specified by:
getTimeToLiveAccessorin interfaceRedisPersistentEntity<T>- Returns:
- never null.
-
getExplicitTimeToLiveProperty
Description copied from interface:RedisPersistentEntityGet thePersistentPropertythat is annotated withTimeToLive.- Specified by:
getExplicitTimeToLivePropertyin interfaceRedisPersistentEntity<T>- Returns:
- can be null.
-
returnPropertyIfBetterIdPropertyCandidateOrNull
protected @Nullable RedisPersistentProperty returnPropertyIfBetterIdPropertyCandidateOrNull(RedisPersistentProperty property) - Overrides:
returnPropertyIfBetterIdPropertyCandidateOrNullin classBasicPersistentEntity<T, RedisPersistentProperty>
-