org.camunda.bpm.engine.impl
Class HistoricVariableInstanceQueryImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.db.AuthorizationCheck
      extended by org.camunda.bpm.engine.impl.db.ListQueryParameterObject
          extended by org.camunda.bpm.engine.impl.AbstractQuery<HistoricVariableInstanceQuery,HistoricVariableInstance>
              extended by org.camunda.bpm.engine.impl.HistoricVariableInstanceQueryImpl
All Implemented Interfaces:
Serializable, HistoricVariableInstanceQuery, Command<Object>, Query<HistoricVariableInstanceQuery,HistoricVariableInstance>

public class HistoricVariableInstanceQueryImpl
extends AbstractQuery<HistoricVariableInstanceQuery,HistoricVariableInstance>
implements HistoricVariableInstanceQuery

Author:
Christian Lipphardt (camunda)
See Also:
Serialized Form

Field Summary
protected  String activityInstanceId
           
protected  boolean excludeTaskRelated
           
protected  String[] executionIds
           
protected  String processInstanceId
           
protected  QueryVariableValue queryVariableValue
           
protected  String[] taskIds
           
protected  String variableName
           
protected  String variableNameLike
           
 
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandContext, commandExecutor, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
 
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
databaseType, firstResult, maxResults, parameter
 
Fields inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck
authDefaultPerm, authGroupIds, authPerms, authResourceId, authResourceIdQueryParam, authResourceType, authUserId, isAuthorizationCheckEnabled
 
Constructor Summary
HistoricVariableInstanceQueryImpl()
           
HistoricVariableInstanceQueryImpl(CommandContext commandContext)
           
HistoricVariableInstanceQueryImpl(CommandExecutor commandExecutor)
           
 
Method Summary
 HistoricVariableInstanceQuery activityInstanceId(String activityInstanceId)
           
protected  void ensureVariablesInitialized()
           
 HistoricVariableInstanceQuery excludeTaskDetails()
           
 long executeCount(CommandContext commandContext)
           
 List<HistoricVariableInstance> executeList(CommandContext commandContext, Page page)
          Executes the actual query to retrieve the list of results.
 HistoricVariableInstanceQuery executionIdIn(String... executionIds)
          Only select historic variable instances which have one of the executions ids.
 String getActivityInstanceId()
           
 boolean getExcludeTaskRelated()
           
 String[] getExecutionIds()
           
 String getProcessInstanceId()
           
 QueryVariableValue getQueryVariableValue()
           
 String[] getTaskIds()
           
 String getVariableName()
           
 String getVariableNameLike()
           
 HistoricVariableInstanceQuery orderByProcessInstanceId()
           
 HistoricVariableInstanceQuery orderByVariableName()
           
 HistoricVariableInstanceQueryImpl processInstanceId(String processInstanceId)
          Only select historic process variables with the given process instance.
 HistoricVariableInstanceQuery taskIdIn(String... taskIds)
          Only select historic variable instances which have one of the task ids.
 HistoricVariableInstanceQuery variableName(String variableName)
          Only select historic process variables with the given variable name.
 HistoricVariableInstanceQuery variableNameLike(String variableNameLike)
          Only select historic process variables where the given variable name is like.
 HistoricVariableInstanceQuery variableValueEquals(String variableName, Object variableValue)
          only select historic process variables with the given name and value
 
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addOrder, asc, assertParamNotNull, assertParamNotNull, checkQueryOk, count, desc, direction, execute, executeSingleResult, getOrderBy, list, listPage, orderBy, setCommandExecutor, singleResult
 
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setParameter
 
Methods inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck
getAuthDefaultPerm, getAuthGroupIds, getAuthPerms, getAuthResourceId, getAuthResourceIdQueryParam, getAuthResourceType, getAuthUserId, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthPerms, setAuthResourceId, setAuthResourceIdQueryParam, setAuthResourceType, setAuthUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult
 

Field Detail

processInstanceId

protected String processInstanceId

activityInstanceId

