Top Description Methods
org.hibernate.cache.cfg.spi

public Interface EntityDataCachingConfig

extends DomainDataCachingConfig
Known Direct Implementers
org.hibernate.cache.cfg.internal.EntityDataCachingConfigImpl
Imports
java.util.Comparator, .Set, java.util.function.Supplier, org.hibernate.metamodel.model.domain.NavigableRole

Specialized DomainDataCachingConfig describing the requested caching config for a particular entity hierarchy's state data
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Set<NavigableRole>
getCachedTypes()

The list of specific subclasses of the root that are actually written to cache.

public Supplier<Comparator<T>>
getVersionComparatorAccess()

Access to the comparator to be used with the entity's version.

public boolean
isVersioned()

Redeclares org.hibernate.cache.cfg.spi.DomainDataCachingConfig.isVersioned.

Mainly here to allow optimization of not having to know the actual comparator instance to use here yet.
Inherited from org.hibernate.cache.cfg.spi.DomainDataCachingConfig:
getAccessTypegetNavigableRoleisMutable

Method Detail

getCachedTypesback to summary
public Set<NavigableRole> getCachedTypes()

The list of specific subclasses of the root that are actually written to cache.

getVersionComparatorAccessback to summary
public Supplier<Comparator<T>> getVersionComparatorAccess()

Access to the comparator to be used with the entity's version. If the entity is not versioned, then this method returns null.

isVersionedback to summary
public boolean isVersioned()

Redeclares org.hibernate.cache.cfg.spi.DomainDataCachingConfig.isVersioned.

Mainly here to allow optimization of not having to know the actual comparator instance to use here yet. If this method returns true, then users can safely assume that accessing getVersionComparatorAccess() will not produce a null Comparator later