|
Kodo 4.1.4 generated on June 22 2007 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager
org.apache.openjpa.datacache.AbstractQueryCache
kodo.datacache.GemFireQueryCache
public class GemFireQueryCache
A query cache that delegates to a GemStone GemFire cache.
To use GemFire in Kodo setkodo.QueryCache to
gemfire
By default, a GemFire region of root/kodo-query-cache
is used. This can be changed be setting the optional
property CacheName
Some notes regarding using Kodo with GemFire:
- Externalized fields must externalize to a serializable type
- The Kodo option of DynamicDataStructs and custom field proxies
aren't currently supported with GemFire
| Field Summary | |
|---|---|
static String |
DEFAULT_CACHE_NAME
|
| Fields inherited from class org.apache.openjpa.datacache.AbstractQueryCache |
|---|
conf, log |
| Constructor Summary | |
|---|---|
GemFireQueryCache()
|
|
| Method Summary | |
|---|---|
protected void |
clearInternal()
|
void |
endConfiguration()
|
String |
getGemFireCacheName()
Gets the name of the GemFire cache region to use. |
protected QueryResult |
getInternal(QueryKey key)
|
void |
initialize(DataCacheManager mgr)
|
boolean |
isTransactional()
|
protected Collection |
keySet()
|
protected GemFireCacheWrapper |
newCacheWrapper()
Create a new GemFire cache wrapper for internal use. |
void |
onTypesChanged(TypesChangedEvent ev)
|
protected boolean |
pinInternal(QueryKey key)
GemFire doesn't have a concept of pinning data. |
protected QueryResult |
putInternal(QueryKey key,
QueryResult value)
|
protected boolean |
recacheUpdates()
|
protected QueryResult |
removeInternal(QueryKey key)
|
void |
setGemfireCacheName(String name)
Deprecated. Retained for auto-conf compatibility with old conf files. |
void |
setGemFireCacheName(String name)
Sets the name of the GemFire cache region to use. |
void |
setTransactional(boolean transactional)
|
void |
startConfiguration()
|
protected boolean |
unpinInternal(QueryKey key)
GemFire doesn't have a concept of pinning data. |
void |
writeLock()
|
void |
writeUnlock()
|
| Methods inherited from class org.apache.openjpa.datacache.AbstractQueryCache |
|---|
addTypesChangedListener, afterCommit, clear, close, close, fireEvent, get, isClosed, newListenerCollection, pin, put, remove, removeAllInternal, removeTypesChangedListener, setConfiguration, unpin |
| Methods inherited from class org.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager |
|---|
addListener, fireEvent, getListeners, hasListener, hasListeners, isFailFast, removeListener, setFailFast |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_CACHE_NAME
| Constructor Detail |
|---|
public GemFireQueryCache()
| Method Detail |
|---|
public void setGemFireCacheName(String name)
public void setGemfireCacheName(String name)
public String getGemFireCacheName()
public void startConfiguration()
startConfiguration in interface ConfigurablestartConfiguration in class AbstractQueryCachepublic void endConfiguration()
endConfiguration in interface ConfigurableendConfiguration in class AbstractQueryCacheprotected GemFireCacheWrapper newCacheWrapper()
public void writeLock()
public void writeUnlock()
protected QueryResult getInternal(QueryKey key)
getInternal in class AbstractQueryCache
protected QueryResult putInternal(QueryKey key,
QueryResult value)
putInternal in class AbstractQueryCacheprotected QueryResult removeInternal(QueryKey key)
removeInternal in class AbstractQueryCacheprotected void clearInternal()
clearInternal in class AbstractQueryCachepublic void onTypesChanged(TypesChangedEvent ev)
onTypesChanged in interface TypesChangedListeneronTypesChanged in class AbstractQueryCacheprotected boolean pinInternal(QueryKey key)
Map#contains.
pinInternal in class AbstractQueryCacheprotected boolean unpinInternal(QueryKey key)
Map#contains.
unpinInternal in class AbstractQueryCacheprotected boolean recacheUpdates()
protected Collection keySet()
keySet in class AbstractQueryCachepublic void initialize(DataCacheManager mgr)
initialize in interface QueryCacheinitialize in class AbstractQueryCachepublic void setTransactional(boolean transactional)
public boolean isTransactional()
|
Kodo 4.1.4 generated on June 22 2007 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||