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[] activityInstanceIds
           
protected  String[] caseExecutionIds
           
protected  String caseInstanceId
           
protected  String[] executionIds
           
protected  boolean isByteArrayFetchingEnabled
           
protected  boolean isCustomObjectDeserializationEnabled
           
protected  String processInstanceId
           
protected  QueryVariableValue queryVariableValue
           
protected  String[] taskIds
           
protected  String variableId
           
protected  String variableName
           
protected  String variableNameLike
           
 
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandContext, commandExecutor, expressions, orderingProperties, resultType, SORTORDER_ASC, SORTORDER_DESC
 
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, firstResult, maxResults, orderBy, parameter
 
Fields inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck
authDefaultPerm, authGroupIds, authUserId, isAuthorizationCheckEnabled, permissionChecks
 
Constructor Summary
HistoricVariableInstanceQueryImpl()
           
HistoricVariableInstanceQueryImpl(CommandContext commandContext)
           
HistoricVariableInstanceQueryImpl(CommandExecutor commandExecutor)
           
 
Method Summary
 HistoricVariableInstanceQuery activityInstanceIdIn(String... activityInstanceIds)
          Only select historic variable instances which have one of the activity instance ids.
 HistoricVariableInstanceQuery caseExecutionIdIn(String... caseExecutionIds)
          Only select historic variable instances which have one of the case executions ids.
 HistoricVariableInstanceQuery caseInstanceId(String caseInstanceId)
          Only select historic case variables with the given case instance.
 HistoricVariableInstanceQuery disableBinaryFetching()
          Disable fetching of byte array values.
 HistoricVariableInstanceQuery disableCustomObjectDeserialization()
          Disable deserialization of variable values that are custom objects.
protected  void ensureVariablesInitialized()
           
 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[] getActivityInstanceIds()
           
 String[] getCaseExecutionIds()
           
 String getCaseInstanceId()
           
 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.
protected  boolean shouldFetchValue(HistoricVariableInstanceEntity entity)
           
 HistoricVariableInstanceQuery taskIdIn(String... taskIds)
          Only select historic variable instances which have one of the task ids.
 HistoricVariableInstanceQuery variableId(String id)
          Only select the variable with the given Id
 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
addExpression, asc, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteList, execute, executeSingleResult, extend, getExpressions, getMethod, getOrderBy, getOrderingProperties, list, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, setCommandExecutor, setExpressions, setOrderingProperties, singleResult
 
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, setParameter
 
Methods inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck
addPermissionCheck, getAuthDefaultPerm, getAuthGroupIds, getAuthUserId, getPermissionChecks, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthUserId, setPermissionChecks
 
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

variableId

protected String variableId

processInstanceId

protected String processInstanceId

caseInstanceId

protected String caseInstanceId

variableName

protected String variableName

variableNameLike

protected String variableNameLike

queryVariableValue

protected QueryVariableValue queryVariableValue

taskIds

protected String[] taskIds

executionIds

protected String[] executionIds

caseExecutionIds

protected String[] caseExecutionIds

activityInstanceIds

protected String[] activityInstanceIds

isByteArrayFetchingEnabled

protected boolean isByteArrayFetchingEnabled

isCustomObjectDeserializationEnabled

protected boolean isCustomObjectDeserializationEnabled
Constructor Detail

HistoricVariableInstanceQueryImpl

public HistoricVariableInstanceQueryImpl()

HistoricVariableInstanceQueryImpl

public HistoricVariableInstanceQueryImpl(CommandContext commandContext)

HistoricVariableInstanceQueryImpl

public HistoricVariableInstanceQueryImpl(CommandExecutor commandExecutor)
Method Detail

variableId

public HistoricVariableInstanceQuery variableId(String id)
Description copied from interface: HistoricVariableInstanceQuery
Only select the variable with the given Id

Specified by:
variableId in interface HistoricVariableInstanceQuery
Returns:
the query object

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

caseInstanceId

public HistoricVariableInstanceQuery caseInstanceId(String caseInstanceId)
Description copied from interface: HistoricVariableInstanceQuery
Only select historic case variables with the given case instance.

Specified by:
caseInstanceId in interface HistoricVariableInstanceQuery

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

caseExecutionIdIn

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

Specified by:
caseExecutionIdIn in interface HistoricVariableInstanceQuery

activityInstanceIdIn

public HistoricVariableInstanceQuery activityInstanceIdIn(String... activityInstanceIds)
Description copied from interface: HistoricVariableInstanceQuery
Only select historic variable instances which have one of the activity instance ids.

Specified by:
activityInstanceIdIn 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

ensureVariablesInitialized

protected void ensureVariablesInitialized()

disableBinaryFetching

public HistoricVariableInstanceQuery disableBinaryFetching()
Description copied from interface: HistoricVariableInstanceQuery
Disable fetching of byte array values. By default, the query will fetch the value of a byte array. By calling this method you can prevent the values of (potentially large) blob data chunks to be fetched.

Specified by:
disableBinaryFetching in interface HistoricVariableInstanceQuery
Returns:
the query builder

disableCustomObjectDeserialization

public HistoricVariableInstanceQuery disableCustomObjectDeserialization()
Description copied from interface: HistoricVariableInstanceQuery
Disable deserialization of variable values that are custom objects. By default, the query will attempt to deserialize the value of these variables. By calling this method you can prevent such attempts in environments where their classes are not available. Independent of this setting, variable serialized values are accessible.

Specified by:
disableCustomObjectDeserialization in interface HistoricVariableInstanceQuery

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.

shouldFetchValue

protected boolean shouldFetchValue(HistoricVariableInstanceEntity entity)

orderByProcessInstanceId

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

orderByVariableName

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

getProcessInstanceId

public String getProcessInstanceId()

getCaseInstanceId

public String getCaseInstanceId()

getActivityInstanceIds

public String[] getActivityInstanceIds()

getTaskIds

public String[] getTaskIds()

getExecutionIds

public String[] getExecutionIds()

getCaseExecutionIds

public String[] getCaseExecutionIds()

getVariableName

public String getVariableName()

getVariableNameLike

public String getVariableNameLike()

getQueryVariableValue

public QueryVariableValue getQueryVariableValue()


Copyright © 2015 camunda services GmbH. All rights reserved.