public class EntityDataCachingConfigImpl extends AbstractDomainDataCachingConfig implements EntityDataCachingConfig
| Constructor and Description |
|---|
EntityDataCachingConfigImpl(NavigableRole rootEntityName,
Supplier<Comparator> versionComparatorAccess,
boolean isEntityMutable,
AccessType accessType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCachedType(NavigableRole typeRole) |
Set<NavigableRole> |
getCachedTypes()
The list of specific subclasses of the root that are actually
written to cache.
|
NavigableRole |
getNavigableRole()
The
NavigableRole of the thing to be cached |
Supplier<Comparator> |
getVersionComparatorAccess()
Access to the comparator to be used with the entity's
version.
|
boolean |
isMutable()
Is the data marked as being mutable?
|
boolean |
isVersioned()
Mainly here to allow optimization of not having to know the
actual comparator instance to use here yet.
|
getAccessTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccessTypepublic EntityDataCachingConfigImpl(NavigableRole rootEntityName, Supplier<Comparator> versionComparatorAccess, boolean isEntityMutable, AccessType accessType)
public Supplier<Comparator> getVersionComparatorAccess()
EntityDataCachingConfignull.getVersionComparatorAccess in interface EntityDataCachingConfigpublic boolean isMutable()
DomainDataCachingConfigisMutable in interface DomainDataCachingConfigpublic boolean isVersioned()
EntityDataCachingConfigtrue, then users can safely assume that
accessing EntityDataCachingConfig.getVersionComparatorAccess() will
not produce a null Comparator laterisVersioned in interface DomainDataCachingConfigisVersioned in interface EntityDataCachingConfigpublic NavigableRole getNavigableRole()
DomainDataCachingConfigNavigableRole of the thing to be cachedgetNavigableRole in interface DomainDataCachingConfigpublic Set<NavigableRole> getCachedTypes()
EntityDataCachingConfiggetCachedTypes in interface EntityDataCachingConfigpublic void addCachedType(NavigableRole typeRole)
Copyright © 2019 JBoss by Red Hat. All rights reserved.