org.jbpm.pvm.internal.query
Class HistoryProcessInstanceQueryImpl

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

public class HistoryProcessInstanceQueryImpl
extends AbstractQuery
implements HistoryProcessInstanceQuery

Author:
Tom Baeyens, Alejandro Guizar
See Also:
Serialized Form

Field Summary
protected  boolean ended
           
protected  java.util.Date endedAfter
           
protected  java.util.Date endedBefore
           
protected  java.lang.String processDefinitionId
           
protected  java.lang.String processInstanceId
           
protected  java.lang.String processInstanceKey
           
protected  java.lang.String state
           
 
Fields inherited from class org.jbpm.pvm.internal.query.AbstractQuery
commandService, count, isWhereAdded, orderByClause, page, uniqueResult
 
Fields inherited from interface org.jbpm.api.history.HistoryProcessInstanceQuery
PROPERTY_DURATION, PROPERTY_ENDTIME, PROPERTY_ID, PROPERTY_KEY, PROPERTY_STARTTIME, PROPERTY_STATE
 
Constructor Summary
HistoryProcessInstanceQueryImpl()
           
 
Method Summary
protected  void applyParameters(org.hibernate.Query query)
           
 HistoryProcessInstanceQuery ended()
           
 HistoryProcessInstanceQuery endedAfter(java.util.Date threshold)
           
 HistoryProcessInstanceQuery endedBefore(java.util.Date threshold)
           
 java.lang.String hql()
           
 java.util.List<HistoryProcessInstance> list()
           
 HistoryProcessInstanceQuery orderAsc(java.lang.String property)
           
 HistoryProcessInstanceQuery orderDesc(java.lang.String property)
           
 HistoryProcessInstanceQuery page(int firstResult, int maxResults)
           
 HistoryProcessInstanceQuery processDefinitionId(java.lang.String processDefinitionId)
           
 HistoryProcessInstanceQuery processInstanceId(java.lang.String processInstanceId)
           
 HistoryProcessInstanceQuery processInstanceKey(java.lang.String processInstanceKey)
           
 HistoryProcessInstanceQuery state(java.lang.String state)
           
 HistoryProcessInstance 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.HistoryProcessInstanceQuery
count
 

Field Detail

processDefinitionId

protected java.lang.String processDefinitionId

state

protected java.lang.String state

processInstanceId

protected java.lang.String processInstanceId

processInstanceKey

protected java.lang.String processInstanceKey

ended

protected boolean ended

endedBefore

protected java.util.Date endedBefore

endedAfter

protected java.util.Date endedAfter
Constructor Detail

HistoryProcessInstanceQueryImpl

public HistoryProcessInstanceQueryImpl()
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<HistoryProcessInstance> list()
Specified by:
list in interface HistoryProcessInstanceQuery

uniqueResult

public HistoryProcessInstance uniqueResult()
Specified by:
uniqueResult in interface HistoryProcessInstanceQuery

processInstanceId

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

orderAsc

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

orderDesc

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

page

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

processDefinitionId

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

processInstanceKey

public HistoryProcessInstanceQuery processInstanceKey(java.lang.String processInstanceKey)
Specified by:
processInstanceKey in interface HistoryProcessInstanceQuery

state

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

ended

public HistoryProcessInstanceQuery ended()
Specified by:
ended in interface HistoryProcessInstanceQuery

endedBefore

public HistoryProcessInstanceQuery endedBefore(java.util.Date threshold)
Specified by:
endedBefore in interface HistoryProcessInstanceQuery

endedAfter

public HistoryProcessInstanceQuery endedAfter(java.util.Date threshold)
Specified by:
endedAfter in interface HistoryProcessInstanceQuery


Copyright © 2010 JBoss Community. All Rights Reserved.