org.ow2.bonita.pvm.internal.hibernate
Class HibernatePvmDbSession

java.lang.Object
  extended by org.ow2.bonita.pvm.internal.hibernate.HibernateDbSession
      extended by org.ow2.bonita.pvm.internal.hibernate.HibernatePvmDbSession
All Implemented Interfaces:
DbSession, PvmDbSession

public class HibernatePvmDbSession
extends HibernateDbSession
implements PvmDbSession

Author:
Tom Baeyens

Field Summary
 
Fields inherited from class org.ow2.bonita.pvm.internal.hibernate.HibernateDbSession
session
 
Constructor Summary
HibernatePvmDbSession()
           
 
Method Summary
 ClientExecution findExecutionById(java.lang.String executionId)
          the execution uniquely identified by the given executionKey.
 Execution findExecutionByKey(java.lang.String processDefinitionName, java.lang.String executionKey)
          the execution uniquely identified by the given processDefinition name and the execution key.
 java.util.List<Job> findJobsWithException(int firstResult, int maxResults)
          the jobs for which all the retries have failed and which will not be picked up any more by the jobImpl executor
 ClientProcessDefinition findLatestProcessDefinitionByName(java.lang.String name)
          latest version of the processDefinition with the given name.
 java.util.List<Message> findMessages(int firstResult, int maxResults)
          timers
 ClientProcessDefinition findProcessDefinitionById(java.lang.String processDefinitionId)
          the process definition uniquely identified by the given processDefinition id.
 ClientProcessDefinition findProcessDefinitionByName(java.lang.String name, int version)
          specific version of a named processDefinition.
 java.util.List<java.lang.String> findProcessDefinitionNames()
          all deployed process names.
 java.util.List<ClientProcessDefinition> findProcessDefinitionsByName(java.lang.String name)
          all versions of the given process.
 java.util.List<Timer> findTimers(int firstResult, int maxResults)
          timers
 
Methods inherited from class org.ow2.bonita.pvm.internal.hibernate.HibernateDbSession
close, delete, flush, forceVersionUpdate, get, getSession, lockPessimistically, save, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.bonita.pvm.session.DbSession
delete, flush, forceVersionUpdate, get, lockPessimistically, save
 

Constructor Detail

HibernatePvmDbSession

public HibernatePvmDbSession()
Method Detail

findProcessDefinitionNames

public java.util.List<java.lang.String> findProcessDefinitionNames()
Description copied from interface: PvmDbSession
all deployed process names.

Specified by:
findProcessDefinitionNames in interface PvmDbSession

findProcessDefinitionsByName

public java.util.List<ClientProcessDefinition> findProcessDefinitionsByName(java.lang.String name)
Description copied from interface: PvmDbSession
all versions of the given process.

Specified by:
findProcessDefinitionsByName in interface PvmDbSession

findProcessDefinitionByName

public ClientProcessDefinition findProcessDefinitionByName(java.lang.String name,
                                                           int version)
Description copied from interface: PvmDbSession
specific version of a named processDefinition.

Specified by:
findProcessDefinitionByName in interface PvmDbSession

findLatestProcessDefinitionByName

public ClientProcessDefinition findLatestProcessDefinitionByName(java.lang.String name)
Description copied from interface: PvmDbSession
latest version of the processDefinition with the given name.

Specified by:
findLatestProcessDefinitionByName in interface PvmDbSession

findProcessDefinitionById

public ClientProcessDefinition findProcessDefinitionById(java.lang.String processDefinitionId)
Description copied from interface: PvmDbSession
the process definition uniquely identified by the given processDefinition id.

Specified by:
findProcessDefinitionById in interface PvmDbSession

findExecutionById

public ClientExecution findExecutionById(java.lang.String executionId)
Description copied from interface: PvmDbSession
the execution uniquely identified by the given executionKey.

Specified by:
findExecutionById in interface PvmDbSession

findExecutionByKey

public Execution findExecutionByKey(java.lang.String processDefinitionName,
                                    java.lang.String executionKey)
Description copied from interface: PvmDbSession
the execution uniquely identified by the given processDefinition name and the execution key.

Specified by:
findExecutionByKey in interface PvmDbSession

findTimers

public java.util.List<Timer> findTimers(int firstResult,
                                        int maxResults)
Description copied from interface: PvmDbSession
timers

Specified by:
findTimers in interface PvmDbSession

findMessages

public java.util.List<Message> findMessages(int firstResult,
                                            int maxResults)
Description copied from interface: PvmDbSession
timers

Specified by:
findMessages in interface PvmDbSession

findJobsWithException

public java.util.List<Job> findJobsWithException(int firstResult,
                                                 int maxResults)
Description copied from interface: PvmDbSession
the jobs for which all the retries have failed and which will not be picked up any more by the jobImpl executor

Specified by:
findJobsWithException in interface PvmDbSession


Copyright © 2009 OW2 Consortium. All Rights Reserved.