类 NaturalIdNonStrictReadWriteAccess
- java.lang.Object
-
- org.hibernate.cache.spi.support.AbstractCachedDomainDataAccess
-
- org.hibernate.cache.spi.support.AbstractNaturalIdDataAccess
-
- org.hibernate.cache.spi.support.NaturalIdNonStrictReadWriteAccess
-
public class NaturalIdNonStrictReadWriteAccess extends AbstractNaturalIdDataAccess
Standard support forNaturalIdDataAccessusing theAccessType.NONSTRICT_READ_WRITEaccess type.- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 NaturalIdNonStrictReadWriteAccess(DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, NaturalIdDataCachingConfig config)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanafterInsert(SharedSessionContractImplementor session, Object key, Object value)Called afterQuery an item has been inserted (afterQuery the transaction completes), instead of calling release().AccessTypegetAccessType()The type of access implementedbooleaninsert(SharedSessionContractImplementor session, Object key, Object value)Called afterQuery an item has been inserted (beforeQuery the transaction completes), instead of calling evict().voidremove(SharedSessionContractImplementor session, Object key)Called afterQuery an item has become stale (beforeQuery the transaction completes).voidunlockItem(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.booleanupdate(SharedSessionContractImplementor session, Object key, Object value)Called afterQuery an item has been updated (beforeQuery the transaction completes), instead of calling evict().-
从类继承的方法 org.hibernate.cache.spi.support.AbstractNaturalIdDataAccess
afterUpdate, generateCacheKey, getNaturalIdValues, lockItem, lockRegion, unlockRegion
-
从类继承的方法 org.hibernate.cache.spi.support.AbstractCachedDomainDataAccess
clearCache, contains, destroy, evict, evictAll, get, getRegion, getStorageAccess, putFromLoad, putFromLoad, 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, removeAll
-
-
-
-
构造器详细资料
-
NaturalIdNonStrictReadWriteAccess
public NaturalIdNonStrictReadWriteAccess(DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, NaturalIdDataCachingConfig 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在类中AbstractNaturalIdDataAccess- 参数:
session- Current session.key- The item keylock- The lock previously obtained fromCachedDomainDataAccess.lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object, java.lang.Object)
-
remove
public void remove(SharedSessionContractImplementor session, Object key)
从接口复制的说明:CachedDomainDataAccessCalled afterQuery an item has become stale (beforeQuery the transaction completes). This method is used by "synchronous" concurrency strategies.- 指定者:
remove在接口中CachedDomainDataAccess- 覆盖:
remove在类中AbstractCachedDomainDataAccess- 参数:
session- Current session.key- The key of the item to remove
-
insert
public boolean insert(SharedSessionContractImplementor session, Object key, Object value)
从接口复制的说明:NaturalIdDataAccessCalled afterQuery an item has been inserted (beforeQuery the transaction completes), instead of calling evict(). This method is used by "synchronous" concurrency strategies.- 指定者:
insert在接口中NaturalIdDataAccess- 覆盖:
insert在类中AbstractNaturalIdDataAccess- 参数:
session- Current sessionkey- The item keyvalue- The item- 返回:
- Were the contents of the cache actually changed by this operation?
-
afterInsert
public boolean afterInsert(SharedSessionContractImplementor session, Object key, Object value)
从接口复制的说明:NaturalIdDataAccessCalled afterQuery an item has been inserted (afterQuery the transaction completes), instead of calling release(). This method is used by "asynchronous" concurrency strategies.- 指定者:
afterInsert在接口中NaturalIdDataAccess- 覆盖:
afterInsert在类中AbstractNaturalIdDataAccess- 参数:
session- Current sessionkey- The item keyvalue- The item- 返回:
- Were the contents of the cache actually changed by this operation?
-
update
public boolean update(SharedSessionContractImplementor session, Object key, Object value)
从接口复制的说明:NaturalIdDataAccessCalled afterQuery an item has been updated (beforeQuery the transaction completes), instead of calling evict(). This method is used by "synchronous" concurrency strategies.- 指定者:
update在接口中NaturalIdDataAccess- 覆盖:
update在类中AbstractNaturalIdDataAccess- 参数:
session- Current sessionkey- The item keyvalue- The item- 返回:
- Were the contents of the cache actually changed by this operation?
-
-