Interface RedisPersistentEntity<T>

Type Parameters:
T -
All Superinterfaces:
Iterable<RedisPersistentProperty>, org.springframework.data.keyvalue.core.mapping.KeyValuePersistentEntity<T,RedisPersistentProperty>, org.springframework.data.mapping.model.MutablePersistentEntity<T,RedisPersistentProperty>, org.springframework.data.mapping.PersistentEntity<T,RedisPersistentProperty>
All Known Implementing Classes:
BasicRedisPersistentEntity

public interface RedisPersistentEntity<T> extends org.springframework.data.keyvalue.core.mapping.KeyValuePersistentEntity<T,RedisPersistentProperty>
Redis specific PersistentEntity.
Since:
1.7
Author:
Christoph Strobl
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the PersistentProperty that is annotated with TimeToLive.
    Get the TimeToLiveAccessor associated with the entity.
    boolean
     
    default boolean
     

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator

    Methods inherited from interface org.springframework.data.keyvalue.core.mapping.KeyValuePersistentEntity

    getKeySpace

    Methods inherited from interface org.springframework.data.mapping.model.MutablePersistentEntity

    addAssociation, addPersistentProperty, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verify

    Methods inherited from interface org.springframework.data.mapping.PersistentEntity

    doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
  • Method Details

    • getTimeToLiveAccessor

      TimeToLiveAccessor getTimeToLiveAccessor()
      Get the TimeToLiveAccessor associated with the entity.
      Returns:
      never null.
    • hasExplictTimeToLiveProperty

      boolean hasExplictTimeToLiveProperty()
      Returns:
      true when a property is annotated with TimeToLive.
      Since:
      1.8
    • getExplicitTimeToLiveProperty

      @Nullable RedisPersistentProperty getExplicitTimeToLiveProperty()
      Get the PersistentProperty that is annotated with TimeToLive.
      Returns:
      can be null.
      Since:
      1.8
    • isExpiring

      default boolean isExpiring()
      Returns:
      true if the entity could potentially expire.
      Since:
      2.3