|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.hibernate.Provider
Cache Provider plugin for Hibernate
Use hibernate.cache.provider_class=net.sf.ehcache.hibernate.Provider
in Hibernate 2.1 or later.
Constructor Summary | |
Provider()
|
Method Summary | |
net.sf.hibernate.cache.Cache |
buildCache(java.lang.String name,
java.util.Properties properties)
Builds a Cache. |
long |
nextTimestamp()
Returns the next timestamp. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Provider()
Method Detail |
public net.sf.hibernate.cache.Cache buildCache(java.lang.String name, java.util.Properties properties) throws net.sf.hibernate.cache.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 net.sf.hibernate.cache.CacheProvider
name
- the name of the cache. Must match a cache configured in ehcache.xmlproperties
- not used
net.sf.hibernate.cache.CacheException
- inter alia, if a cache of the same name already existspublic long nextTimestamp()
nextTimestamp
in interface net.sf.hibernate.cache.CacheProvider
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |