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

java.lang.Object
  extended by org.ow2.orchestra.pvm.internal.hibernate.HibernateDbSession
      extended by org.ow2.orchestra.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.orchestra.pvm.internal.hibernate.HibernateDbSession
session
 
Constructor Summary
HibernateJobDbSession()
           
 
Method Summary
 void delete(JobImpl<?> job)
           
 void delete(Object entity)
           
 List<JobImpl<?>> findExclusiveJobs(Execution processInstance)
          the list of jobs of the process instance that mustn't be concurrent
 Collection<JobImpl<?>> findFirstAcquirableJob(int limit, boolean limitSameInstanceJobs)
          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
 void save(JobImpl<?> job)
           
 void save(Object entity)
           
 
Methods inherited from class org.ow2.orchestra.pvm.internal.hibernate.HibernateDbSession
close, flush, forceVersionUpdate, get, getSession, lockPessimistically, 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.orchestra.pvm.session.DbSession
flush, forceVersionUpdate, get, lockPessimistically
 

Constructor Detail

HibernateJobDbSession

public HibernateJobDbSession()
Method Detail

findFirstAcquirableJob

public Collection<JobImpl<?>> findFirstAcquirableJob(int limit,
                                                     boolean limitSameInstanceJobs)
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 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

save

public void save(Object entity)
Specified by:
save in interface DbSession
Overrides:
save in class HibernateDbSession

save

public void save(JobImpl<?> job)

delete

public void delete(Object entity)
Specified by:
delete in interface DbSession
Overrides:
delete in class HibernateDbSession

delete

public void delete(JobImpl<?> job)


Copyright © 2011 OW2 Consortium. All Rights Reserved.