Class JCacheAccessImpl

java.lang.Object
org.hibernate.cache.jcache.internal.JCacheAccessImpl
All Implemented Interfaces:
org.hibernate.cache.spi.support.DomainDataStorageAccess, org.hibernate.cache.spi.support.StorageAccess

public class JCacheAccessImpl extends Object implements org.hibernate.cache.spi.support.DomainDataStorageAccess
StorageAccess implementation wrapping a JCache Cache reference.
  • Constructor Details

    • JCacheAccessImpl

      public JCacheAccessImpl(Cache underlyingCache)
  • Method Details

    • getUnderlyingCache

      public Cache getUnderlyingCache()
    • contains

      public boolean contains(Object key)
      Specified by:
      contains in interface org.hibernate.cache.spi.support.StorageAccess
    • getFromCache

      public Object getFromCache(Object key, org.hibernate.engine.spi.SharedSessionContractImplementor session)
      Specified by:
      getFromCache in interface org.hibernate.cache.spi.support.StorageAccess
    • putIntoCache

      public void putIntoCache(Object key, Object value, org.hibernate.engine.spi.SharedSessionContractImplementor session)
      Specified by:
      putIntoCache in interface org.hibernate.cache.spi.support.StorageAccess
    • removeFromCache

      public void removeFromCache(Object key, org.hibernate.engine.spi.SharedSessionContractImplementor session)
      Specified by:
      removeFromCache in interface org.hibernate.cache.spi.support.StorageAccess
    • evictData

      public void evictData(Object key)
      Specified by:
      evictData in interface org.hibernate.cache.spi.support.StorageAccess
    • clearCache

      public void clearCache(org.hibernate.engine.spi.SharedSessionContractImplementor session)
      Specified by:
      clearCache in interface org.hibernate.cache.spi.support.StorageAccess
    • evictData

      public void evictData()
      Specified by:
      evictData in interface org.hibernate.cache.spi.support.StorageAccess
    • release

      public void release()
      Specified by:
      release in interface org.hibernate.cache.spi.support.StorageAccess