|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.shark.ActivityCache
public class ActivityCache
Cache for storing process's activities.
Field Summary | |
---|---|
protected boolean |
allLoaded
|
protected java.util.Map |
cache
Activity cache. |
protected boolean |
openLoaded
|
protected WfProcessInternal |
proc
|
Constructor Summary | |
---|---|
ActivityCache(WfProcessInternal proc,
boolean newProcessInstance)
Creates activity cache for the process instance. |
Method Summary | |
---|---|
void |
add(java.lang.String actId,
WfActivityInternal act)
Adds activity to the cache. |
void |
clear()
Removes all the activities from the cache. |
void |
clearOpen(WMSessionHandle shandle)
Removes only the open activities from the cache. |
ActivityCache |
duplicate(WfProcessInternal p)
Duplicates this cache to be used in another process instance. |
protected WfActivityInternal |
get(java.lang.String actId)
Returns specific activity from the cache. |
java.util.List |
getAll(WMSessionHandle shandle)
Returns all the activities for the process. |
WfActivityInternal |
getAny(WMSessionHandle shandle,
java.lang.String procId,
java.lang.String actId)
Returns the activity for the given Id. |
java.util.List |
getOpen(WMSessionHandle shandle)
Returns all the open activities for the process. |
WfActivityInternal |
getOpen(WMSessionHandle shandle,
java.lang.String actId)
Returns the open activity for the given Id. |
int |
howManyEntries()
Returns how many activities are currently in the cache. |
void |
loadAll(WMSessionHandle shandle)
Loads all the activities for the process from DB into the cache. |
protected void |
loadAny(WMSessionHandle shandle,
java.lang.String procId,
java.lang.String actId)
Loads specific activity from DB into the cache. |
void |
loadOpen(WMSessionHandle shandle)
Loads all the open activities for the process from DB into the cache. |
WfActivityInternal |
remove(java.lang.String actId)
Removes activity from the cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map cache
protected WfProcessInternal proc
protected boolean openLoaded
protected boolean allLoaded
Constructor Detail |
---|
public ActivityCache(WfProcessInternal proc, boolean newProcessInstance)
Method Detail |
---|
public void add(java.lang.String actId, WfActivityInternal act)
actId
- Activity id.act
- WfActivityInternal object to be added to the cache.public WfActivityInternal remove(java.lang.String actId)
actId
- Activity id.protected WfActivityInternal get(java.lang.String actId)
actId
- Activity id.
public int howManyEntries()
public void clear()
public void clearOpen(WMSessionHandle shandle) throws java.lang.Exception
java.lang.Exception
public java.util.List getAll(WMSessionHandle shandle) throws java.lang.Exception
java.lang.Exception
public java.util.List getOpen(WMSessionHandle shandle) throws java.lang.Exception
java.lang.Exception
public WfActivityInternal getAny(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId) throws java.lang.Exception
java.lang.Exception
public WfActivityInternal getOpen(WMSessionHandle shandle, java.lang.String actId) throws java.lang.Exception
java.lang.Exception
public void loadAll(WMSessionHandle shandle) throws java.lang.Exception
java.lang.Exception
public void loadOpen(WMSessionHandle shandle) throws java.lang.Exception
java.lang.Exception
protected void loadAny(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId) throws java.lang.Exception
java.lang.Exception
public ActivityCache duplicate(WfProcessInternal p) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |