public class FineEhCacheRegionFactory extends java.lang.Object implements RegionFactoryProvider
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
FineEhCacheRegionFactory.Config |
| 限定符和类型 | 字段和说明 |
|---|---|
protected com.fr.third.org.hibernate.boot.spi.SessionFactoryOptions |
settings
Settings object for the Hibernate persistence unit.
|
| 构造器和说明 |
|---|
FineEhCacheRegionFactory(java.lang.String namespace,
FineEhCacheRegionFactory.Config config) |
| 限定符和类型 | 方法和说明 |
|---|---|
com.fr.third.org.hibernate.cache.spi.CollectionRegion |
buildCollectionRegion(java.lang.String regionName,
java.util.Properties properties,
com.fr.third.org.hibernate.cache.spi.CacheDataDescription metadata) |
com.fr.third.org.hibernate.cache.spi.EntityRegion |
buildEntityRegion(java.lang.String regionName,
java.util.Properties properties,
com.fr.third.org.hibernate.cache.spi.CacheDataDescription metadata) |
com.fr.third.org.hibernate.cache.spi.NaturalIdRegion |
buildNaturalIdRegion(java.lang.String regionName,
java.util.Properties properties,
com.fr.third.org.hibernate.cache.spi.CacheDataDescription metadata) |
com.fr.third.org.hibernate.cache.spi.QueryResultsRegion |
buildQueryResultsRegion(java.lang.String regionName,
java.util.Properties properties) |
com.fr.third.org.hibernate.cache.spi.TimestampsRegion |
buildTimestampsRegion(java.lang.String regionName,
java.util.Properties properties) |
com.fr.third.org.hibernate.cache.spi.access.AccessType |
getDefaultAccessType()
Default access-type used when the configured using JPA 2.0 config.
|
boolean |
isMinimalPutsEnabledByDefault()
In Ehcache we default to minimal puts since this should have minimal to no
affect on unclustered users, and has great benefit for clustered users.
|
long |
nextTimestamp() |
void |
recycleMemory()
回收内存,用于释放不再使用的对象
|
void |
setClassLoaderService(com.fr.third.org.hibernate.boot.registry.classloading.spi.ClassLoaderService classLoaderService) |
void |
start(com.fr.third.org.hibernate.boot.spi.SessionFactoryOptions sessionFactoryOptions,
java.util.Properties properties) |
void |
stop() |
protected com.fr.third.org.hibernate.boot.spi.SessionFactoryOptions settings
public FineEhCacheRegionFactory(java.lang.String namespace,
FineEhCacheRegionFactory.Config config)
public void start(com.fr.third.org.hibernate.boot.spi.SessionFactoryOptions sessionFactoryOptions,
java.util.Properties properties)
throws com.fr.third.org.hibernate.cache.CacheException
start 在接口中 com.fr.third.org.hibernate.cache.spi.RegionFactorycom.fr.third.org.hibernate.cache.CacheExceptionpublic void stop()
stop 在接口中 com.fr.third.org.hibernate.cache.spi.RegionFactorypublic boolean isMinimalPutsEnabledByDefault()
isMinimalPutsEnabledByDefault 在接口中 com.fr.third.org.hibernate.cache.spi.RegionFactorypublic long nextTimestamp()
nextTimestamp 在接口中 com.fr.third.org.hibernate.cache.spi.RegionFactorypublic com.fr.third.org.hibernate.cache.spi.EntityRegion buildEntityRegion(java.lang.String regionName,
java.util.Properties properties,
com.fr.third.org.hibernate.cache.spi.CacheDataDescription metadata)
throws com.fr.third.org.hibernate.cache.CacheException
buildEntityRegion 在接口中 com.fr.third.org.hibernate.cache.spi.RegionFactorycom.fr.third.org.hibernate.cache.CacheExceptionpublic com.fr.third.org.hibernate.cache.spi.NaturalIdRegion buildNaturalIdRegion(java.lang.String regionName,
java.util.Properties properties,
com.fr.third.org.hibernate.cache.spi.CacheDataDescription metadata)
throws com.fr.third.org.hibernate.cache.CacheException
buildNaturalIdRegion 在接口中 com.fr.third.org.hibernate.cache.spi.RegionFactorycom.fr.third.org.hibernate.cache.CacheExceptionpublic com.fr.third.org.hibernate.cache.spi.CollectionRegion buildCollectionRegion(java.lang.String regionName,
java.util.Properties properties,
com.fr.third.org.hibernate.cache.spi.CacheDataDescription metadata)
throws com.fr.third.org.hibernate.cache.CacheException
buildCollectionRegion 在接口中 com.fr.third.org.hibernate.cache.spi.RegionFactorycom.fr.third.org.hibernate.cache.CacheExceptionpublic com.fr.third.org.hibernate.cache.spi.QueryResultsRegion buildQueryResultsRegion(java.lang.String regionName,
java.util.Properties properties)
throws com.fr.third.org.hibernate.cache.CacheException
buildQueryResultsRegion 在接口中 com.fr.third.org.hibernate.cache.spi.RegionFactorycom.fr.third.org.hibernate.cache.CacheExceptionpublic void setClassLoaderService(com.fr.third.org.hibernate.boot.registry.classloading.spi.ClassLoaderService classLoaderService)
public com.fr.third.org.hibernate.cache.spi.TimestampsRegion buildTimestampsRegion(java.lang.String regionName,
java.util.Properties properties)
throws com.fr.third.org.hibernate.cache.CacheException
buildTimestampsRegion 在接口中 com.fr.third.org.hibernate.cache.spi.RegionFactorycom.fr.third.org.hibernate.cache.CacheExceptionpublic com.fr.third.org.hibernate.cache.spi.access.AccessType getDefaultAccessType()
@Cacheable(true) to be attached to an
entity without any access type or usage qualification.
We are conservative here in specifying AccessType.READ_WRITE so as to follow the mantra of "do no harm".
This is a Hibernate 3.5 method.getDefaultAccessType 在接口中 com.fr.third.org.hibernate.cache.spi.RegionFactorypublic void recycleMemory()
RegionFactoryProviderrecycleMemory 在接口中 RegionFactoryProvider