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
- Author:
- Steve Ebersole
Method Summary |
void |
evict(java.lang.Object key)
Evict an item from the cache immediately (without regard for transaction
isolation). |
void |
evictAll()
Evict all contents of this particular cache region (without regard for transaction
isolation). |
java.lang.Object |
get(java.lang.Object key)
Get an item from the cache. |
void |
put(java.lang.Object key,
java.lang.Object value)
Put an item into the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseGeneralDataRegionAdapter
protected BaseGeneralDataRegionAdapter(Cache underlyingCache,
Settings settings)
get
public java.lang.Object get(java.lang.Object key)
throws CacheException
- Description copied from interface:
GeneralDataRegion
- Get an item from the cache.
- Specified by:
get
in interface GeneralDataRegion
- 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
public void put(java.lang.Object key,
java.lang.Object value)
throws CacheException
- Description copied from interface:
GeneralDataRegion
- Put an item into the cache.
- Specified by:
put
in interface GeneralDataRegion
- Parameters:
key
- The key under which to cache the item.value
- The item to cache.
- Throws:
CacheException
- Indicates a problem accessing the region.
evict
public void evict(java.lang.Object key)
throws CacheException
- Description copied from interface:
GeneralDataRegion
- Evict an item from the cache immediately (without regard for transaction
isolation).
- Specified by:
evict
in interface GeneralDataRegion
- Parameters:
key
- The key of the item to remove
- Throws:
CacheException
- Indicates a problem accessing the item or region.
evictAll
public void evictAll()
throws CacheException
- Description copied from interface:
GeneralDataRegion
- Evict all contents of this particular cache region (without regard for transaction
isolation).
- Specified by:
evictAll
in interface GeneralDataRegion
- Throws:
CacheException
- Indicates problem accessing the region.
Copyright © 2008 Hibernate.org. All Rights Reserved.