Class CoherenceNonstrictReadWriteNaturalIdAccess

java.lang.Object
com.oracle.coherence.hibernate.cache.v6.access.AbstractCoherenceEntityDataAccess
com.oracle.coherence.hibernate.cache.v6.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
  • 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 region
      domainDataStorageAccess - the domain data storage access
  • Method Details

    • insert

      public boolean insert(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value) throws org.hibernate.cache.CacheException
      Specified by:
      insert in interface org.hibernate.cache.spi.access.NaturalIdDataAccess
      Throws:
      org.hibernate.cache.CacheException
    • afterInsert

      public boolean afterInsert(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value) throws org.hibernate.cache.CacheException
      Specified by:
      afterInsert in interface org.hibernate.cache.spi.access.NaturalIdDataAccess
      Throws:
      org.hibernate.cache.CacheException
    • update

      public boolean update(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value) throws org.hibernate.cache.CacheException
      Specified by:
      update in interface org.hibernate.cache.spi.access.NaturalIdDataAccess
      Throws:
      org.hibernate.cache.CacheException
    • afterUpdate

      public boolean afterUpdate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException
      Specified by:
      afterUpdate in interface org.hibernate.cache.spi.access.NaturalIdDataAccess
      Throws:
      org.hibernate.cache.CacheException
    • generateCacheKey

      public Object generateCacheKey(Object naturalIdValues, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.SharedSessionContractImplementor session)
      Specified by:
      generateCacheKey in interface org.hibernate.cache.spi.access.NaturalIdDataAccess
    • getNaturalIdValues

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

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