org.ow2.orchestra.pvm.internal.hibernate
Class HibernateJobDbSession
java.lang.Object
org.ow2.orchestra.pvm.internal.hibernate.HibernateDbSession
org.ow2.orchestra.pvm.internal.hibernate.HibernateJobDbSession
- All Implemented Interfaces:
- JobDbSession, DbSession
public class HibernateJobDbSession
- extends HibernateDbSession
- implements JobDbSession
- Author:
- Tom Baeyens
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateJobDbSession
public HibernateJobDbSession()
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.