Liferay 6.1.2-ce-ga3

com.liferay.portal.dao.orm.hibernate.region
Class LiferayEhcacheRegionFactory

java.lang.Object
  extended by net.sf.ehcache.hibernate.EhCacheRegionFactory
      extended by com.liferay.portal.dao.orm.hibernate.region.LiferayEhcacheRegionFactory
All Implemented Interfaces:
org.hibernate.cache.RegionFactory

public class LiferayEhcacheRegionFactory
extends net.sf.ehcache.hibernate.EhCacheRegionFactory


Field Summary
protected  net.sf.ehcache.hibernate.strategy.EhcacheAccessStrategyFactory accessStrategyFactory
           
protected  net.sf.ehcache.CacheManager manager
           
protected  net.sf.ehcache.hibernate.management.impl.ProviderMBeanRegistrationHelper mbeanRegistrationHelper
           
static String NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME
           
protected  org.hibernate.cfg.Settings settings
           
 
Constructor Summary
LiferayEhcacheRegionFactory(Properties properties)
           
 
Method Summary
 org.hibernate.cache.CollectionRegion buildCollectionRegion(String regionName, Properties properties, org.hibernate.cache.CacheDataDescription cacheDataDescription)
           
 org.hibernate.cache.EntityRegion buildEntityRegion(String regionName, Properties properties, org.hibernate.cache.CacheDataDescription cacheDataDescription)
           
 org.hibernate.cache.QueryResultsRegion buildQueryResultsRegion(String regionName, Properties properties)
           
 org.hibernate.cache.TimestampsRegion buildTimestampsRegion(String regionName, Properties properties)
           
protected  void configureCache(String regionName)
           
 net.sf.ehcache.CacheManager getCacheManager()
           
protected static URL loadResource(String arg0)
           
protected  void reconfigureCache(net.sf.ehcache.Ehcache replacementCache)
           
 void reconfigureCaches(URL cacheConfigFile)
           
 void start(org.hibernate.cfg.Settings settings, 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
 

Field Detail

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
Constructor Detail

LiferayEhcacheRegionFactory

public LiferayEhcacheRegionFactory(Properties properties)
Method Detail

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)

Liferay 6.1.2-ce-ga3