net.sf.dropboxmq.workflow.persistence.jdbc
Class RunPersistenceImpl

java.lang.Object
  extended by net.sf.dropboxmq.workflow.persistence.jdbc.RunPersistenceImpl
All Implemented Interfaces:
RunPersistence

public class RunPersistenceImpl
extends Object
implements RunPersistence

Created: 06 Feb 2011

Version:
$Revision$, $Date$
Author:
Dwayne Schultz

Constructor Summary
RunPersistenceImpl(PersistenceFactoryImpl persistenceFactory)
           
 
Method Summary
 List<Run> getActiveRunsByProcessType(int processTypeId)
           
 Run getLastUpdatedRunByKeyAndProcessType(String key, int processTypeId)
           
(package private)  JDBCHelper newJDBCHelper()
           
 void storeRun(Run run)
           
 void updateState(int runId, Integer toStateId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunPersistenceImpl

public RunPersistenceImpl(PersistenceFactoryImpl persistenceFactory)
Method Detail

storeRun

public void storeRun(Run run)
Specified by:
storeRun in interface RunPersistence

newJDBCHelper

JDBCHelper newJDBCHelper()

getLastUpdatedRunByKeyAndProcessType

public Run getLastUpdatedRunByKeyAndProcessType(String key,
                                                int processTypeId)
Specified by:
getLastUpdatedRunByKeyAndProcessType in interface RunPersistence

getActiveRunsByProcessType

public List<Run> getActiveRunsByProcessType(int processTypeId)
Specified by:
getActiveRunsByProcessType in interface RunPersistence

updateState

public void updateState(int runId,
                        Integer toStateId)
Specified by:
updateState in interface RunPersistence