protected String activityInstanceId

variableName

protected String variableName

variableNameLike

protected String variableNameLike

excludeTaskRelated

protected boolean excludeTaskRelated

queryVariableValue

protected QueryVariableValue queryVariableValue

taskIds

protected String[] taskIds

executionIds

protected String[] executionIds
Constructor Detail

HistoricVariableInstanceQueryImpl

public HistoricVariableInstanceQueryImpl()

HistoricVariableInstanceQueryImpl

public HistoricVariableInstanceQueryImpl(CommandContext commandContext)

HistoricVariableInstanceQueryImpl

public HistoricVariableInstanceQueryImpl(CommandExecutor commandExecutor)
Method Detail

processInstanceId

public HistoricVariableInstanceQueryImpl processInstanceId(String processInstanceId)
Description copied from interface: HistoricVariableInstanceQuery
Only select historic process variables with the given process instance.

Specified by:
processInstanceId in interface HistoricVariableInstanceQuery

activityInstanceId

public HistoricVariableInstanceQuery activityInstanceId(String activityInstanceId)

taskIdIn

public HistoricVariableInstanceQuery taskIdIn(String... taskIds)
Description copied from interface: HistoricVariableInstanceQuery
Only select historic variable instances which have one of the task ids.

Specified by:
taskIdIn in interface HistoricVariableInstanceQuery

executionIdIn

public HistoricVariableInstanceQuery executionIdIn(String... executionIds)
Description copied from interface: HistoricVariableInstanceQuery
Only select historic variable instances which have one of the executions ids.

Specified by:
executionIdIn in interface HistoricVariableInstanceQuery

variableName

public HistoricVariableInstanceQuery variableName(String variableName)
Description copied from interface: HistoricVariableInstanceQuery
Only select historic process variables with the given variable name.

Specified by:
variableName in interface HistoricVariableInstanceQuery

variableValueEquals

public HistoricVariableInstanceQuery variableValueEquals(String variableName,
                                                         Object variableValue)
Description copied from interface: HistoricVariableInstanceQuery
only select historic process variables with the given name and value

Specified by:
variableValueEquals in interface HistoricVariableInstanceQuery

variableNameLike

public HistoricVariableInstanceQuery variableNameLike(String variableNameLike)
Description copied from interface: HistoricVariableInstanceQuery
Only select historic process variables where the given variable name is like.

Specified by:
variableNameLike in interface HistoricVariableInstanceQuery

excludeTaskDetails

public HistoricVariableInstanceQuery excludeTaskDetails()

ensureVariablesInitialized

protected void ensureVariablesInitialized()

executeCount

public long executeCount(CommandContext commandContext)
Specified by:
executeCount in class AbstractQuery<HistoricVariableInstanceQuery,HistoricVariableInstance>

executeList

public List<HistoricVariableInstance> executeList(CommandContext commandContext,
                                                  Page page)
Description copied from class: AbstractQuery
Executes the actual query to retrieve the list of results.

Specified by:
executeList in class AbstractQuery<HistoricVariableInstanceQuery,HistoricVariableInstance>
page - used if the results must be paged. If null, no paging will be applied.

orderByProcessInstanceId

public HistoricVariableInstanceQuery orderByProcessInstanceId()
Specified by:
orderByProcessInstanceId in interface HistoricVariableInstanceQuery

orderByVariableName

public HistoricVariableInstanceQuery orderByVariableName()
Specified by:
orderByVariableName in interface HistoricVariableInstanceQuery

getProcessInstanceId

public String getProcessInstanceId()

getActivityInstanceId

public String getActivityInstanceId()

getTaskIds

public String[] getTaskIds()

getExecutionIds

public String[] getExecutionIds()

getExcludeTaskRelated

public boolean getExcludeTaskRelated()

getVariableName

public String getVariableName()

getVariableNameLike

public String getVariableNameLike()

getQueryVariableValue

public QueryVariableValue getQueryVariableValue()


Copyright © 2014 camunda services GmbH. All Rights Reserved.