Top Description Methods
org.hibernate.cache

public Interface CacheProvider

Known Direct Implementers
org.hibernate.cache.HashtableCacheProvider, org.hibernate.cache.NoCacheProvider, org.hibernate.cache.AbstractJndiBoundCacheProvider
Imports
java.util.Properties

Deprecated

As of 3.3; see for details.

Support for pluggable caches.
Author
Gavin King

Method Summary

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

Deprecated as a consequence of Cache being deprecated.
Configure the cache
public boolean
public long
nextTimestamp()

Generate a timestamp

public void
start(Properties
current configuration settings.
properties
)

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

public void
stop()

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

Method Detail

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

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()
nextTimestampback to summary
public long nextTimestamp()

Generate a timestamp

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

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()

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