Class MapStorageAccessImpl

java.lang.Object
org.hibernate.testing.cache.MapStorageAccessImpl
All Implemented Interfaces:
org.hibernate.cache.spi.support.DomainDataStorageAccess, org.hibernate.cache.spi.support.StorageAccess

public class MapStorageAccessImpl extends Object implements org.hibernate.cache.spi.support.DomainDataStorageAccess
StorageAccess impl wrapping a simple data Map (ConcurrentMap)
  • Constructor Details

    • MapStorageAccessImpl

      public MapStorageAccessImpl()
  • Method Details

    • getFromData

      @Internal public Object getFromData(Object key)
    • 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
    • getOrMakeDataMap

      protected ConcurrentMap getOrMakeDataMap()
    • removeFromCache

      public void removeFromCache(Object key, org.hibernate.engine.spi.SharedSessionContractImplementor session)
      Specified by:
      removeFromCache 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
    • evictData

      public void evictData(Object key)
      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