public interface EntityDataCachingConfig extends DomainDataCachingConfig
Specialized DomainDataCachingConfig describing the requested caching config for a particular entity hierarchy’s state data
| Modifier and Type | Method and Description |
|---|---|
Set<NavigableRole> |
getCachedTypes()
The list of specific subclasses of the root that are actually
written to cache.
|
Supplier<Comparator> |
getVersionComparatorAccess()
Access to the comparator to be used with the entity’s
version.
|
boolean |
isVersioned()
Mainly here to allow optimization of not having to know the
actual comparator instance to use here yet.
|
getAccessType, getNavigableRole, isMutableboolean 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
isVersioned in interface DomainDataCachingConfigSupplier<Comparator> getVersionComparatorAccess()
Access to the comparator to be used with the entity’s
version. If the entity is not versioned, then this method
returns null.
Set<NavigableRole> getCachedTypes()
The list of specific subclasses of the root that are actually written to cache.
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.