public class LiferayEhcacheRegionFactory
extends net.sf.ehcache.hibernate.EhCacheRegionFactory
| Modifier and Type | Field and Description |
|---|---|
protected net.sf.ehcache.hibernate.strategy.EhcacheAccessStrategyFactory |
accessStrategyFactory |
protected net.sf.ehcache.CacheManager |
manager |
protected net.sf.ehcache.hibernate.management.impl.ProviderMBeanRegistrationHelper |
mbeanRegistrationHelper |
static java.lang.String |
NET_SF_EHCACHE_CACHE_MANAGER_NAME |
static java.lang.String |
NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME |
protected org.hibernate.cfg.Settings |
settings |
| Constructor and Description |
|---|
LiferayEhcacheRegionFactory(java.util.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final java.lang.String NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME
public static final java.lang.String NET_SF_EHCACHE_CACHE_MANAGER_NAME
protected final net.sf.ehcache.hibernate.management.impl.ProviderMBeanRegistrationHelper mbeanRegistrationHelper
protected volatile net.sf.ehcache.CacheManager manager
protected org.hibernate.cfg.Settings settings
protected final net.sf.ehcache.hibernate.strategy.EhcacheAccessStrategyFactory accessStrategyFactory
public LiferayEhcacheRegionFactory(java.util.Properties properties)
public org.hibernate.cache.CollectionRegion buildCollectionRegion(java.lang.String regionName,
java.util.Properties properties,
org.hibernate.cache.CacheDataDescription cacheDataDescription)
throws org.hibernate.cache.CacheException
buildCollectionRegion in interface org.hibernate.cache.RegionFactorybuildCollectionRegion in class net.sf.ehcache.hibernate.EhCacheRegionFactoryorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.EntityRegion buildEntityRegion(java.lang.String regionName,
java.util.Properties properties,
org.hibernate.cache.CacheDataDescription cacheDataDescription)
throws org.hibernate.cache.CacheException
buildEntityRegion in interface org.hibernate.cache.RegionFactorybuildEntityRegion in class net.sf.ehcache.hibernate.EhCacheRegionFactoryorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.QueryResultsRegion buildQueryResultsRegion(java.lang.String regionName,
java.util.Properties properties)
throws org.hibernate.cache.CacheException
buildQueryResultsRegion in interface org.hibernate.cache.RegionFactorybuildQueryResultsRegion in class net.sf.ehcache.hibernate.EhCacheRegionFactoryorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.TimestampsRegion buildTimestampsRegion(java.lang.String regionName,
java.util.Properties properties)
throws org.hibernate.cache.CacheException
buildTimestampsRegion in interface org.hibernate.cache.RegionFactorybuildTimestampsRegion in class net.sf.ehcache.hibernate.EhCacheRegionFactoryorg.hibernate.cache.CacheExceptionpublic net.sf.ehcache.CacheManager getCacheManager()
public void reconfigureCaches(java.net.URL cacheConfigFile)
public void start(org.hibernate.cfg.Settings settings,
java.util.Properties properties)
throws org.hibernate.cache.CacheException
start in interface org.hibernate.cache.RegionFactorystart in class net.sf.ehcache.hibernate.EhCacheRegionFactoryorg.hibernate.cache.CacheExceptionprotected void configureCache(java.lang.String regionName)
protected void reconfigureCache(net.sf.ehcache.Ehcache replacementCache)
protected static java.net.URL loadResource(java.lang.String arg0)