Class VariableInstanceQueryImpl
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<VariableInstanceQuery,VariableInstance>
org.flowable.variable.service.impl.VariableInstanceQueryImpl
- All Implemented Interfaces:
Serializable
,Query<VariableInstanceQuery,
,VariableInstance> Command<Object>
,VariableInstanceQuery
public class VariableInstanceQueryImpl
extends AbstractQuery<VariableInstanceQuery,VariableInstance>
implements VariableInstanceQuery
- Author:
- Joram Barrez, Tijs Rademakers
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultType
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected boolean
protected boolean
protected boolean
protected String
protected String
protected String
protected QueryVariableValue
protected String
protected String
protected String
protected String
protected String
protected String
protected VariableServiceConfiguration
Fields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutor
Fields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC
-
Constructor Summary
ConstructorsConstructorDescriptionVariableInstanceQueryImpl
(CommandContext commandContext, VariableServiceConfiguration variableServiceConfiguration) VariableInstanceQueryImpl
(CommandExecutor commandExecutor, VariableServiceConfiguration variableServiceConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionactivityInstanceId
(String activityInstanceId) protected void
Only select historic process variables which were not set local.Only select historic process variables which were not set task-local.Don't initialize variable values.long
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext) Executes the actual query to retrieve the list of results.executionId
(String executionId) Only select historic process variables with the given id.executionIds
(Set<String> executionIds) Only select historic process variables whose id is in the given set of ids.boolean
getId()
Only select a historic variable with the given id.boolean
boolean
boolean
processInstanceId
(String processInstanceId) Only select historic process variables with the given process instance.Only select historic variables with the given scope id.Only select historic variables with the give scope type.subScopeId
(String subScopeId) Only select historic variables with the given sub scope id.Only select historic process variables with the given task.Only select historic process variables whose id is in the given set of ids.variableName
(String variableName) Only select historic process variables with the given variable name.variableNameLike
(String variableNameLike) Only select historic process variables where the given variable name is like.variableValueEquals
(String variableName, Object variableValue) only select historic process variables with the given name and valuevariableValueLike
(String variableName, String variableValue) only select historic process variables like the given name and valuevariableValueLikeIgnoreCase
(String variableName, String variableValue) only select historic process variables like the given name and value (case insensitive)variableValueNotEquals
(String variableName, Object variableValue) only select historic process variables that don't have the given name and valueMethods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult
Methods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameter
-
Field Details
-
variableServiceConfiguration
-
id
-
taskId
-
taskIds
-
executionId
-
executionIds
-
processInstanceId
-
activityInstanceId
-
variableName
-
variableNameLike
-
excludeTaskRelated
protected boolean excludeTaskRelated -
excludeVariableInitialization
protected boolean excludeVariableInitialization -
scopeId
-
subScopeId
-
scopeType
-
queryVariableValue
-
excludeLocalVariables
protected boolean excludeLocalVariables
-
-
Constructor Details
-
VariableInstanceQueryImpl
public VariableInstanceQueryImpl() -
VariableInstanceQueryImpl
public VariableInstanceQueryImpl(CommandContext commandContext, VariableServiceConfiguration variableServiceConfiguration) -
VariableInstanceQueryImpl
public VariableInstanceQueryImpl(CommandExecutor commandExecutor, VariableServiceConfiguration variableServiceConfiguration)
-
-
Method Details
-
id
Description copied from interface:VariableInstanceQuery
Only select a historic variable with the given id.- Specified by:
id
in interfaceVariableInstanceQuery
-
processInstanceId
Description copied from interface:VariableInstanceQuery
Only select historic process variables with the given process instance.- Specified by:
processInstanceId
in interfaceVariableInstanceQuery
-
executionId
Description copied from interface:VariableInstanceQuery
Only select historic process variables with the given id.- Specified by:
executionId
in interfaceVariableInstanceQuery
-
executionIds
Description copied from interface:VariableInstanceQuery
Only select historic process variables whose id is in the given set of ids.- Specified by:
executionIds
in interfaceVariableInstanceQuery
-
activityInstanceId
-
taskId
Description copied from interface:VariableInstanceQuery
Only select historic process variables with the given task.- Specified by:
taskId
in interfaceVariableInstanceQuery
-
taskIds
Description copied from interface:VariableInstanceQuery
Only select historic process variables whose id is in the given set of ids.- Specified by:
taskIds
in interfaceVariableInstanceQuery
-
excludeTaskVariables
Description copied from interface:VariableInstanceQuery
Only select historic process variables which were not set task-local.- Specified by:
excludeTaskVariables
in interfaceVariableInstanceQuery
-
excludeVariableInitialization
Description copied from interface:VariableInstanceQuery
Don't initialize variable values. This is foremost a way to deal with variable delete queries- Specified by:
excludeVariableInitialization
in interfaceVariableInstanceQuery
-
variableName
Description copied from interface:VariableInstanceQuery
Only select historic process variables with the given variable name.- Specified by:
variableName
in interfaceVariableInstanceQuery
-
variableValueEquals
Description copied from interface:VariableInstanceQuery
only select historic process variables with the given name and value- Specified by:
variableValueEquals
in interfaceVariableInstanceQuery
-
variableValueNotEquals
Description copied from interface:VariableInstanceQuery
only select historic process variables that don't have the given name and value- Specified by:
variableValueNotEquals
in interfaceVariableInstanceQuery
-
variableValueLike
Description copied from interface:VariableInstanceQuery
only select historic process variables like the given name and value- Specified by:
variableValueLike
in interfaceVariableInstanceQuery
-
variableValueLikeIgnoreCase
Description copied from interface:VariableInstanceQuery
only select historic process variables like the given name and value (case insensitive)- Specified by:
variableValueLikeIgnoreCase
in interfaceVariableInstanceQuery
-
variableNameLike
Description copied from interface:VariableInstanceQuery
Only select historic process variables where the given variable name is like.- Specified by:
variableNameLike
in interfaceVariableInstanceQuery
-
scopeId
Description copied from interface:VariableInstanceQuery
Only select historic variables with the given scope id.- Specified by:
scopeId
in interfaceVariableInstanceQuery
-
subScopeId
Description copied from interface:VariableInstanceQuery
Only select historic variables with the given sub scope id.- Specified by:
subScopeId
in interfaceVariableInstanceQuery
-
scopeType
Description copied from interface:VariableInstanceQuery
Only select historic variables with the give scope type.- Specified by:
scopeType
in interfaceVariableInstanceQuery
-
excludeLocalVariables
Description copied from interface:VariableInstanceQuery
Only select historic process variables which were not set local.- Specified by:
excludeLocalVariables
in interfaceVariableInstanceQuery
-
ensureVariablesInitialized
protected void ensureVariablesInitialized() -
executeCount
- Specified by:
executeCount
in classAbstractQuery<VariableInstanceQuery,
VariableInstance>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<VariableInstanceQuery,
VariableInstance>
-
orderByProcessInstanceId
- Specified by:
orderByProcessInstanceId
in interfaceVariableInstanceQuery
-
orderByVariableName
- Specified by:
orderByVariableName
in interfaceVariableInstanceQuery
-
getProcessInstanceId
-
getTaskId
-
getActivityInstanceId
-
getExcludeTaskRelated
public boolean getExcludeTaskRelated() -
getVariableName
-
getVariableNameLike
-
getScopeId
-
getSubScopeId
-
getScopeType
-
getId
-
getTaskIds
-
getExecutionId
-
getExecutionIds
-
isExcludeTaskRelated
public boolean isExcludeTaskRelated() -
isExcludeVariableInitialization
public boolean isExcludeVariableInitialization() -
getQueryVariableValue
-
isExcludeLocalVariables
public boolean isExcludeLocalVariables()
-