com.liferay.portal.dao.orm.hibernate.region
Class LiferayEhcacheRegionFactory
java.lang.Object
net.sf.ehcache.hibernate.EhCacheRegionFactory
com.liferay.portal.dao.orm.hibernate.region.LiferayEhcacheRegionFactory
- All Implemented Interfaces:
- org.hibernate.cache.RegionFactory
public class LiferayEhcacheRegionFactory
- extends net.sf.ehcache.hibernate.EhCacheRegionFactory
Methods inherited from class net.sf.ehcache.hibernate.EhCacheRegionFactory |
stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME
public static final String NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME
- See Also:
- Constant Field Values
mbeanRegistrationHelper
protected final net.sf.ehcache.hibernate.management.impl.ProviderMBeanRegistrationHelper mbeanRegistrationHelper
manager
protected volatile net.sf.ehcache.CacheManager manager
settings
protected org.hibernate.cfg.Settings settings
accessStrategyFactory
protected final net.sf.ehcache.hibernate.strategy.EhcacheAccessStrategyFactory accessStrategyFactory
LiferayEhcacheRegionFactory
public LiferayEhcacheRegionFactory(Properties properties)
buildCollectionRegion
public org.hibernate.cache.CollectionRegion buildCollectionRegion(String regionName,
Properties properties,
org.hibernate.cache.CacheDataDescription cacheDataDescription)
throws org.hibernate.cache.CacheException
- Specified by:
buildCollectionRegion
in interface org.hibernate.cache.RegionFactory
- Overrides:
buildCollectionRegion
in class net.sf.ehcache.hibernate.EhCacheRegionFactory
- Throws:
org.hibernate.cache.CacheException
buildEntityRegion
public org.hibernate.cache.EntityRegion buildEntityRegion(String regionName,
Properties properties,
org.hibernate.cache.CacheDataDescription cacheDataDescription)
throws org.hibernate.cache.CacheException
- Specified by:
buildEntityRegion
in interface org.hibernate.cache.RegionFactory
- Overrides:
buildEntityRegion
in class net.sf.ehcache.hibernate.EhCacheRegionFactory
- Throws:
org.hibernate.cache.CacheException
buildQueryResultsRegion
public org.hibernate.cache.QueryResultsRegion buildQueryResultsRegion(String regionName,
Properties properties)
throws org.hibernate.cache.CacheException
- Specified by:
buildQueryResultsRegion
in interface org.hibernate.cache.RegionFactory
- Overrides:
buildQueryResultsRegion
in class net.sf.ehcache.hibernate.EhCacheRegionFactory
- Throws:
org.hibernate.cache.CacheException
buildTimestampsRegion
public org.hibernate.cache.TimestampsRegion buildTimestampsRegion(String regionName,
Properties properties)
throws org.hibernate.cache.CacheException
- Specified by:
buildTimestampsRegion
in interface org.hibernate.cache.RegionFactory
- Overrides:
buildTimestampsRegion
in class net.sf.ehcache.hibernate.EhCacheRegionFactory
- Throws:
org.hibernate.cache.CacheException
getCacheManager
public net.sf.ehcache.CacheManager getCacheManager()
reconfigureCaches
public void reconfigureCaches(URL cacheConfigFile)
start
public void start(org.hibernate.cfg.Settings settings,
Properties properties)
throws org.hibernate.cache.CacheException
- Specified by:
start
in interface org.hibernate.cache.RegionFactory
- Overrides:
start
in class net.sf.ehcache.hibernate.EhCacheRegionFactory
- Throws:
org.hibernate.cache.CacheException
configureCache
protected void configureCache(String regionName)
reconfigureCache
protected void reconfigureCache(net.sf.ehcache.Ehcache replacementCache)
loadResource
protected static URL loadResource(String arg0)