Top Description Constructors Methods
org.hibernate.cache

public Class HashtableCacheProvider

extends Object
implements CacheProvider
Class Inheritance
All Implemented Interfaces
org.hibernate.cache.CacheProvider
Imports
java.util.Properties

Deprecated

as a consequence of CacheProvider being deprecated. See corresponding docs for further information.

A simple in-memory Hashtable-based cache impl.
Author
Gavin King

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Cache
buildCache(String
the name of the cache region
regionName
,
Properties
configuration settings
properties
)

Implements org.hibernate.cache.CacheProvider.buildCache.

Deprecated as a consequence of Cache being deprecated.
Configure the cache
public boolean
public long
public void
start(Properties
current configuration settings.
properties
)

Implements org.hibernate.cache.CacheProvider.start.

Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.
public void
stop()

Implements org.hibernate.cache.CacheProvider.stop.

Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HashtableCacheProviderback to summary
public HashtableCacheProvider()

Method Detail

buildCacheback to summary
public Cache buildCache(String regionName, Properties properties) throws CacheException

Implements org.hibernate.cache.CacheProvider.buildCache.

Doc from org.hibernate.cache.CacheProvider.buildCache.

Deprecated

as a consequence of Cache being deprecated. See corresponding docs for further information.

Configure the cache

Parameters
regionName:String

the name of the cache region

properties:Properties

configuration settings

isMinimalPutsEnabledByDefaultback to summary
public boolean isMinimalPutsEnabledByDefault()

Implements org.hibernate.cache.CacheProvider.isMinimalPutsEnabledByDefault.

nextTimestampback to summary
public long nextTimestamp()

Implements org.hibernate.cache.CacheProvider.nextTimestamp.

Doc from org.hibernate.cache.CacheProvider.nextTimestamp.

Generate a timestamp

startback to summary
public void start(Properties properties) throws CacheException

Implements org.hibernate.cache.CacheProvider.start.

Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.

Parameters
properties:Properties

current configuration settings.

stopback to summary
public void stop()

Implements org.hibernate.cache.CacheProvider.stop.

Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().