FileDocCategorySizeDatePackage
NoCacheProvider.javaAPI DocHibernate 3.2.51738Fri Apr 15 13:20:04 BST 2005org.hibernate.cache

NoCacheProvider

public class NoCacheProvider extends Object implements CacheProvider
Implementation of NoCacheProvider.
author
Steve Ebersole

Fields Summary
Constructors Summary
Methods Summary
public CachebuildCache(java.lang.String regionName, java.util.Properties properties)
Configure the cache

param
regionName the name of the cache region
param
properties configuration settings
throws
CacheException

		throw new NoCachingEnabledException();
	
public booleanisMinimalPutsEnabledByDefault()

		// this is called from SettingsFactory irregardless; trivial to simply disregard
		return false;
	
public longnextTimestamp()
Generate a timestamp

		// This, is used by SessionFactoryImpl to hand to the generated SessionImpl;
		// was the only reason I could see that we cannot just use null as
		// Settings.cacheProvider
		return System.currentTimeMillis() / 100;
	
public voidstart(java.util.Properties properties)
Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.

param
properties current configuration settings.

		// this is called by SessionFactory irregardless; we just disregard here;
		// could also add a check to SessionFactory to only conditionally call start
	
public voidstop()
Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().

		// this is called by SessionFactory irregardless; we just disregard here;
		// could also add a check to SessionFactory to only conditionally call stop