|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.hibernate.cache.EhCacheProvider
Cache Provider plugin for Hibernate
Use hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
in Hibernate 3.x or later
Taken from EhCache 0.9 distribution
| Constructor Summary | |
EhCacheProvider()
|
|
| Method Summary | |
Cache |
buildCache(String name,
Properties properties)
Builds a Cache. |
long |
nextTimestamp()
Returns the next timestamp. |
void |
start(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 |
public EhCacheProvider()
| Method Detail |
public Cache buildCache(String name, Properties properties) throws CacheException
Even though this method provides properties, they are not used. Properties for EHCache are specified in the ehcache.xml file. Configuration will be read from ehcache.xml for a cache declaration where the name attribute matches the name parameter in this builder.
buildCache in interface CacheProvidername - the name of the cache. Must match a cache configured in ehcache.xmlproperties - not used
CacheException - inter alia, if a cache of the same name already existspublic long nextTimestamp()
nextTimestamp in interface CacheProviderpublic void start(Properties properties) throws CacheException
start in interface CacheProviderproperties - current configuration settings.
CacheExceptionpublic void stop()
stop in interface CacheProvider
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||