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.-
Constructor Summary
ConstructorsConstructorDescriptionNaturalIdNonStrictReadWriteAccess(DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, NaturalIdDataCachingConfig config) -
Method Summary
Modifier and TypeMethodDescriptionThe 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().voidunlockItem(SharedSessionContractImplementor session, Object key, SoftLock lock) Notify that an attempt to update or delete the keyed object has completed, with or without success, 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 AbstractNaturalIdDataAccess
afterInsert, afterUpdate, generateCacheKey, getNaturalIdValues, lockItem, lockRegion, unlockRegionMethods inherited from class AbstractCachedDomainDataAccess
clearCache, contains, destroy, evict, evictAll, get, getRegion, getStorageAccess, putFromLoad, putFromLoad, remove, removeAllMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CachedDomainDataAccess
contains, evict, evictAll, get, getRegion, putFromLoad, putFromLoad, remove, 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
-