org.hibernate.cache.impl
Class NoCachingRegionFactory
java.lang.Object
org.hibernate.cache.impl.NoCachingRegionFactory
- RegionFactory
public class NoCachingRegionFactory
extends java.lang.Object
Factory used if no caching enabled in config...
NoCachingRegionFactory
public NoCachingRegionFactory(Properties properties)
buildEntityRegion
public EntityRegion buildEntityRegion(String regionName,
Properties properties,
CacheDataDescription metadata)
throws CacheException
Build a cache region specialized for storing entity data.
- buildEntityRegion in interface RegionFactory
regionName
- The name of the region.properties
- Configuration properties.metadata
- Information regarding the type of data to be cached
buildTimestampsRegion
public TimestampsRegion buildTimestampsRegion(String regionName,
Properties properties)
throws CacheException
Build a cache region specialized for storing update-timestamps data.
- buildTimestampsRegion in interface RegionFactory
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?
- isMinimalPutsEnabledByDefault in interface RegionFactory
- 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.
- nextTimestamp in interface RegionFactory
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
.
- start in interface RegionFactory
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()
.
- stop in interface RegionFactory