org.jbpm.pvm.internal.session
Interface DbSession

All Known Implementing Classes:
DbSessionImpl

public interface DbSession

Author:
Tom Baeyens

Method Summary
 void cascadeExecutionResume(ExecutionImpl execution)
           
 void cascadeExecutionSuspend(ExecutionImpl execution)
           
 DeploymentQueryImpl createDeploymentQuery()
           
 HistoryActivityInstanceQueryImpl createHistoryActivityInstanceQuery()
           
 HistoryDetailQueryImpl createHistoryDetailQuery()
           
 HistoryProcessInstanceQueryImpl createHistoryProcessInstanceQuery()
           
 JobQueryImpl createJobQuery()
           
 ProcessInstanceQueryImpl createProcessInstanceQuery()
          create a process instance query
 TaskImpl createTask()
           
 TaskQueryImpl createTaskQuery()
          create a task query
 void delete(java.lang.Object entity)
           
 void deleteProcessDefinitionHistory(java.lang.String processDefinitionId)
          deletes the history information for all process instances for the given process definition
 void deleteProcessInstance(java.lang.String processInstanceId, boolean deleteHistory)
          delete the process instance and optionally deletes the history.
 java.util.List<HistoryComment> findCommentsByTaskId(java.lang.String taskId)
           
 java.util.List<JobImpl> findExclusiveJobs(Execution processInstance)
          the list of jobs of the process instance that mustn't be concurrent
 ClientExecution findExecutionById(java.lang.String executionId)
          the execution uniquely identified by the given executionKey.
 JobImpl findFirstAcquirableJob()
          the first job to finish among eligible and non-locked jobs or null if none
 JobImpl findFirstDueJob()
          the first job to finish among non-owned jobs or null if none
 ClientExecution findProcessInstanceById(java.lang.String processInstanceId)
          the process instance uniquely identified by the given executionKey.
 java.util.List<java.lang.String> findProcessInstanceIds(java.lang.String processDefinitionId)
           
 java.util.List<StartProcessTimer> findStartProcessTimers(java.lang.String processDefinitionId)
          returns a list of start process timers for the given process definition
 TaskImpl findTaskByExecution(Execution execution)
           
 void flush()
           
<T> T
get(java.lang.Class<T> entityClass, java.lang.Object primaryKey)
           
 void save(java.lang.Object entity)
           
 void update(java.lang.Object entity)
           
 

Method Detail

save

void save(java.lang.Object entity)

update

void update(java.lang.Object entity)

get

<T> T get(java.lang.Class<T> entityClass,
          java.lang.Object primaryKey)

delete

void delete(java.lang.Object entity)

flush

void flush()

createProcessInstanceQuery

ProcessInstanceQueryImpl createProcessInstanceQuery()
create a process instance query


createTaskQuery

TaskQueryImpl createTaskQuery()
create a task query


createHistoryProcessInstanceQuery

HistoryProcessInstanceQueryImpl createHistoryProcessInstanceQuery()

createHistoryActivityInstanceQuery

HistoryActivityInstanceQueryImpl createHistoryActivityInstanceQuery()

createHistoryDetailQuery

HistoryDetailQueryImpl createHistoryDetailQuery()

createJobQuery

JobQueryImpl createJobQuery()

createDeploymentQuery

DeploymentQueryImpl createDeploymentQuery()

findCommentsByTaskId

java.util.List<HistoryComment> findCommentsByTaskId(java.lang.String taskId)

findExecutionById

ClientExecution findExecutionById(java.lang.String executionId)
the execution uniquely identified by the given executionKey. this method doesn't 'see' suspended executions.


findProcessInstanceById

ClientExecution findProcessInstanceById(java.lang.String processInstanceId)
the process instance uniquely identified by the given executionKey.


findProcessInstanceIds

java.util.List<java.lang.String> findProcessInstanceIds(java.lang.String processDefinitionId)

deleteProcessDefinitionHistory

void deleteProcessDefinitionHistory(java.lang.String processDefinitionId)
deletes the history information for all process instances for the given process definition


deleteProcessInstance

void deleteProcessInstance(java.lang.String processInstanceId,
                           boolean deleteHistory)
delete the process instance and optionally deletes the history.


cascadeExecutionSuspend

void cascadeExecutionSuspend(ExecutionImpl execution)

cascadeExecutionResume

void cascadeExecutionResume(ExecutionImpl execution)

createTask

TaskImpl createTask()

findTaskByExecution

TaskImpl findTaskByExecution(Execution execution)

findFirstAcquirableJob

JobImpl findFirstAcquirableJob()
the first job to finish among eligible and non-locked jobs or null if none


findExclusiveJobs

java.util.List<JobImpl> findExclusiveJobs(Execution processInstance)
the list of jobs of the process instance that mustn't be concurrent


findFirstDueJob

JobImpl findFirstDueJob()
the first job to finish among non-owned jobs or null if none


findStartProcessTimers

java.util.List<StartProcessTimer> findStartProcessTimers(java.lang.String processDefinitionId)
returns a list of start process timers for the given process definition



Copyright © 2010 JBoss Community. All Rights Reserved.