|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.cas.workflow.instrepo.AbstractPaginatibleInstanceRepository
org.apache.oodt.cas.workflow.instrepo.DataSourceWorkflowInstanceRepository
public class DataSourceWorkflowInstanceRepository
A WorkflowInstanceRepository that persists WorkflowInstances
to a JDBC-accessible DBMS.
| Field Summary |
|---|
| Fields inherited from class org.apache.oodt.cas.workflow.instrepo.AbstractPaginatibleInstanceRepository |
|---|
pageSize |
| Fields inherited from interface org.apache.oodt.cas.workflow.instrepo.WorkflowInstanceRepository |
|---|
X_POINT_ID |
| Constructor Summary | |
|---|---|
DataSourceWorkflowInstanceRepository(DataSource ds,
boolean quoteFields,
int pageSize)
|
|
| Method Summary | |
|---|---|
void |
addWorkflowInstance(WorkflowInstance wInst)
Persists the specified WorkflowInstance to the instance
repository. |
int |
getNumWorkflowInstances()
Gets the number of WorkflowInstances with any status
being managed by this WorkflowInstanceRepository. |
int |
getNumWorkflowInstancesByStatus(String status)
Gets the number of WorkflowInstances with the given
status being managed by this WorkflowInstanceRepository. |
WorkflowInstance |
getWorkflowInstanceById(String workflowInstId)
Returns the WorkflowInstances with the specified
workflowInstId. |
List |
getWorkflowInstances()
|
List |
getWorkflowInstancesByStatus(String status)
Returns a List of WorkflowInstances, with the specified
status String. |
protected List |
paginateWorkflows(int pageNum,
String status)
|
void |
removeWorkflowInstance(WorkflowInstance wInst)
Removes the specified WorkflowInstance from the instance
repository. |
void |
updateWorkflowInstance(WorkflowInstance wInst)
Updates and persists the specified WorkflowInstance to the
instance repository. |
| Methods inherited from class org.apache.oodt.cas.workflow.instrepo.AbstractPaginatibleInstanceRepository |
|---|
getFirstPage, getLastPage, getNextPage, getPagedWorkflows, getPagedWorkflows, getPrevPage, paginateWorkflows |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSourceWorkflowInstanceRepository(DataSource ds,
boolean quoteFields,
int pageSize)
| Method Detail |
|---|
public void addWorkflowInstance(WorkflowInstance wInst)
throws InstanceRepositoryException
WorkflowInstanceRepositoryWorkflowInstance to the instance
repository.
wInst - The workflow instance to persist.
InstanceRepositoryException - If any error occurs.
public void updateWorkflowInstance(WorkflowInstance wInst)
throws InstanceRepositoryException
WorkflowInstanceRepositoryWorkflowInstance to the
instance repository.
wInst - The workflow instance to update and persist.
InstanceRepositoryException - If any error occurs.
public void removeWorkflowInstance(WorkflowInstance wInst)
throws InstanceRepositoryException
WorkflowInstanceRepositoryWorkflowInstance from the instance
repository.
wInst - The workflow instance to remove.
InstanceRepositoryException - If any error occurs.
public WorkflowInstance getWorkflowInstanceById(String workflowInstId)
throws InstanceRepositoryException
WorkflowInstanceRepository
Returns the WorkflowInstances with the specified
workflowInstId.
workflowInstId - The ID of the WorkflowInstance to return.
WorkflowInstance.
InstanceRepositoryException - If any error occurs.
public List getWorkflowInstances()
throws InstanceRepositoryException
List of WorkflowInstances that this
WorkflowEngine is managing.
InstanceRepositoryException - If any error occurs.
public List getWorkflowInstancesByStatus(String status)
throws InstanceRepositoryException
WorkflowInstanceRepository
Returns a List of WorkflowInstances, with the specified
status String.
status - A string representation of the status of the
WorkflowInstance.
List of WorkflowInstances, with the specified
status String.
InstanceRepositoryException - If there is any error that occurs.
public int getNumWorkflowInstances()
throws InstanceRepositoryException
WorkflowInstanceRepositoryWorkflowInstances with any status
being managed by this WorkflowInstanceRepository.
WorkflowInstances associated with any
status being managed by this
WorkflowInstanceRepository.
InstanceRepositoryException
public int getNumWorkflowInstancesByStatus(String status)
throws InstanceRepositoryException
WorkflowInstanceRepositoryWorkflowInstances with the given
status being managed by this WorkflowInstanceRepository.
status - The status to obtain the number of WorkflowInstances
for.
WorkflowInstances with the given
status.
InstanceRepositoryException - If there is any error that occurs.
protected List paginateWorkflows(int pageNum,
String status)
throws InstanceRepositoryException
paginateWorkflows in class AbstractPaginatibleInstanceRepositoryInstanceRepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||