|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.pvm.internal.hibernate.DbSessionImpl
public class DbSessionImpl
| Field Summary | |
|---|---|
protected org.hibernate.Session |
session
|
| Constructor Summary | |
|---|---|
DbSessionImpl()
|
|
| Method Summary | ||
|---|---|---|
void |
cascadeExecutionResume(ExecutionImpl execution)
|
|
void |
cascadeExecutionSuspend(ExecutionImpl execution)
|
|
void |
close()
|
|
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)
|
|
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 |
|
HistoryProcessInstanceImpl |
findHistoryProcessInstanceById(java.lang.String processInstanceId)
|
|
ClientExecution |
findProcessInstanceById(java.lang.String processInstanceId)
the process instance uniquely identified by the given executionKey. |
|
ClientExecution |
findProcessInstanceByIdIgnoreSuspended(java.lang.String processInstanceId)
|
|
java.util.List<java.lang.String> |
findProcessInstanceIds(java.lang.String processDefinitionId)
|
|
java.util.List<StartProcessTimer> |
findStartProcessTimers(java.lang.String processDefinitionName)
returns a list of start process timers for the given process definition |
|
TaskImpl |
findTaskByDbid(long taskDbid)
|
|
TaskImpl |
findTaskByExecution(Execution execution)
|
|
void |
flush()
|
|
void |
forceVersionUpdate(java.lang.Object entity)
|
|
|
get(java.lang.Class<T> entityClass,
java.lang.Object primaryKey)
|
|
org.hibernate.Session |
getSession()
|
|
boolean |
isHistoryEnabled()
|
|
void |
lockPessimistically(java.lang.Object entity)
|
|
void |
merge(java.lang.Object entity)
|
|
protected TaskImpl |
newTask()
|
|
void |
save(java.lang.Object entity)
|
|
void |
setSession(org.hibernate.Session session)
|
|
void |
update(java.lang.Object entity)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.hibernate.Session session
| Constructor Detail |
|---|
public DbSessionImpl()
| Method Detail |
|---|
public void close()
public <T> T get(java.lang.Class<T> entityClass,
java.lang.Object primaryKey)
get in interface DbSessionpublic void flush()
flush in interface DbSessionpublic void forceVersionUpdate(java.lang.Object entity)
public void lockPessimistically(java.lang.Object entity)
public void save(java.lang.Object entity)
save in interface DbSessionpublic void update(java.lang.Object entity)
update in interface DbSessionpublic void merge(java.lang.Object entity)
public void delete(java.lang.Object entity)
delete in interface DbSessionpublic org.hibernate.Session getSession()
public void setSession(org.hibernate.Session session)
public void deleteProcessDefinitionHistory(java.lang.String processDefinitionId)
DbSession
deleteProcessDefinitionHistory in interface DbSessionpublic boolean isHistoryEnabled()
public ClientExecution findExecutionById(java.lang.String executionId)
DbSession
findExecutionById in interface DbSessionpublic ClientExecution findProcessInstanceById(java.lang.String processInstanceId)
DbSession
findProcessInstanceById in interface DbSessionpublic ClientExecution findProcessInstanceByIdIgnoreSuspended(java.lang.String processInstanceId)
public java.util.List<java.lang.String> findProcessInstanceIds(java.lang.String processDefinitionId)
findProcessInstanceIds in interface DbSessionpublic void deleteProcessInstance(java.lang.String processInstanceId)
public void deleteProcessInstance(java.lang.String processInstanceId,
boolean deleteHistory)
DbSession
deleteProcessInstance in interface DbSessionpublic HistoryProcessInstanceImpl findHistoryProcessInstanceById(java.lang.String processInstanceId)
public void cascadeExecutionSuspend(ExecutionImpl execution)
cascadeExecutionSuspend in interface DbSessionpublic void cascadeExecutionResume(ExecutionImpl execution)
cascadeExecutionResume in interface DbSessionpublic TaskImpl createTask()
createTask in interface DbSessionprotected TaskImpl newTask()
public TaskImpl findTaskByDbid(long taskDbid)
public TaskImpl findTaskByExecution(Execution execution)
findTaskByExecution in interface DbSessionpublic JobImpl findFirstAcquirableJob()
DbSession
findFirstAcquirableJob in interface DbSessionpublic java.util.List<JobImpl> findExclusiveJobs(Execution processInstance)
DbSession
findExclusiveJobs in interface DbSessionpublic JobImpl findFirstDueJob()
DbSession
findFirstDueJob in interface DbSessionpublic java.util.List<StartProcessTimer> findStartProcessTimers(java.lang.String processDefinitionName)
DbSession
findStartProcessTimers in interface DbSessionpublic ProcessInstanceQueryImpl createProcessInstanceQuery()
DbSession
createProcessInstanceQuery in interface DbSessionpublic TaskQueryImpl createTaskQuery()
DbSession
createTaskQuery in interface DbSessionpublic HistoryProcessInstanceQueryImpl createHistoryProcessInstanceQuery()
createHistoryProcessInstanceQuery in interface DbSessionpublic HistoryActivityInstanceQueryImpl createHistoryActivityInstanceQuery()
createHistoryActivityInstanceQuery in interface DbSessionpublic HistoryDetailQueryImpl createHistoryDetailQuery()
createHistoryDetailQuery in interface DbSessionpublic JobQueryImpl createJobQuery()
createJobQuery in interface DbSessionpublic DeploymentQueryImpl createDeploymentQuery()
createDeploymentQuery in interface DbSessionpublic java.util.List<HistoryComment> findCommentsByTaskId(java.lang.String taskId)
findCommentsByTaskId in interface DbSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||