public interface

GeneralDataRegion

implements Region
org.hibernate.cache.GeneralDataRegion
Known Indirect Subclasses

Class Overview

Contract for general-purpose cache regions.

Summary

Public Methods
abstract void evict(Object key)
Evict an item from the cache immediately (without regard for transaction isolation).
abstract void evictAll()
Evict all contents of this particular cache region (without regard for transaction isolation).
abstract Object get(Object key)
Get an item from the cache.
abstract void put(Object key, Object value)
Put an item into the cache.
[Expand]
Inherited Methods
From interface org.hibernate.cache.Region

Public Methods

public abstract void evict (Object key)

Evict an item from the cache immediately (without regard for transaction isolation).

Parameters
key The key of the item to remove
Throws
CacheException Indicates a problem accessing the item or region.

public abstract void evictAll ()

Evict all contents of this particular cache region (without regard for transaction isolation).

Throws
CacheException Indicates problem accessing the region.

public abstract Object get (Object key)

Get an item from the cache.

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.

public abstract void put (Object key, Object value)

Put an item into the cache.

Parameters
key The key under which to cache the item.
value The item to cache.
Throws
CacheException Indicates a problem accessing the region.