org.ow2.bonita.pvm.internal.jobexecutor
Interface JobDbSession

All Superinterfaces:
DbSession
All Known Implementing Classes:
HibernateJobDbSession

public interface JobDbSession
extends DbSession

internal interface used by the jobImpl executor and the implementations of MessageSession and TimerSession. So this session is only needed in case the JobExecutor is used to execute messages or timers.

Author:
Tom Baeyens, Pascal Verdage

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 interface org.ow2.bonita.pvm.session.DbSession
delete, flush, forceVersionUpdate, get, lockPessimistically, save
 

Method Detail

getJob

JobImpl<?> getJob(long jobId)
the jobImpl with the given id or null if none


findFirstAcquirableJob

JobImpl<?> findFirstAcquirableJob()
the first jobImpl 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 jobImpl to finish among non-owned jobs or null if none



Copyright © 2009 OW2 Consortium. All Rights Reserved.