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.-
Constructor Summary
ConstructorsConstructorDescriptionNaturalIdNonStrictReadWriteAccess
(DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, NaturalIdDataCachingConfig config) -
Method Summary
Modifier and TypeMethodDescriptionboolean
afterInsert
(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 implementedboolean
insert
(SharedSessionContractImplementor session, Object key, Object value) Called afterQuery an item has been inserted (beforeQuery the transaction completes), instead of calling evict().void
remove
(SharedSessionContractImplementor session, Object key) Notify that an item has become stale, before completion of the transaction.void
unlockItem
(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.boolean
update
(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, unlockRegion
Methods inherited from class org.hibernate.cache.spi.support.AbstractCachedDomainDataAccess
clearCache, contains, destroy, evict, evictAll, get, getRegion, getStorageAccess, putFromLoad, putFromLoad, removeAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:CachedDomainDataAccess
The type of access implemented
-