org.jbpm.hibernate
Class HibernatePvmDbSession

java.lang.Object
  extended by org.jbpm.hibernate.HibernateDbSession
      extended by org.jbpm.hibernate.HibernatePvmDbSession
All Implemented Interfaces:
DbSession, PvmDbSession

public class HibernatePvmDbSession
extends HibernateDbSession
implements PvmDbSession

Author:
Tom Baeyens

Field Summary
 
Fields inherited from class org.jbpm.hibernate.HibernateDbSession
session
 
Constructor Summary
HibernatePvmDbSession()
           
HibernatePvmDbSession(org.hibernate.Session session)
           
 
Method Summary
 java.util.List<Timer> findAllTimers()
          all scheduled timers
 Execution findExecution(java.lang.String processDefinitionName, java.lang.String key)
          an execution identified by process definition and business key
 Timer findNextTimer()
          next timer to execute
 ProcessDefinition findProcessDefinition(java.lang.String name)
          latest version of the processDefinition with the given name.
 ProcessDefinition findProcessDefinition(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<ProcessDefinition> findProcessDefinitions(java.lang.String name)
          all versions of the given process.
 java.util.List<Timer> findTimers(Execution execution)
          all timers scheduled on a given execution
 java.util.List<Job<?>> getJobs()
          all jobs
 
Methods inherited from class org.jbpm.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.jbpm.env.session.DbSession
delete, flush, forceVersionUpdate, get, lockPessimistically, save
 

Constructor Detail

HibernatePvmDbSession

public HibernatePvmDbSession()

HibernatePvmDbSession

public HibernatePvmDbSession(org.hibernate.Session session)
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

findProcessDefinitions

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

Specified by:
findProcessDefinitions in interface PvmDbSession

findProcessDefinition

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

Specified by:
findProcessDefinition in interface PvmDbSession

findProcessDefinition

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

Specified by:
findProcessDefinition in interface PvmDbSession

findNextTimer

public Timer findNextTimer()
Description copied from interface: PvmDbSession
next timer to execute

Specified by:
findNextTimer in interface PvmDbSession

findAllTimers

public java.util.List<Timer> findAllTimers()
Description copied from interface: PvmDbSession
all scheduled timers

Specified by:
findAllTimers in interface PvmDbSession

findTimers

public java.util.List<Timer> findTimers(Execution execution)
Description copied from interface: PvmDbSession
all timers scheduled on a given execution

Specified by:
findTimers in interface PvmDbSession

findExecution

public Execution findExecution(java.lang.String processDefinitionName,
                               java.lang.String key)
Description copied from interface: PvmDbSession
an execution identified by process definition and business key

Specified by:
findExecution in interface PvmDbSession

getJobs

public java.util.List<Job<?>> getJobs()
Description copied from interface: PvmDbSession
all jobs

Specified by:
getJobs in interface PvmDbSession