org.jbpm.pvm.internal.query
Class JobQueryImpl

java.lang.Object
  extended by org.jbpm.pvm.internal.query.AbstractQuery
      extended by org.jbpm.pvm.internal.query.JobQueryImpl
All Implemented Interfaces:
java.io.Serializable, Command<java.lang.Object>, JobQuery

public class JobQueryImpl
extends AbstractQuery
implements JobQuery

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  java.lang.Boolean exception
           
protected  boolean messagesOnly
           
protected  java.lang.String processInstanceId
           
protected  boolean timersOnly
           
 
Fields inherited from class org.jbpm.pvm.internal.query.AbstractQuery
commandService, count, isWhereAdded, orderByClause, page, uniqueResult
 
Fields inherited from interface org.jbpm.api.JobQuery
PROPERTY_DUEDATE, PROPERTY_STATE
 
Constructor Summary
JobQueryImpl()
           
 
Method Summary
protected  void applyParameters(org.hibernate.Query query)
           
 JobQuery exception(boolean hasException)
           
 java.lang.String hql()
           
 java.util.List<Job> list()
           
 JobQuery messages()
           
 JobQuery orderAsc(java.lang.String property)
           
 JobQuery orderDesc(java.lang.String property)
           
 JobQuery page(int firstResult, int maxResults)
           
 JobQuery processInstanceId(java.lang.String processInstanceId)
           
 JobQuery timers()
           
 Job uniqueResult()
           
 
Methods inherited from class org.jbpm.pvm.internal.query.AbstractQuery
addOrderByClause, appendOrderByClause, appendWhereClause, applyPage, count, execute, execute, setCommandService, untypedList, untypedUniqueResult, writeReplace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbpm.api.JobQuery
count
 

Field Detail

messagesOnly

protected boolean messagesOnly

timersOnly

protected boolean timersOnly

processInstanceId

protected java.lang.String processInstanceId

exception

protected java.lang.Boolean exception
Constructor Detail

JobQueryImpl

public JobQueryImpl()
Method Detail

hql

public java.lang.String hql()
Specified by:
hql in class AbstractQuery

applyParameters

protected void applyParameters(org.hibernate.Query query)
Specified by:
applyParameters in class AbstractQuery

list

public java.util.List<Job> list()
Specified by:
list in interface JobQuery

uniqueResult

public Job uniqueResult()
Specified by:
uniqueResult in interface JobQuery

messages

public JobQuery messages()
Specified by:
messages in interface JobQuery

timers

public JobQuery timers()
Specified by:
timers in interface JobQuery

exception

public JobQuery exception(boolean hasException)
Specified by:
exception in interface JobQuery

orderAsc

public JobQuery orderAsc(java.lang.String property)
Specified by:
orderAsc in interface JobQuery

orderDesc

public JobQuery orderDesc(java.lang.String property)
Specified by:
orderDesc in interface JobQuery

page

public JobQuery page(int firstResult,
                     int maxResults)
Specified by:
page in interface JobQuery

processInstanceId

public JobQuery processInstanceId(java.lang.String processInstanceId)
Specified by:
processInstanceId in interface JobQuery


Copyright © 2010 JBoss Community. All Rights Reserved.