Package org.hibernate.testing.cache
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 Summary
Constructors Constructor Description MapStorageAccessImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCache(org.hibernate.engine.spi.SharedSessionContractImplementor session)
boolean
contains(Object key)
void
evictData()
void
evictData(Object key)
Object
getFromCache(Object key, org.hibernate.engine.spi.SharedSessionContractImplementor session)
protected ConcurrentMap
getOrMakeDataMap()
void
putIntoCache(Object key, Object value, org.hibernate.engine.spi.SharedSessionContractImplementor session)
void
release()
void
removeFromCache(Object key, org.hibernate.engine.spi.SharedSessionContractImplementor session)
-
-
-
Method Detail
-
contains
public boolean contains(Object key)
- Specified by:
contains
in interfaceorg.hibernate.cache.spi.support.StorageAccess
-
getFromCache
public Object getFromCache(Object key, org.hibernate.engine.spi.SharedSessionContractImplementor session)
- Specified by:
getFromCache
in interfaceorg.hibernate.cache.spi.support.StorageAccess
-
putIntoCache
public void putIntoCache(Object key, Object value, org.hibernate.engine.spi.SharedSessionContractImplementor session)
- Specified by:
putIntoCache
in interfaceorg.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 interfaceorg.hibernate.cache.spi.support.StorageAccess
-
clearCache
public void clearCache(org.hibernate.engine.spi.SharedSessionContractImplementor session)
- Specified by:
clearCache
in interfaceorg.hibernate.cache.spi.support.StorageAccess
-
evictData
public void evictData()
- Specified by:
evictData
in interfaceorg.hibernate.cache.spi.support.StorageAccess
-
evictData
public void evictData(Object key)
- Specified by:
evictData
in interfaceorg.hibernate.cache.spi.support.StorageAccess
-
release
public void release()
- Specified by:
release
in interfaceorg.hibernate.cache.spi.support.StorageAccess
-
-