|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.iseries.core.cache.AbstractCacheHandler
Abstract class to handle generic caching related tasts.
Field Summary | |
---|---|
protected static int |
CACHE_DEPTH
|
protected CacheManager |
cacheMgr
|
static String |
copyright
|
protected com.ibm.etools.systems.dstore.core.model.DataElement |
minerRoot
|
Constructor Summary | |
---|---|
AbstractCacheHandler(com.ibm.etools.systems.dstore.core.model.DataElement minerRoot,
com.ibm.etools.systems.subsystems.ISystem system)
Constructor |
Method Summary | |
---|---|
static void |
cacheNotAvailable()
Helper method for throwing exception when required information is not available in the cache. |
protected abstract StringBuffer |
getKeyForObject(com.ibm.etools.systems.dstore.core.model.DataElement object)
Builds the cache key for the specified DataElement. |
protected com.ibm.etools.systems.dstore.core.model.DataElement |
loadChild(com.ibm.etools.systems.dstore.core.model.DataElement parent,
String childName,
int depth)
Load a single child node from the parent upto specified depth. |
void |
save(com.ibm.etools.systems.dstore.core.model.DataElement element,
int depth)
Save the specified DataElement to the cache along with depth children. |
void |
save(com.ibm.etools.systems.dstore.core.model.DataElement element,
int depth,
boolean refresh)
Save the specified DataElement to the cache along with depth children. |
void |
save(com.ibm.etools.systems.dstore.core.model.DataElement element,
int cacheDepth,
int treeDepth)
Save the specified DataElement to the cache using a directory depth of cacheDepth and a tree depth of treeDepth. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String copyright
protected static final int CACHE_DEPTH
protected CacheManager cacheMgr
protected com.ibm.etools.systems.dstore.core.model.DataElement minerRoot
Constructor Detail |
public AbstractCacheHandler(com.ibm.etools.systems.dstore.core.model.DataElement minerRoot, com.ibm.etools.systems.subsystems.ISystem system)
Method Detail |
public static void cacheNotAvailable() throws com.ibm.etools.systems.core.messages.SystemMessageException
com.ibm.etools.systems.core.messages.SystemMessageException
public void save(com.ibm.etools.systems.dstore.core.model.DataElement element, int depth)
element
- DataElement to be saved to the cachedepth
- Number of layers in the DataStore tree under element to be savedpublic void save(com.ibm.etools.systems.dstore.core.model.DataElement element, int depth, boolean refresh)
element
- DataElement to be saved to the cachedepth
- Number of layers in the DataStore tree under element to be savedrefresh
- Refresh the cache with what is under element. Any children in the
cache that do not exists as children of element will be removed.public void save(com.ibm.etools.systems.dstore.core.model.DataElement element, int cacheDepth, int treeDepth)
protected abstract StringBuffer getKeyForObject(com.ibm.etools.systems.dstore.core.model.DataElement object)
protected com.ibm.etools.systems.dstore.core.model.DataElement loadChild(com.ibm.etools.systems.dstore.core.model.DataElement parent, String childName, int depth)
|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |