|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-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 String |
CACHE_CONFIG_PATHThe system property specifying the path to the cache configuration used to configure the hibernate L2 caches. |
protected static String |
DEFAULT_CACHE_CONFIG_PATHThe cache configuration file that defines Coherence caches for Hibernate |
protected static String |
PREFIXThe prefix for all provider-specific system properties |
| Constructor Summary | |
|---|---|
CoherenceCacheProvider() |
|
| Method Summary | |
|---|---|
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 Cache buildCache(String sRegionName,
Properties properties)
sRegionName - a Hibernate cache region nameproperties - not used by this implementationpublic long nextTimestamp()
public void start(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(String sName)
sName - the name of the NamedCache
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||