Class CoherenceReadOnlyCollectionAccess

java.lang.Object
com.oracle.coherence.hibernate.cache.v53.access.AbstractCoherenceEntityDataAccess
com.oracle.coherence.hibernate.cache.v53.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
  • 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 region
      domainDataStorageAccess - the domain data storage access
      versionComparator - 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:
      generateCacheKey in interface org.hibernate.cache.spi.access.CollectionDataAccess
    • getCacheKeyId

      public Object getCacheKeyId(Object cacheKey)
      Specified by:
      getCacheKeyId in interface org.hibernate.cache.spi.access.CollectionDataAccess
    • getAccessType

      public org.hibernate.cache.spi.access.AccessType getAccessType()
      Specified by:
      getAccessType in interface org.hibernate.cache.spi.access.CachedDomainDataAccess