Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.cache
Class HashtableCacheProvider  view HashtableCacheProvider download HashtableCacheProvider.java

java.lang.Object
  extended byorg.hibernate.cache.HashtableCacheProvider
All Implemented Interfaces:
CacheProvider

public class HashtableCacheProvider
extends java.lang.Object
implements CacheProvider

A simple in-memory Hashtable-based cache impl.


Constructor Summary
HashtableCacheProvider()
           
 
Method Summary
 Cache buildCache(java.lang.String regionName, java.util.Properties properties)
          Configure the cache
 boolean isMinimalPutsEnabledByDefault()
           
 long nextTimestamp()
          Generate a timestamp
 void start(java.util.Properties properties)
          Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.
 void stop()
          Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashtableCacheProvider

public HashtableCacheProvider()
Method Detail

buildCache

public Cache buildCache(java.lang.String regionName,
                        java.util.Properties properties)
                 throws CacheException
Description copied from interface: CacheProvider
Configure the cache

Specified by:
buildCache in interface CacheProvider

nextTimestamp

public long nextTimestamp()
Description copied from interface: CacheProvider
Generate a timestamp

Specified by:
nextTimestamp in interface CacheProvider

start

public void start(java.util.Properties properties)
           throws CacheException
Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.

Specified by:
start in interface CacheProvider

stop

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

Specified by:
stop in interface CacheProvider

isMinimalPutsEnabledByDefault

public boolean isMinimalPutsEnabledByDefault()
Specified by:
isMinimalPutsEnabledByDefault in interface CacheProvider