org.jbpm.pvm.internal.query
Class HistoryTaskQueryImpl

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

public class HistoryTaskQueryImpl
extends AbstractQuery
implements HistoryTaskQuery

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  java.lang.String assignee
           
protected  java.lang.String executionId
           
protected  java.lang.String outcome
           
protected  java.util.Date startedAfter
           
protected  java.util.Date startedBefore
           
protected  java.lang.String state
           
protected  java.lang.String taskId
           
protected  java.lang.Long tookLessThen
           
protected  java.lang.Long tookLongerThen
           
 
Fields inherited from class org.jbpm.pvm.internal.query.AbstractQuery
commandService, count, isWhereAdded, orderByClause, page, uniqueResult
 
Fields inherited from interface org.jbpm.api.history.HistoryTaskQuery
PROPERTY_ASSIGNEE, PROPERTY_CREATETIME, PROPERTY_DURATION, PROPERTY_ENDTIME, PROPERTY_EXECUTIONID, PROPERTY_ID, PROPERTY_OUTCOME, PROPERTY_STATE
 
Constructor Summary
HistoryTaskQueryImpl()
           
 
Method Summary
protected  void applyParameters(org.hibernate.Query query)
           
 HistoryTaskQuery assignee(java.lang.String assignee)
           
 HistoryTaskQuery executionId(java.lang.String executionId)
           
 java.lang.String hql()
           
 java.util.List<HistoryTask> list()
           
 HistoryTaskQuery orderAsc(java.lang.String property)
           
 HistoryTaskQuery orderDesc(java.lang.String property)
           
 HistoryTaskQuery outcome(java.lang.String outcome)
           
 HistoryTaskQuery page(int firstResult, int maxResults)
           
 HistoryTaskQuery startedAfter(java.util.Date time)
           
 HistoryTaskQuery startedBefore(java.util.Date time)
           
 HistoryTaskQuery state(java.lang.String state)
           
 HistoryTaskQuery taskId(java.lang.String taskId)
           
 HistoryTaskQuery tookLessThen(long durationInMillis)
           
 HistoryTaskQuery tookLongerThen(long durationInMillis)
           
 HistoryTask 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.history.HistoryTaskQuery
count
 

Field Detail

taskId

protected java.lang.String taskId

executionId

protected java.lang.String executionId

assignee

protected java.lang.String assignee

state

protected java.lang.String state

outcome

protected java.lang.String outcome

tookLessThen

protected java.lang.Long tookLessThen

tookLongerThen

protected java.lang.Long tookLongerThen

startedBefore

protected java.util.Date startedBefore

startedAfter

protected java.util.Date startedAfter
Constructor Detail

HistoryTaskQueryImpl

public HistoryTaskQueryImpl()
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<HistoryTask> list()
Specified by:
list in interface HistoryTaskQuery

uniqueResult

public HistoryTask uniqueResult()
Specified by:
uniqueResult in interface HistoryTaskQuery

taskId

public HistoryTaskQuery taskId(java.lang.String taskId)
Specified by:
taskId in interface HistoryTaskQuery

executionId

public HistoryTaskQuery executionId(java.lang.String executionId)
Specified by:
executionId in interface HistoryTaskQuery

assignee

public HistoryTaskQuery assignee(java.lang.String assignee)
Specified by:
assignee in interface HistoryTaskQuery

state

public HistoryTaskQuery state(java.lang.String state)
Specified by:
state in interface HistoryTaskQuery

outcome

public HistoryTaskQuery outcome(java.lang.String outcome)
Specified by:
outcome in interface HistoryTaskQuery

orderAsc

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

orderDesc

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

page

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

startedAfter

public HistoryTaskQuery startedAfter(java.util.Date time)
Specified by:
startedAfter in interface HistoryTaskQuery

startedBefore

public HistoryTaskQuery startedBefore(java.util.Date time)
Specified by:
startedBefore in interface HistoryTaskQuery

tookLessThen

public HistoryTaskQuery tookLessThen(long durationInMillis)
Specified by:
tookLessThen in interface HistoryTaskQuery

tookLongerThen

public HistoryTaskQuery tookLongerThen(long durationInMillis)
Specified by:
tookLongerThen in interface HistoryTaskQuery


Copyright © 2010 JBoss Community. All Rights Reserved.