org.hibernate.cache
Interface RegionFactory
- NoCachingRegionFactory, RegionFactoryCacheProviderBridge
public interface RegionFactory
buildCollectionRegion
public CollectionRegion buildCollectionRegion(String regionName,
Properties properties,
CacheDataDescription metadata)
throws CacheException
Build a cache region specialized for storing collection data.
regionName
- The name of the region.properties
- Configuration properties.metadata
- Information regarding the type of data to be cached
buildEntityRegion
public EntityRegion buildEntityRegion(String regionName,
Properties properties,
CacheDataDescription metadata)
throws CacheException
Build a cache region specialized for storing entity data.
regionName
- The name of the region.properties
- Configuration properties.metadata
- Information regarding the type of data to be cached
buildQueryResultsRegion
public QueryResultsRegion buildQueryResultsRegion(String regionName,
Properties properties)
throws CacheException
Build a cache region specialized for storing query results
regionName
- The name of the region.properties
- Configuration properties.
buildTimestampsRegion
public TimestampsRegion buildTimestampsRegion(String regionName,
Properties properties)
throws CacheException
Build a cache region specialized for storing update-timestamps data.
regionName
- The name of the region.properties
- Configuration properties.
isMinimalPutsEnabledByDefault
public boolean isMinimalPutsEnabledByDefault()
By default should we perform "minimal puts" when using this second
level cache implementation?
- True if "minimal puts" should be performed by default; false
otherwise.
nextTimestamp
public long nextTimestamp()
Generate a timestamp.
This is generally used for cache content locking/unlocking purposes
depending upon the access-strategy being used.
start
public void start(Settings settings,
Properties properties)
throws CacheException
Lifecycle callback to perform any necessary initialization of the
underlying cache implementation(s). Called exactly once during the
construction of a
SessionFactoryImpl
.
settings
- The settings in effect.properties
- The defined cfg properties
stop
public void stop()
Lifecycle callback to perform any necessary cleanup of the underlying
cache implementation(s). Called exactly once during
SessionFactory.close()
.