|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ode.dao.jpa.OpenJPADAO
org.apache.ode.dao.jpa.ProcessDAOImpl
public class ProcessDAOImpl
Constructor Summary | |
---|---|
ProcessDAOImpl()
|
|
ProcessDAOImpl(javax.xml.namespace.QName pid,
javax.xml.namespace.QName type,
java.lang.String guid,
long version)
|
Method Summary | |
---|---|
CorrelatorDAO |
addCorrelator(java.lang.String correlator)
|
ProcessInstanceDAO |
createInstance(CorrelatorDAO instantiatingCorrelator)
Create a new process instance object. |
void |
delete()
Remove the process from the database (along with any instance, variable data, etc...). |
java.util.Collection<ProcessInstanceDAO> |
findInstance(CorrelationKey key)
Locates a process instance based on a correlation key. |
java.util.Collection<ProcessInstanceDAO> |
findInstance(CorrelationKey ckey,
boolean wait)
|
CorrelatorDAO |
getCorrelator(java.lang.String correlatorId)
Get a message correlator instance. |
java.lang.String |
getGuid()
|
ProcessInstanceDAO |
getInstance(java.lang.Long iid)
Get a process instance (by identifier). |
int |
getNumInstances()
|
javax.xml.namespace.QName |
getProcessId()
Get the unique process identifier. |
javax.xml.namespace.QName |
getType()
Get the BPEL process name. |
long |
getVersion()
Get the process version |
void |
instanceCompleted(ProcessInstanceDAO instance)
Callback indicating that a process instance has completed its duties. |
void |
removeRoutes(java.lang.String routeId,
ProcessInstanceDAO target)
Remove the routes with the given Id for all the correlators in the process. |
Methods inherited from class org.apache.ode.dao.jpa.OpenJPADAO |
---|
batchUpdateByIds, getConn, getEM, getSingleResult |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProcessDAOImpl()
public ProcessDAOImpl(javax.xml.namespace.QName pid, javax.xml.namespace.QName type, java.lang.String guid, long version)
Method Detail |
---|
public CorrelatorDAO addCorrelator(java.lang.String correlator)
addCorrelator
in interface ProcessDAO
public CorrelatorDAO getCorrelator(java.lang.String correlatorId)
ProcessDAO
getCorrelator
in interface ProcessDAO
correlatorId
- correlator identifier
public ProcessInstanceDAO createInstance(CorrelatorDAO instantiatingCorrelator)
ProcessDAO
createInstance
in interface ProcessDAO
instantiatingCorrelator
- instantiating CorrelatorDAO
public java.util.Collection<ProcessInstanceDAO> findInstance(CorrelationKey key)
ProcessDAO
findInstance
in interface ProcessDAO
key
- correlation key
ProcessInstanceDAO
that match correlation key, ordered by datepublic java.util.Collection<ProcessInstanceDAO> findInstance(CorrelationKey ckey, boolean wait)
findInstance
in interface ProcessDAO
public ProcessInstanceDAO getInstance(java.lang.Long iid)
ProcessDAO
getInstance
in interface ProcessDAO
iid
- unique instance identifier.
public javax.xml.namespace.QName getProcessId()
ProcessDAO
getProcessId
in interface ProcessDAO
public javax.xml.namespace.QName getType()
ProcessDAO
getType
in interface ProcessDAO
public void delete()
ProcessDAO
delete
in interface ProcessDAO
public int getNumInstances()
getNumInstances
in interface ProcessDAO
public long getVersion()
ProcessDAO
getVersion
in interface ProcessDAO
public void instanceCompleted(ProcessInstanceDAO instance)
ProcessDAO
instanceCompleted
in interface ProcessDAO
instance
- the completed ProcessInstanceDAO
public void removeRoutes(java.lang.String routeId, ProcessInstanceDAO target)
ProcessDAO
removeRoutes
in interface ProcessDAO
public java.lang.String getGuid()
getGuid
in interface ProcessDAO
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |