|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.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 java.lang.String |
CACHE_CONFIG_PATHThe system property specifying the path to the cache configuration used to configure the hibernate L2 caches. |
protected static java.lang.String |
DEFAULT_CACHE_CONFIG_PATHThe cache configuration file that defines Coherence caches for Hibernate |
protected static java.lang.String |
PREFIXThe prefix for all provider-specific system properties |
| Constructor Summary | |
|---|---|
CoherenceCacheProvider() |
|
| Method Summary | |
|---|---|
Cache |
buildCache(java.lang.String sRegionName, java.util.Properties properties)Returns a Hibernate cache region (creating a clustered NamedCache instance if necessary). |
protected ConfigurableCacheFactory |
getCacheFactory()Get the ConfigurableCacheFactory instance |
protected NamedCache |
getNamedCache(java.lang.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(java.util.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 java.lang.String PREFIX
public static final java.lang.String CACHE_CONFIG_PATH
protected static final java.lang.String DEFAULT_CACHE_CONFIG_PATH
| Constructor Detail |
|---|
public CoherenceCacheProvider()
| Method Detail |
|---|
public Cache buildCache(java.lang.String sRegionName,
java.util.Properties properties)
sRegionName - a Hibernate cache region nameproperties - not used by this implementationpublic long nextTimestamp()
public void start(java.util.Properties properties)
throws CacheException
properties - configuration propertiesCacheException - thrown if there are configuration errorspublic void stop()
public boolean isMinimalPutsEnabledByDefault()
protected ConfigurableCacheFactory getCacheFactory()
protected void setCacheFactory(ConfigurableCacheFactory factory)
factory - the ConfigurableCacheFactory instanceprotected NamedCache getNamedCache(java.lang.String sName)
sName - the name of the NamedCache
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||