类 CollectionNonStrictReadWriteAccess
- java.lang.Object
-
- org.hibernate.cache.spi.support.AbstractCachedDomainDataAccess
-
- org.hibernate.cache.spi.support.AbstractCollectionDataAccess
-
- org.hibernate.cache.spi.support.CollectionNonStrictReadWriteAccess
-
public class CollectionNonStrictReadWriteAccess extends AbstractCollectionDataAccess
Standard support forCollectionDataAccessusing theAccessType.NONSTRICT_READ_WRITEaccess type.- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 CollectionNonStrictReadWriteAccess(DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, CollectionDataCachingConfig config)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 AccessTypegetAccessType()The type of access implementedvoidunlockItem(SharedSessionContractImplementor session, Object key, SoftLock lock)Called when we have finished the attempted update/delete (which may or may not have been successful), after transaction completion.-
从类继承的方法 org.hibernate.cache.spi.support.AbstractCollectionDataAccess
generateCacheKey, getCacheKeyId, lockItem, lockRegion, unlockRegion
-
从类继承的方法 org.hibernate.cache.spi.support.AbstractCachedDomainDataAccess
clearCache, contains, destroy, evict, evictAll, get, getRegion, getStorageAccess, putFromLoad, putFromLoad, remove, removeAll
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.cache.spi.access.CachedDomainDataAccess
contains, evict, evictAll, get, getRegion, putFromLoad, putFromLoad, remove, removeAll
-
-
-
-
构造器详细资料
-
CollectionNonStrictReadWriteAccess
public CollectionNonStrictReadWriteAccess(DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, CollectionDataCachingConfig config)
-
-
方法详细资料
-
getAccessType
public AccessType getAccessType()
从接口复制的说明:CachedDomainDataAccessThe type of access implemented
-
unlockItem
public void unlockItem(SharedSessionContractImplementor session, Object key, SoftLock lock)
从接口复制的说明:CachedDomainDataAccessCalled when we have finished the attempted update/delete (which may or may not have been successful), after transaction completion. This method is used by "asynchronous" concurrency strategies.- 指定者:
unlockItem在接口中CachedDomainDataAccess- 覆盖:
unlockItem在类中AbstractCollectionDataAccess- 参数:
session- Current session.key- The item keylock- The lock previously obtained fromCachedDomainDataAccess.lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object, java.lang.Object)
-
-