Package org.hibernate.cache
Class NoCacheProvider
java.lang.Object
org.hibernate.cache.NoCacheProvider
- All Implemented Interfaces:
CacheProvider
Implementation of NoCacheProvider.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildCache(String regionName, Properties properties) Configure the cachebooleanlongGenerate a timestampvoidstart(Properties properties) Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.voidstop()Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().
-
Constructor Details
-
NoCacheProvider
public NoCacheProvider()
-
-
Method Details
-
buildCache
Configure the cache- Specified by:
buildCachein interfaceCacheProvider- Parameters:
regionName- the name of the cache regionproperties- configuration settings- Throws:
CacheException
-
nextTimestamp
public long nextTimestamp()Generate a timestamp- Specified by:
nextTimestampin interfaceCacheProvider
-
start
Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.- Specified by:
startin interfaceCacheProvider- Parameters:
properties- current configuration settings.- Throws:
CacheException
-
stop
public void stop()Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().- Specified by:
stopin interfaceCacheProvider
-
isMinimalPutsEnabledByDefault
public boolean isMinimalPutsEnabledByDefault()- Specified by:
isMinimalPutsEnabledByDefaultin interfaceCacheProvider
-