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
- Author:
- Edward Han
|
Method Summary |
org.hibernate.cache.CollectionRegion |
buildCollectionRegion(java.lang.String regionName,
java.util.Properties properties,
org.hibernate.cache.CacheDataDescription cacheDataDescription)
|
org.hibernate.cache.EntityRegion |
buildEntityRegion(java.lang.String regionName,
java.util.Properties properties,
org.hibernate.cache.CacheDataDescription cacheDataDescription)
|
org.hibernate.cache.QueryResultsRegion |
buildQueryResultsRegion(java.lang.String regionName,
java.util.Properties properties)
|
org.hibernate.cache.TimestampsRegion |
buildTimestampsRegion(java.lang.String regionName,
java.util.Properties properties)
|
protected void |
configureCache(java.lang.String regionName)
|
net.sf.ehcache.CacheManager |
getCacheManager()
|
protected static java.net.URL |
loadResource(java.lang.String arg0)
|
protected void |
reconfigureCache(net.sf.ehcache.Ehcache replacementCache)
|
void |
reconfigureCaches(java.net.URL cacheConfigFile)
|
void |
start(org.hibernate.cfg.Settings settings,
java.util.Properties properties)
|
| 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 java.lang.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(java.util.Properties properties)
buildCollectionRegion
public org.hibernate.cache.CollectionRegion buildCollectionRegion(java.lang.String regionName,
java.util.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(java.lang.String regionName,
java.util.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(java.lang.String regionName,
java.util.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(java.lang.String regionName,
java.util.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(java.net.URL cacheConfigFile)
start
public void start(org.hibernate.cfg.Settings settings,
java.util.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(java.lang.String regionName)
reconfigureCache
protected void reconfigureCache(net.sf.ehcache.Ehcache replacementCache)
loadResource
protected static java.net.URL loadResource(java.lang.String arg0)