|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.tangosol.util.Base
com.tangosol.coherence.hibernate.CoherenceCacheProvider
public class CoherenceCacheProvider
Serves as the integration point for the Coherence Cache Provider for Hibernate.
| Field Summary | |
|---|---|
static String |
CACHE_CONFIG_PATH
The system property specifying the path to the cache configuration used to configure the hibernate L2 caches. |
protected static String |
DEFAULT_CACHE_CONFIG_PATH
The cache configuration file that defines Coherence caches for Hibernate |
protected static String |
PREFIX
The prefix for all provider-specific system properties |
| Constructor Summary | |
|---|---|
CoherenceCacheProvider()
|
|
| Method Summary | |
|---|---|
org.hibernate.cache.Cache |
buildCache(String sRegionName,
Properties properties)
Returns a Hibernate cache region (creating a clustered NamedCache instance if necessary). |
protected ConfigurableCacheFactory |
getCacheFactory()
Get the ConfigurableCacheFactory instance |
protected NamedCache |
getNamedCache(String sName)
Get a NamedCache instance given a cache name. |
boolean |
isMinimalPutsEnabledByDefault()
Indicates whether minimal puts are enabled by default. |
long |
nextTimestamp()
Returns the current timestamp. |
protected void |
setCacheFactory(ConfigurableCacheFactory factory)
Set the ConfigurableCacheFactory instance |
void |
start(Properties properties)
Initializes the Coherence cache provider and pre-starts Coherence. |
void |
stop()
Stops the Coherence cache provider and frees local resources. |
| Field Detail |
|---|
protected static final String PREFIX
public static final String CACHE_CONFIG_PATH
protected static final String DEFAULT_CACHE_CONFIG_PATH
| Constructor Detail |
|---|
public CoherenceCacheProvider()
| Method Detail |
|---|
public org.hibernate.cache.Cache buildCache(String sRegionName,
Properties properties)
buildCache in interface org.hibernate.cache.CacheProvidersRegionName - a Hibernate cache region nameproperties - not used by this implementation
public long nextTimestamp()
nextTimestamp in interface org.hibernate.cache.CacheProvider
public void start(Properties properties)
throws org.hibernate.cache.CacheException
start in interface org.hibernate.cache.CacheProviderproperties - configuration properties
org.hibernate.cache.CacheException - thrown if there are configuration errorspublic void stop()
stop in interface org.hibernate.cache.CacheProviderpublic boolean isMinimalPutsEnabledByDefault()
isMinimalPutsEnabledByDefault in interface org.hibernate.cache.CacheProviderprotected ConfigurableCacheFactory getCacheFactory()
protected void setCacheFactory(ConfigurableCacheFactory factory)
factory - the ConfigurableCacheFactory instanceprotected NamedCache getNamedCache(String sName)
sName - the name of the NamedCache
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||