Class CoherenceNonstrictReadWriteNaturalIdAccess
java.lang.Object
com.oracle.coherence.hibernate.cache.v53.access.AbstractCoherenceEntityDataAccess
com.oracle.coherence.hibernate.cache.v53.access.CoherenceNonstrictReadWriteNaturalIdAccess
- All Implemented Interfaces:
org.hibernate.cache.spi.access.CachedDomainDataAccess
,org.hibernate.cache.spi.access.NaturalIdDataAccess
public class CoherenceNonstrictReadWriteNaturalIdAccess
extends AbstractCoherenceEntityDataAccess
implements org.hibernate.cache.spi.access.NaturalIdDataAccess
A CoherenceNonstrictReadWriteNaturalIdAccess is a CoherenceRegionAccessStrategy
implementing Hibernate's nonstrict-read-write cache concurrency strategy for a natural ID region.
- Author:
- Randy Stafford, Gunnar Hillert
-
Field Summary
Fields inherited from class com.oracle.coherence.hibernate.cache.v53.access.AbstractCoherenceEntityDataAccess
TRANSACTIONAL_STRATEGY_NOT_SUPPORTED_MESSAGE, WRITE_OPERATIONS_NOT_SUPPORTED_MESSAGE
-
Constructor Summary
ConstructorDescriptionCoherenceNonstrictReadWriteNaturalIdAccess
(org.hibernate.cache.spi.DomainDataRegion domainDataRegion, org.hibernate.cache.spi.support.DomainDataStorageAccess domainDataStorageAccess) Complete constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
afterInsert
(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value) boolean
afterUpdate
(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, org.hibernate.cache.spi.access.SoftLock lock) generateCacheKey
(Object[] naturalIdValues, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.SharedSessionContractImplementor session) org.hibernate.cache.spi.access.AccessType
Object[]
getNaturalIdValues
(Object cacheKey) boolean
boolean
Methods inherited from class com.oracle.coherence.hibernate.cache.v53.access.AbstractCoherenceEntityDataAccess
contains, evict, evictAll, get, getCacheKeysFactory, getCoherenceRegion, getDomainDataStorageAccess, getRegion, getUuid, getVersionComparator, lockItem, lockRegion, newCacheValue, nextSoftLockSequenceNumber, putFromLoad, putFromLoad, remove, removeAll, toString, unlockItem, unlockRegion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.cache.spi.access.CachedDomainDataAccess
contains, evict, evictAll, get, getRegion, lockItem, lockRegion, putFromLoad, putFromLoad, remove, removeAll, unlockItem, unlockRegion
Methods inherited from interface org.hibernate.cache.spi.access.NaturalIdDataAccess
generateCacheKey
-
Constructor Details
-
CoherenceNonstrictReadWriteNaturalIdAccess
public CoherenceNonstrictReadWriteNaturalIdAccess(org.hibernate.cache.spi.DomainDataRegion domainDataRegion, org.hibernate.cache.spi.support.DomainDataStorageAccess domainDataStorageAccess) Complete constructor.- Parameters:
domainDataRegion
- the domain data regiondomainDataStorageAccess
- the domain data storage access
-
-
Method Details
-
getNaturalIdValues
- Specified by:
getNaturalIdValues
in interfaceorg.hibernate.cache.spi.access.NaturalIdDataAccess
-
getAccessType
public org.hibernate.cache.spi.access.AccessType getAccessType()- Specified by:
getAccessType
in interfaceorg.hibernate.cache.spi.access.CachedDomainDataAccess