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.
|
getAccessType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAccessType
public EntityDataCachingConfigImpl(NavigableRole rootEntityName, Supplier<Comparator> versionComparatorAccess, boolean isEntityMutable, AccessType accessType)
public Supplier<Comparator> getVersionComparatorAccess()
EntityDataCachingConfig
null
.getVersionComparatorAccess
in interface EntityDataCachingConfig
public boolean isMutable()
DomainDataCachingConfig
isMutable
in interface DomainDataCachingConfig
public boolean isVersioned()
EntityDataCachingConfig
true
, then users can safely assume that
accessing EntityDataCachingConfig.getVersionComparatorAccess()
will
not produce a null Comparator laterisVersioned
in interface DomainDataCachingConfig
isVersioned
in interface EntityDataCachingConfig
public NavigableRole getNavigableRole()
DomainDataCachingConfig
NavigableRole
of the thing to be cachedgetNavigableRole
in interface DomainDataCachingConfig
public Set<NavigableRole> getCachedTypes()
EntityDataCachingConfig
getCachedTypes
in interface EntityDataCachingConfig
public void addCachedType(NavigableRole typeRole)
Copyright © 2021 JBoss by Red Hat. All rights reserved.