T - public class BasicRedisPersistentEntity<T> extends org.springframework.data.keyvalue.core.mapping.BasicKeyValuePersistentEntity<T,RedisPersistentProperty> implements RedisPersistentEntity<T>
RedisPersistentEntity implementation.| Constructor and Description |
|---|
BasicRedisPersistentEntity(TypeInformation<T> information,
org.springframework.data.keyvalue.core.mapping.KeySpaceResolver fallbackKeySpaceResolver,
TimeToLiveAccessor timeToLiveAccessor)
Creates new
BasicRedisPersistentEntity. |
| Modifier and Type | Method and Description |
|---|---|
RedisPersistentProperty |
getExplicitTimeToLiveProperty()
Get the
PersistentProperty that is annotated with TimeToLive. |
TimeToLiveAccessor |
getTimeToLiveAccessor()
Get the
TimeToLiveAccessor associated with the entity. |
boolean |
hasExplictTimeToLiveProperty() |
protected RedisPersistentProperty |
returnPropertyIfBetterIdPropertyCandidateOrNull(RedisPersistentProperty property) |
getKeySpaceaddAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isVersionProperty, iterator, setPersistentPropertyAccessorFactory, verifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeySpaceaddAssociation, addPersistentProperty, setPersistentPropertyAccessorFactory, verifydoWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isVersionPropertyforEach, iterator, spliteratorpublic BasicRedisPersistentEntity(TypeInformation<T> information, @Nullable org.springframework.data.keyvalue.core.mapping.KeySpaceResolver fallbackKeySpaceResolver, TimeToLiveAccessor timeToLiveAccessor)
BasicRedisPersistentEntity.information - must not be null.fallbackKeySpaceResolver - can be null.timeToLiveAccessor - can be null.public TimeToLiveAccessor getTimeToLiveAccessor()
RedisPersistentEntityTimeToLiveAccessor associated with the entity.getTimeToLiveAccessor in interface RedisPersistentEntity<T>public boolean hasExplictTimeToLiveProperty()
hasExplictTimeToLiveProperty in interface RedisPersistentEntity<T>TimeToLive.@Nullable public RedisPersistentProperty getExplicitTimeToLiveProperty()
RedisPersistentEntityPersistentProperty that is annotated with TimeToLive.getExplicitTimeToLiveProperty in interface RedisPersistentEntity<T>@Nullable protected RedisPersistentProperty returnPropertyIfBetterIdPropertyCandidateOrNull(RedisPersistentProperty property)
returnPropertyIfBetterIdPropertyCandidateOrNull in class BasicPersistentEntity<T,RedisPersistentProperty>Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.