net.sf.dropboxmq.workflow.persistence.memory
Class RunPersistenceImpl
java.lang.Object
net.sf.dropboxmq.workflow.persistence.memory.RunPersistenceImpl
- All Implemented Interfaces:
- RunPersistence
public class RunPersistenceImpl
- extends Object
- implements RunPersistence
Created: 03 Oct 2010
- Version:
- $Revision$, $Date$
- Author:
- Dwayne Schultz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunPersistenceImpl
public RunPersistenceImpl(StatePersistenceImpl statePersistence,
ProcessPersistenceImpl processPersistence,
ProcessTypePersistenceImpl processTypePersistence)
storeRun
public void storeRun(Run run)
- Specified by:
storeRun
in interface RunPersistence
getActiveRunsByProcessType
public List<Run> getActiveRunsByProcessType(int processTypeId)
- Specified by:
getActiveRunsByProcessType
in interface RunPersistence
getLastUpdatedRunByKeyAndProcessType
public Run getLastUpdatedRunByKeyAndProcessType(String key,
int processTypeId)
- Specified by:
getLastUpdatedRunByKeyAndProcessType
in interface RunPersistence
updateState
public void updateState(int runId,
Integer toStateId)
- Specified by:
updateState
in interface RunPersistence
getExistingRunById
Run getExistingRunById(int id)