Package org.hibernate.cache.impl.bridge
Class BaseGeneralDataRegionAdapter
java.lang.Object
org.hibernate.cache.impl.bridge.BaseRegionAdapter
org.hibernate.cache.impl.bridge.BaseGeneralDataRegionAdapter
- All Implemented Interfaces:
GeneralDataRegion,Region
- Direct Known Subclasses:
QueryResultsRegionAdapter,TimestampsRegionAdapter
public abstract class BaseGeneralDataRegionAdapter
extends BaseRegionAdapter
implements GeneralDataRegion
-
Field Summary
Fields inherited from class org.hibernate.cache.impl.bridge.BaseRegionAdapter
settings, underlyingCache -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseGeneralDataRegionAdapter(Cache underlyingCache, Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionvoidEvict an item from the cache immediately (without regard for transaction isolation).voidevictAll()Evict all contents of this particular cache region (without regard for transaction isolation).Get an item from the cache.voidPut an item into the cache.Methods inherited from class org.hibernate.cache.impl.bridge.BaseRegionAdapter
clear, contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.cache.Region
contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
-
Constructor Details
-
BaseGeneralDataRegionAdapter
-
-
Method Details
-
get
Description copied from interface:GeneralDataRegionGet an item from the cache.- Specified by:
getin interfaceGeneralDataRegion- Parameters:
key- The key of the item to be retrieved.- Returns:
- the cached object or null
- Throws:
CacheException- Indicates a problem accessing the item or region.
-
put
Description copied from interface:GeneralDataRegionPut an item into the cache.- Specified by:
putin interfaceGeneralDataRegion- Parameters:
key- The key under which to cache the item.value- The item to cache.- Throws:
CacheException- Indicates a problem accessing the region.
-
evict
Description copied from interface:GeneralDataRegionEvict an item from the cache immediately (without regard for transaction isolation).- Specified by:
evictin interfaceGeneralDataRegion- Parameters:
key- The key of the item to remove- Throws:
CacheException- Indicates a problem accessing the item or region.
-
evictAll
Description copied from interface:GeneralDataRegionEvict all contents of this particular cache region (without regard for transaction isolation).- Specified by:
evictAllin interfaceGeneralDataRegion- Throws:
CacheException- Indicates problem accessing the region.
-