Package org.camunda.bpm.engine.impl
Class VariableInstanceQueryImpl
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<T,U>
org.camunda.bpm.engine.impl.AbstractVariableQueryImpl<VariableInstanceQuery,VariableInstance>
org.camunda.bpm.engine.impl.VariableInstanceQueryImpl
- All Implemented Interfaces:
Serializable,Command<Object>,Query<VariableInstanceQuery,,VariableInstance> VariableInstanceQuery
public class VariableInstanceQueryImpl
extends AbstractVariableQueryImpl<VariableInstanceQuery,VariableInstance>
implements VariableInstanceQuery, Serializable
- Author:
- roman.smirnov
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]protected String[]protected String[]protected String[]protected String[]protected booleanprotected booleanprotected String[]protected String[]protected String[]protected Stringprotected Stringprotected Stringprotected String[]protected String[]Fields inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl
queryVariableValues, variableNamesIgnoreCase, variableValuesIgnoreCaseFields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validatorsFields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivityInstanceIdIn(String... activityInstanceIds) Only select variable instances which have one of the activity instance ids.Only select variable instances which are related to one of the given batch ids.caseExecutionIdIn(String... caseExecutionIds) Only select variable instances which have one of the case execution ids.caseInstanceIdIn(String... caseInstanceIds) Only select variable instances which have one of the case instance ids.Disable fetching of byte array and file values.Disable deserialization of variable values that are custom objects.longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.executionIdIn(String... executionIds) Only select variable instances which have one of the executions ids.String[]String[]String[]String[]String[]String[]String[]String[]String[]protected booleanWhether or not the query has excluding conditions.Order by activity instance id (needs to be followed byQuery.asc()orQuery.desc()).Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).Order by variable name (needs to be followed byQuery.asc()orQuery.desc()).Order by variable type (needs to be followed byQuery.asc()orQuery.desc()).processInstanceIdIn(String... processInstanceIds) Only select variable instances which have one of the process instance ids.protected booleanOnly select variable instances which have one of the task ids.tenantIdIn(String... tenantIds) Only select variable instances with one of the given tenant ids.variableId(String id) Only select the variable with the given IdvariableName(String variableName) Only select variable instances which have the variable name.variableNameIn(String... variableNames) Only select variable instances which have one of the variables names.variableNameLike(String variableNameLike) Only select variable instances which have the name like the assigned variable name.variableScopeIdIn(String... variableScopeIds) Only select variables instances which have on of the variable scope ids.Methods inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl
addVariable, createQueryVariableValue, ensureVariablesInitialized, getQueryVariableValues, isVariableNamesIgnoreCase, isVariableValuesIgnoreCase, matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, validateVariable, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals, variableValueNotLikeMethods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkMaxResultsLimit, checkQueryOk, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteDeploymentIdMappingsList, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeDeploymentIdMappingsList, executeIdsList, executeResult, executeSingleResult, extend, getExpressions, getMethod, list, listDeploymentIdMappings, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unlimitedList, validate, validateMethods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheckMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedListMethods inherited from interface org.camunda.bpm.engine.runtime.VariableInstanceQuery
matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals
-
Field Details
-
variableId
-
variableName
-
variableNames
-
variableNameLike
-
executionIds
-
processInstanceIds
-
caseExecutionIds
-
caseInstanceIds
-
taskIds
-
batchIds
-
variableScopeIds
-
activityInstanceIds
-
tenantIds
-
isByteArrayFetchingEnabled
protected boolean isByteArrayFetchingEnabled -
isCustomObjectDeserializationEnabled
protected boolean isCustomObjectDeserializationEnabled
-
-
Constructor Details
-
VariableInstanceQueryImpl
public VariableInstanceQueryImpl() -
VariableInstanceQueryImpl
-
-
Method Details
-
variableId
Description copied from interface:VariableInstanceQueryOnly select the variable with the given Id- Specified by:
variableIdin interfaceVariableInstanceQuery- Parameters:
id- the id of the variable to select- Returns:
- the query object
-
variableName
Description copied from interface:VariableInstanceQueryOnly select variable instances which have the variable name.- Specified by:
variableNamein interfaceVariableInstanceQuery
-
variableNameIn
Description copied from interface:VariableInstanceQueryOnly select variable instances which have one of the variables names.- Specified by:
variableNameInin interfaceVariableInstanceQuery
-
variableNameLike
Description copied from interface:VariableInstanceQueryOnly select variable instances which have the name like the assigned variable name. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).- Specified by:
variableNameLikein interfaceVariableInstanceQuery
-
executionIdIn
Description copied from interface:VariableInstanceQueryOnly select variable instances which have one of the executions ids.- Specified by:
executionIdInin interfaceVariableInstanceQuery
-
processInstanceIdIn
Description copied from interface:VariableInstanceQueryOnly select variable instances which have one of the process instance ids.- Specified by:
processInstanceIdInin interfaceVariableInstanceQuery
-
caseExecutionIdIn
Description copied from interface:VariableInstanceQueryOnly select variable instances which have one of the case execution ids.- Specified by:
caseExecutionIdInin interfaceVariableInstanceQuery
-
caseInstanceIdIn
Description copied from interface:VariableInstanceQueryOnly select variable instances which have one of the case instance ids.- Specified by:
caseInstanceIdInin interfaceVariableInstanceQuery
-
taskIdIn
Description copied from interface:VariableInstanceQueryOnly select variable instances which have one of the task ids.- Specified by:
taskIdInin interfaceVariableInstanceQuery
-
batchIdIn
Description copied from interface:VariableInstanceQueryOnly select variable instances which are related to one of the given batch ids.- Specified by:
batchIdInin interfaceVariableInstanceQuery
-
variableScopeIdIn
Description copied from interface:VariableInstanceQueryOnly select variables instances which have on of the variable scope ids.- Specified by:
variableScopeIdInin interfaceVariableInstanceQuery
-
activityInstanceIdIn
Description copied from interface:VariableInstanceQueryOnly select variable instances which have one of the activity instance ids.- Specified by:
activityInstanceIdInin interfaceVariableInstanceQuery
-
disableBinaryFetching
Description copied from interface:VariableInstanceQueryDisable fetching of byte array and file values. By default, the query will fetch such values. By calling this method you can prevent the values of (potentially large) blob data chunks to be fetched. The variables themselves are nonetheless included in the query result.- Specified by:
disableBinaryFetchingin interfaceVariableInstanceQuery- Returns:
- the query builder
-
disableCustomObjectDeserialization
Description copied from interface:VariableInstanceQueryDisable 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:
disableCustomObjectDeserializationin interfaceVariableInstanceQuery
-
tenantIdIn
Description copied from interface:VariableInstanceQueryOnly select variable instances with one of the given tenant ids.- Specified by:
tenantIdInin interfaceVariableInstanceQuery
-
orderByVariableName
Description copied from interface:VariableInstanceQueryOrder by variable name (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByVariableNamein interfaceVariableInstanceQuery
-
orderByVariableType
Description copied from interface:VariableInstanceQueryOrder by variable type (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByVariableTypein interfaceVariableInstanceQuery
-
orderByActivityInstanceId
Description copied from interface:VariableInstanceQueryOrder by activity instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityInstanceIdin interfaceVariableInstanceQuery
-
orderByTenantId
Description copied from interface:VariableInstanceQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()). Note that the ordering of variable instances without tenant id is database-specific.- Specified by:
orderByTenantIdin interfaceVariableInstanceQuery
-
hasExcludingConditions
protected boolean hasExcludingConditions()Description copied from class:AbstractQueryWhether or not the query has excluding conditions. If the query has excluding conditions, (e.g. task due date before and after are excluding), the SQL query is avoided and a default result is returned. The returned result is the same as if the SQL was executed and there were no entries.- Overrides:
hasExcludingConditionsin classAbstractQuery<VariableInstanceQuery,VariableInstance> - Returns:
trueif the query does have excluding conditions,falseotherwise
-
executeCount
- Specified by:
executeCountin classAbstractVariableQueryImpl<VariableInstanceQuery,VariableInstance>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractVariableQueryImpl<VariableInstanceQuery,VariableInstance> page- used if the results must be paged. If null, no paging will be applied.
-
shouldFetchValue
-
getVariableId
-
getVariableName
-
getVariableNames
-
getVariableNameLike
-
getExecutionIds
-
getProcessInstanceIds
-
getCaseExecutionIds
-
getCaseInstanceIds
-
getTaskIds
-
getBatchIds
-
getVariableScopeIds
-
getActivityInstanceIds
-