|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.state.FetchPlanState
org.datanucleus.state.CacheState
public class CacheState
Holder for the state information for the (Level2) cache process. This is used when we are preparing a graph of objects for caching in the L2 cache. The persistence process requests that object X is cached in the L2 cache, and we process that object down the fetch plan finding a collection of objects that can be cached with it (following what the user has defined in MetaData for the fields that can be cached).
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.state.FetchPlanState |
|---|
fetchFieldNames |
| Constructor Summary | |
|---|---|
CacheState()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addCacheableObject(java.lang.Object id,
CachedPC cacheablePC)
Method to add an object to be cached. |
boolean |
contains(java.lang.Object id)
Accessor for whether the object with the supplied identity is already to be cached. |
CachedPC |
getCacheableObject(java.lang.Object id)
Accessor for the cacheable object for this id (if any). |
java.util.Map |
getCacheableObjectsIdMap()
Accessor for the cacheable objects as a Map |
| Methods inherited from class org.datanucleus.state.FetchPlanState |
|---|
addFieldName, getCurrentFetchDepth, getObjectDepthForType, removeLatestFieldName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheState()
| Method Detail |
|---|
public void addCacheableObject(java.lang.Object id,
CachedPC cacheablePC)
id - Id of the objectcacheablePC - the cacheable persistable objectpublic CachedPC getCacheableObject(java.lang.Object id)
id - The identity
public boolean contains(java.lang.Object id)
id - Identity of the object
public java.util.Map getCacheableObjectsIdMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||