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

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

public class HibernateJobDbSession
extends HibernateDbSession
implements JobDbSession

Author:
Tom Baeyens

Field Summary
 
Fields inherited from class org.ow2.bonita.pvm.internal.hibernate.HibernateDbSession
session
 
Constructor Summary
HibernateJobDbSession()
           
 
Method Summary
 java.util.List<JobImpl<?>> findExclusiveJobs(Execution processInstance)
          the list of jobs of the process instance that mustn't be concurrent
 JobImpl<?> findFirstAcquirableJob()
          the first jobImpl to finish among eligible and non-locked jobs or null if none
 JobImpl<?> findFirstDueJob()
          the first jobImpl to finish among non-owned jobs or null if none
 JobImpl<?> getJob(long jobId)
          the jobImpl with the given id or null if none
 
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

HibernateJobDbSession

public HibernateJobDbSession()
Method Detail

findFirstAcquirableJob

public JobImpl<?> findFirstAcquirableJob()
Description copied from interface: JobDbSession
the first jobImpl to finish among eligible and non-locked jobs or null if none

Specified by:
findFirstAcquirableJob in interface JobDbSession

findExclusiveJobs

public java.util.List<JobImpl<?>> findExclusiveJobs(Execution processInstance)
Description copied from interface: JobDbSession
the list of jobs of the process instance that mustn't be concurrent

Specified by:
findExclusiveJobs in interface JobDbSession

findFirstDueJob

public JobImpl<?> findFirstDueJob()
Description copied from interface: JobDbSession
the first jobImpl to finish among non-owned jobs or null if none

Specified by:
findFirstDueJob in interface JobDbSession

getJob

public JobImpl<?> getJob(long jobId)
Description copied from interface: JobDbSession
the jobImpl with the given id or null if none

Specified by:
getJob in interface JobDbSession


Copyright © 2009 OW2 Consortium. All Rights Reserved.