Package org.hibernate.cache.cfg.spi
Interface EntityDataCachingConfig
- All Superinterfaces:
DomainDataCachingConfig
- All Known Implementing Classes:
EntityDataCachingConfigImpl
Specialized DomainDataCachingConfig describing the requested
caching config for a particular entity hierarchy's state data
-
Method Summary
Modifier and TypeMethodDescriptionThe list of specific subclasses of the root that are actually written to cache.Access to the comparator to be used with the entity's version.boolean
Mainly here to allow optimization of not having to know the actual comparator instance to use here yet.Methods inherited from interface org.hibernate.cache.cfg.spi.DomainDataCachingConfig
getAccessType, getNavigableRole, isMutable
-
Method Details
-
isVersioned
boolean isVersioned()Mainly here to allow optimization of not having to know the actual comparator instance to use here yet. If this method returnstrue
, then users can safely assume that accessinggetVersionComparatorAccess()
will not produce a null Comparator later- Specified by:
isVersioned
in interfaceDomainDataCachingConfig
-
getVersionComparatorAccess
Supplier<Comparator> getVersionComparatorAccess()Access to the comparator to be used with the entity's version. If the entity is not versioned, then this method returnsnull
. -
getCachedTypes
Set<NavigableRole> getCachedTypes()The list of specific subclasses of the root that are actually written to cache.
-