org.jbpm.pvm.internal.query
Class ProcessInstanceQueryImpl

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

public class ProcessInstanceQueryImpl
extends AbstractQuery
implements ProcessInstanceQuery

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  java.lang.String processDefinitionId
           
protected  java.lang.String processInstanceId
           
protected  java.lang.String processInstanceKey
           
protected  java.lang.Boolean suspended
           
 
Fields inherited from class org.jbpm.pvm.internal.query.AbstractQuery
commandService, count, isWhereAdded, orderByClause, page, uniqueResult
 
Fields inherited from interface org.jbpm.api.ProcessInstanceQuery
PROPERTY_KEY
 
Constructor Summary
ProcessInstanceQueryImpl()
           
 
Method Summary
protected  void applyParameters(org.hibernate.Query query)
           
 java.lang.String hql()
           
 java.util.List<ProcessInstance> list()
           
 ProcessInstanceQuery notSuspended()
           
 ProcessInstanceQuery orderAsc(java.lang.String property)
           
 ProcessInstanceQuery orderDesc(java.lang.String property)
           
 ProcessInstanceQuery page(int firstResult, int maxResults)
           
 ProcessInstanceQuery processDefinitionId(java.lang.String processDefinitionId)
           
 ProcessInstanceQuery processInstanceId(java.lang.String processInstanceId)
           
 ProcessInstanceQuery processInstanceKey(java.lang.String processInstanceKey)
           
 ProcessInstanceQuery suspended()
           
 ProcessInstance 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.ProcessInstanceQuery
count
 

Field Detail

processDefinitionId

protected java.lang.String processDefinitionId

processInstanceId

protected java.lang.String processInstanceId

processInstanceKey

protected java.lang.String processInstanceKey

suspended

protected java.lang.Boolean suspended
Constructor Detail

ProcessInstanceQueryImpl

public ProcessInstanceQueryImpl()
Method Detail

uniqueResult

public ProcessInstance uniqueResult()
Specified by:
uniqueResult in interface ProcessInstanceQuery

list

public java.util.List<ProcessInstance> list()
Specified by:
list in interface ProcessInstanceQuery

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

orderAsc

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

orderDesc

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

page

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

processInstanceId

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

processDefinitionId

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

suspended

public ProcessInstanceQuery suspended()
Specified by:
suspended in interface ProcessInstanceQuery

processInstanceKey

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

notSuspended

public ProcessInstanceQuery notSuspended()
Specified by:
notSuspended in interface ProcessInstanceQuery


Copyright © 2010 JBoss Community. All Rights Reserved.