Class CoherenceReadOnlyCollectionAccess
java.lang.Object
com.oracle.coherence.hibernate.cache.v6.access.AbstractCoherenceEntityDataAccess
com.oracle.coherence.hibernate.cache.v6.access.CoherenceReadOnlyCollectionAccess
- All Implemented Interfaces:
org.hibernate.cache.spi.access.CachedDomainDataAccess,org.hibernate.cache.spi.access.CollectionDataAccess
public class CoherenceReadOnlyCollectionAccess
extends AbstractCoherenceEntityDataAccess
implements org.hibernate.cache.spi.access.CollectionDataAccess
A CoherenceReadOnlyCollectionAccess is CoherenceRegionAccessStrategy
implementing Hibernate's read-only cache concurrency strategy for collection 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
ConstructorsConstructorDescriptionCoherenceReadOnlyCollectionAccess(org.hibernate.cache.spi.DomainDataRegion domainDataRegion, org.hibernate.cache.spi.support.DomainDataStorageAccess domainDataStorageAccess, Comparator<?> versionComparator) Complete constructor. -
Method Summary
Modifier and TypeMethodDescriptiongenerateCacheKey(Object id, org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactoryImplementor, String tenantIdentifier) org.hibernate.cache.spi.access.AccessTypegetCacheKeyId(Object cacheKey) Methods inherited from class com.oracle.coherence.hibernate.cache.v6.access.AbstractCoherenceEntityDataAccess
contains, evict, evictAll, get, getCacheKeysFactory, getCoherenceRegion, getDomainDataStorageAccess, getRegion, getUuid, getVersionComparator, lockItem, lockRegion, newCacheValue, nextSoftLockSequenceNumber, putFromLoad, putFromLoad, remove, removeAll, toString, unlockItem, unlockRegionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.cache.spi.access.CachedDomainDataAccess
contains, evict, evictAll, get, getRegion, lockItem, lockRegion, putFromLoad, putFromLoad, remove, removeAll, unlockItem, unlockRegion
-
Constructor Details
-
CoherenceReadOnlyCollectionAccess
public CoherenceReadOnlyCollectionAccess(org.hibernate.cache.spi.DomainDataRegion domainDataRegion, org.hibernate.cache.spi.support.DomainDataStorageAccess domainDataStorageAccess, Comparator<?> versionComparator) Complete constructor.- Parameters:
domainDataRegion- the domain data regiondomainDataStorageAccess- the domain data storage accessversionComparator- the version comparator
-
-
Method Details
-
generateCacheKey
public Object generateCacheKey(Object id, org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactoryImplementor, String tenantIdentifier) - Specified by:
generateCacheKeyin interfaceorg.hibernate.cache.spi.access.CollectionDataAccess
-
getCacheKeyId
- Specified by:
getCacheKeyIdin interfaceorg.hibernate.cache.spi.access.CollectionDataAccess
-
getAccessType
public org.hibernate.cache.spi.access.AccessType getAccessType()- Specified by:
getAccessTypein interfaceorg.hibernate.cache.spi.access.CachedDomainDataAccess
-