Package org.hibernate.cache.spi.support
Class NaturalIdNonStrictReadWriteAccess
java.lang.Object
org.hibernate.cache.spi.support.AbstractCachedDomainDataAccess
org.hibernate.cache.spi.support.AbstractNaturalIdDataAccess
org.hibernate.cache.spi.support.NaturalIdNonStrictReadWriteAccess
- All Implemented Interfaces:
CachedDomainDataAccess,NaturalIdDataAccess,AbstractDomainDataRegion.Destructible
Standard support for
NaturalIdDataAccess
using the AccessType.NONSTRICT_READ_WRITE access type.- Author:
- Steve Ebersole
-
Constructor Summary
ConstructorsConstructorDescriptionNaturalIdNonStrictReadWriteAccess(DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, NaturalIdDataCachingConfig config) -
Method Summary
Modifier and TypeMethodDescriptionbooleanafterInsert(SharedSessionContractImplementor session, Object key, Object value) Called afterQuery an item has been inserted (afterQuery the transaction completes), instead of calling release().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().Methods inherited from class org.hibernate.cache.spi.support.AbstractNaturalIdDataAccess
afterUpdate, generateCacheKey, getNaturalIdValues, lockItem, lockRegion, unlockRegionMethods inherited from class org.hibernate.cache.spi.support.AbstractCachedDomainDataAccess
clearCache, contains, destroy, evict, evictAll, get, getRegion, getStorageAccess, putFromLoad, putFromLoad, removeAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.cache.spi.access.CachedDomainDataAccess
contains, evict, evictAll, get, getRegion, putFromLoad, putFromLoad, removeAll
-
Constructor Details
-
NaturalIdNonStrictReadWriteAccess
public NaturalIdNonStrictReadWriteAccess(DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, NaturalIdDataCachingConfig config)
-
-
Method Details
-
getAccessType
Description copied from interface:CachedDomainDataAccessThe type of access implemented
-