Class CoherenceReadOnlyEntityAccess
java.lang.Object
com.oracle.coherence.hibernate.cache.v6.access.AbstractCoherenceEntityDataAccess
com.oracle.coherence.hibernate.cache.v6.access.CoherenceReadOnlyEntityAccess
- All Implemented Interfaces:
org.hibernate.cache.spi.access.CachedDomainDataAccess
,org.hibernate.cache.spi.access.EntityDataAccess
public class CoherenceReadOnlyEntityAccess
extends AbstractCoherenceEntityDataAccess
implements org.hibernate.cache.spi.access.EntityDataAccess
An CoherenceReadOnlyEntityAccess is an AbstractCoherenceEntityDataAccess
implementing Hibernate's read-only cache concurrency strategy for entity regions.
- Author:
- Randy Stafford, Gunnar Hillert
-
Field Summary
Fields inherited from class com.oracle.coherence.hibernate.cache.v6.access.AbstractCoherenceEntityDataAccess
TRANSACTIONAL_STRATEGY_NOT_SUPPORTED_MESSAGE, WRITE_OPERATIONS_NOT_SUPPORTED_MESSAGE
-
Constructor Summary
ConstructorDescriptionCoherenceReadOnlyEntityAccess
(org.hibernate.cache.spi.DomainDataRegion domainDataRegion, org.hibernate.cache.spi.support.DomainDataStorageAccess domainDataStorageAccess, Comparator<?> versionComparator) Complete constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
afterInsert
(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, Object version) boolean
afterUpdate
(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, Object currentVersion, Object previousVersion, org.hibernate.cache.spi.access.SoftLock lock) boolean
generateCacheKey
(Object id, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactoryImplementor, String tenantIdentifier) org.hibernate.cache.spi.access.AccessType
getCacheKeyId
(Object cacheKey) boolean
insert
(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, Object version) boolean
Methods inherited from class com.oracle.coherence.hibernate.cache.v6.access.AbstractCoherenceEntityDataAccess
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
evict, evictAll, get, getRegion, lockItem, lockRegion, putFromLoad, putFromLoad, remove, removeAll, unlockItem, unlockRegion
-
Constructor Details
-
CoherenceReadOnlyEntityAccess
public CoherenceReadOnlyEntityAccess(org.hibernate.cache.spi.DomainDataRegion domainDataRegion, org.hibernate.cache.spi.support.DomainDataStorageAccess domainDataStorageAccess, Comparator<?> versionComparator) Complete constructor.- Parameters:
domainDataRegion
- must not be nulldomainDataStorageAccess
- must not be nullversionComparator
- must not be null
-
-
Method Details
-
generateCacheKey
public Object generateCacheKey(Object id, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactoryImplementor, String tenantIdentifier) - Specified by:
generateCacheKey
in interfaceorg.hibernate.cache.spi.access.EntityDataAccess
-
getCacheKeyId
- Specified by:
getCacheKeyId
in interfaceorg.hibernate.cache.spi.access.EntityDataAccess
-
getAccessType
public org.hibernate.cache.spi.access.AccessType getAccessType()- Specified by:
getAccessType
in interfaceorg.hibernate.cache.spi.access.CachedDomainDataAccess
-
contains
- Specified by:
contains
in interfaceorg.hibernate.cache.spi.access.CachedDomainDataAccess
- Overrides:
contains
in classAbstractCoherenceEntityDataAccess