Class CollectionDataAccessImpl

java.lang.Object
org.infinispan.hibernate.cache.v62.impl.CollectionDataAccessImpl
All Implemented Interfaces:
org.hibernate.cache.spi.access.CachedDomainDataAccess, org.hibernate.cache.spi.access.CollectionDataAccess

public class CollectionDataAccessImpl extends Object implements org.hibernate.cache.spi.access.CollectionDataAccess
  • Constructor Summary

    Constructors
    Constructor
    Description
    CollectionDataAccessImpl(DomainDataRegionImpl region, org.infinispan.hibernate.cache.commons.access.AccessDelegate delegate, org.hibernate.cache.spi.access.AccessType accessType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
     
    void
     
    generateCacheKey(Object id, org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.engine.spi.SessionFactoryImplementor factory, String tenantIdentifier)
     
    get(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key)
     
    org.hibernate.cache.spi.access.AccessType
     
     
    org.hibernate.cache.spi.DomainDataRegion
     
    org.hibernate.cache.spi.access.SoftLock
    lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object version)
     
    org.hibernate.cache.spi.access.SoftLock
     
    boolean
    putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, Object version)
     
    boolean
    putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, Object version, boolean minimalPutOverride)
     
    void
    remove(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key)
     
    void
    removeAll(org.hibernate.engine.spi.SharedSessionContractImplementor session)
     
    void
    unlockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, org.hibernate.cache.spi.access.SoftLock lock)
     
    void
    unlockRegion(org.hibernate.cache.spi.access.SoftLock lock)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.hibernate.cache.spi.access.CachedDomainDataAccess

    contains, evict, evictAll, getAccessType, getRegion, lockRegion, removeAll, unlockRegion
  • Constructor Details

    • CollectionDataAccessImpl

      public CollectionDataAccessImpl(DomainDataRegionImpl region, org.infinispan.hibernate.cache.commons.access.AccessDelegate delegate, org.hibernate.cache.spi.access.AccessType accessType)
  • Method Details

    • get

      public Object get(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key)
      Specified by:
      get in interface org.hibernate.cache.spi.access.CachedDomainDataAccess
    • putFromLoad

      public boolean putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, Object version)
      Specified by:
      putFromLoad in interface org.hibernate.cache.spi.access.CachedDomainDataAccess
    • putFromLoad

      public boolean putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, Object version, boolean minimalPutOverride)
      Specified by:
      putFromLoad in interface org.hibernate.cache.spi.access.CachedDomainDataAccess
    • remove

      public void remove(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key) throws org.hibernate.cache.CacheException
      Specified by:
      remove in interface org.hibernate.cache.spi.access.CachedDomainDataAccess
      Throws:
      org.hibernate.cache.CacheException
    • lockItem

      public org.hibernate.cache.spi.access.SoftLock lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object version) throws org.hibernate.cache.CacheException
      Specified by:
      lockItem in interface org.hibernate.cache.spi.access.CachedDomainDataAccess
      Throws:
      org.hibernate.cache.CacheException
    • unlockItem

      public void unlockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException
      Specified by:
      unlockItem in interface org.hibernate.cache.spi.access.CachedDomainDataAccess
      Throws:
      org.hibernate.cache.CacheException
    • generateCacheKey

      public Object generateCacheKey(Object id, org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.engine.spi.SessionFactoryImplementor factory, 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
    • evict

      public void evict(Object key) throws org.hibernate.cache.CacheException
      Throws:
      org.hibernate.cache.CacheException
    • evictAll

      public void evictAll() throws org.hibernate.cache.CacheException
      Throws:
      org.hibernate.cache.CacheException
    • removeAll

      public void removeAll(org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.cache.CacheException
      Throws:
      org.hibernate.cache.CacheException
    • lockRegion

      public org.hibernate.cache.spi.access.SoftLock lockRegion() throws org.hibernate.cache.CacheException
      Throws:
      org.hibernate.cache.CacheException
    • unlockRegion

      public void unlockRegion(org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException
      Throws:
      org.hibernate.cache.CacheException
    • getAccessType

      public org.hibernate.cache.spi.access.AccessType getAccessType()
    • getRegion

      public org.hibernate.cache.spi.DomainDataRegion getRegion()
    • contains

      public boolean contains(Object key)