Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » cache » [javadoc | source]
org.hibernate.cache
public class: OSCacheProvider [javadoc | source]
java.lang.Object
   org.hibernate.cache.OSCacheProvider

All Implemented Interfaces:
    CacheProvider

Support for OpenSymphony OSCache. This implementation assumes that identifiers have well-behaved toString() methods.
Field Summary
public static final  String OSCACHE_REFRESH_PERIOD    The OSCache refresh period property suffix. 
public static final  String OSCACHE_CRON    The OSCache CRON expression property suffix. 
public static final  String OSCACHE_CAPACITY    The OSCache cache capacity property suffix. 
Method from org.hibernate.cache.OSCacheProvider Summary:
buildCache,   isMinimalPutsEnabledByDefault,   nextTimestamp,   start,   stop
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.cache.OSCacheProvider Detail:
 public Cache buildCache(String region,
    Properties properties) throws CacheException 
    Builds a new Cache instance, and gets it's properties from the OSCache Config which reads the properties file (oscache.properties) from the classpath. If the file cannot be found or loaded, an the defaults are used.
 public boolean isMinimalPutsEnabledByDefault() 
 public long nextTimestamp() 
 public  void start(Properties properties) throws CacheException 
    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().