org.jbpm.pvm.internal.query
Class HistoryActivityInstanceQueryImpl

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

public class HistoryActivityInstanceQueryImpl
extends AbstractQuery
implements HistoryActivityInstanceQuery

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  java.lang.String activityName
           
protected  java.lang.String executionId
           
protected  java.lang.String processDefinitionId
           
protected  java.lang.String processInstanceId
           
protected  java.util.Date startedAfter
           
protected  java.util.Date startedBefore
           
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.HistoryActivityInstanceQuery
PROPERTY_ACTIVITYNAME, PROPERTY_DURATION, PROPERTY_ENDTIME, PROPERTY_EXECUTIONID, PROPERTY_STARTTIME
 
Constructor Summary
HistoryActivityInstanceQueryImpl()
           
 
Method Summary
 HistoryActivityInstanceQuery activityName(java.lang.String activityName)
           
protected  void applyParameters(org.hibernate.Query query)
           
 HistoryActivityInstanceQuery executionId(java.lang.String executionId)
           
 java.lang.String hql()
           
 java.util.List<HistoryActivityInstance> list()
           
 HistoryActivityInstanceQuery orderAsc(java.lang.String property)
           
 HistoryActivityInstanceQuery orderDesc(java.lang.String property)
           
 HistoryActivityInstanceQuery page(int firstResult, int maxResults)
           
 HistoryActivityInstanceQuery processDefinitionId(java.lang.String processDefinitionId)
           
 HistoryActivityInstanceQuery processInstanceId(java.lang.String processInstanceId)
           
 HistoryActivityInstanceQuery startedAfter(java.util.Date time)
           
 HistoryActivityInstanceQuery startedBefore(java.util.Date time)
           
 HistoryActivityInstanceQuery tookLessThen(long durationInMillis)
           
 HistoryActivityInstanceQuery tookLongerThen(long durationInMillis)
           
 HistoryActivityInstance 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.HistoryActivityInstanceQuery
count
 

Field Detail

processDefinitionId

protected java.lang.String processDefinitionId

tookLessThen

protected java.lang.Long tookLessThen

tookLongerThen

protected java.lang.Long tookLongerThen

startedBefore

protected java.util.Date startedBefore

startedAfter

protected java.util.Date startedAfter

executionId

protected java.lang.String executionId

processInstanceId

protected java.lang.String processInstanceId

activityName

protected java.lang.String activityName
Constructor Detail

HistoryActivityInstanceQueryImpl

public HistoryActivityInstanceQueryImpl()
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<HistoryActivityInstance> list()
Specified by:
list in interface HistoryActivityInstanceQuery

uniqueResult

public HistoryActivityInstance uniqueResult()
Specified by:
uniqueResult in interface HistoryActivityInstanceQuery

activityName

public HistoryActivityInstanceQuery activityName(java.lang.String activityName)
Specified by:
activityName in interface HistoryActivityInstanceQuery

executionId

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

processInstanceId

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

orderAsc

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

orderDesc

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

page

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

processDefinitionId

public HistoryActivityInstanceQuery processDefinitionId(java.lang.String processDefinitionId)
Specified by:
processDefinitionId in interface HistoryActivityInstanceQuery

startedAfter

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

startedBefore

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

tookLessThen

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

tookLongerThen

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


Copyright © 2010 JBoss Community. All Rights Reserved.