类 EntityDataCachingConfigImpl
- java.lang.Object
-
- org.hibernate.cache.cfg.internal.AbstractDomainDataCachingConfig
-
- org.hibernate.cache.cfg.internal.EntityDataCachingConfigImpl
-
- 所有已实现的接口:
DomainDataCachingConfig,EntityDataCachingConfig
public class EntityDataCachingConfigImpl extends AbstractDomainDataCachingConfig implements EntityDataCachingConfig
- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 EntityDataCachingConfigImpl(NavigableRole rootEntityName, Supplier<Comparator> versionComparatorAccess, boolean isEntityMutable, AccessType accessType)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddCachedType(NavigableRole typeRole)Set<NavigableRole>getCachedTypes()The list of specific subclasses of the root that are actually written to cache.NavigableRolegetNavigableRole()TheNavigableRoleof the thing to be cachedSupplier<Comparator>getVersionComparatorAccess()Access to the comparator to be used with the entity's version.booleanisMutable()Is the data marked as being mutable?booleanisVersioned()Mainly here to allow optimization of not having to know the actual comparator instance to use here yet.-
从类继承的方法 org.hibernate.cache.cfg.internal.AbstractDomainDataCachingConfig
getAccessType
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.cache.cfg.spi.DomainDataCachingConfig
getAccessType
-
-
-
-
构造器详细资料
-
EntityDataCachingConfigImpl
public EntityDataCachingConfigImpl(NavigableRole rootEntityName, Supplier<Comparator> versionComparatorAccess, boolean isEntityMutable, AccessType accessType)
-
-
方法详细资料
-
getVersionComparatorAccess
public Supplier<Comparator> getVersionComparatorAccess()
从接口复制的说明:EntityDataCachingConfigAccess to the comparator to be used with the entity's version. If the entity is not versioned, then this method returnsnull.
-
isMutable
public boolean isMutable()
从接口复制的说明:DomainDataCachingConfigIs the data marked as being mutable?- 指定者:
isMutable在接口中DomainDataCachingConfig
-
isVersioned
public boolean isVersioned()
从接口复制的说明:EntityDataCachingConfigMainly 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 accessingEntityDataCachingConfig.getVersionComparatorAccess()will not produce a null Comparator later- 指定者:
isVersioned在接口中DomainDataCachingConfig- 指定者:
isVersioned在接口中EntityDataCachingConfig
-
getNavigableRole
public NavigableRole getNavigableRole()
从接口复制的说明:DomainDataCachingConfigTheNavigableRoleof the thing to be cached- 指定者:
getNavigableRole在接口中DomainDataCachingConfig
-
getCachedTypes
public Set<NavigableRole> getCachedTypes()
从接口复制的说明:EntityDataCachingConfigThe list of specific subclasses of the root that are actually written to cache.- 指定者:
getCachedTypes在接口中EntityDataCachingConfig
-
addCachedType
public void addCachedType(NavigableRole typeRole)
-
-