Class AbstractVariableQueryImpl<T extends Query<?,?>,U>
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<T,U>
org.flowable.variable.service.impl.AbstractVariableQueryImpl<T,U>
- All Implemented Interfaces:
Serializable
,Query<T,
,U> Command<Object>
- Direct Known Subclasses:
CaseInstanceQueryImpl
,ExecutionQueryImpl
,HistoricCaseInstanceQueryImpl
,HistoricProcessInstanceQueryImpl
,HistoricTaskInstanceQueryImpl
,PlanItemInstanceQueryImpl
,ProcessInstanceQueryImpl
,TaskQueryImpl
Abstract query class that adds methods to query for variable values.
- Author:
- Frederik Heremans
- 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 List<QueryVariableValue>
protected VariableValueProvider
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
ConstructorsConstructorDescriptionAbstractVariableQueryImpl
(CommandContext commandContext, VariableValueProvider variableValueProvider) AbstractVariableQueryImpl
(CommandContext commandContext, VariableServiceConfiguration variableServiceConfiguration) AbstractVariableQueryImpl
(CommandExecutor commandExecutor, VariableValueProvider variableValueProvider) AbstractVariableQueryImpl
(CommandExecutor commandExecutor, VariableServiceConfiguration variableServiceConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addVariable
(String name, Object value, QueryOperator operator, boolean localScope) protected void
addVariable
(String name, Object value, QueryOperator operator, String scopeType, boolean localScope) protected void
abstract long
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext) Executes the actual query to retrieve the list of results.boolean
boolean
boolean
protected boolean
protected T
scopedVariableExists
(String name, String scopeType) protected T
scopedVariableNotExists
(String name, String scopeType) protected T
scopedVariableValueEquals
(Object value, String scopeType) protected T
scopedVariableValueEquals
(String name, Object value, String scopeType) protected T
scopedVariableValueEqualsIgnoreCase
(String name, String value, String scopeType) protected T
scopedVariableValueGreaterThan
(String name, Object value, String scopeType) protected T
scopedVariableValueGreaterThanOrEqual
(String name, Object value, String scopeType) protected T
scopedVariableValueLessThan
(String name, Object value, String scopeType) protected T
scopedVariableValueLessThanOrEqual
(String name, Object value, String scopeType) protected T
scopedVariableValueLike
(String name, String value, String scopeType) protected T
scopedVariableValueLikeIgnoreCase
(String name, String value, String scopeType) protected T
scopedVariableValueNotEquals
(String name, Object value, String scopeType) protected T
scopedVariableValueNotEqualsIgnoreCase
(String name, String value, String scopeType) variableExists
(String name) protected T
variableExists
(String name, boolean localScope) variableNotExists
(String name) protected T
variableNotExists
(String name, boolean localScope) variableValueEquals
(Object value) protected T
variableValueEquals
(Object value, boolean localScope) variableValueEquals
(String name, Object value) protected T
variableValueEquals
(String name, Object value, boolean localScope) variableValueEqualsIgnoreCase
(String name, String value) protected T
variableValueEqualsIgnoreCase
(String name, String value, boolean localScope) variableValueGreaterThan
(String name, Object value) protected T
variableValueGreaterThan
(String name, Object value, boolean localScope) variableValueGreaterThanOrEqual
(String name, Object value) protected T
variableValueGreaterThanOrEqual
(String name, Object value, boolean localScope) variableValueLessThan
(String name, Object value) protected T
variableValueLessThan
(String name, Object value, boolean localScope) variableValueLessThanOrEqual
(String name, Object value) protected T
variableValueLessThanOrEqual
(String name, Object value, boolean localScope) variableValueLike
(String name, String value) protected T
variableValueLike
(String name, String value, boolean localScope) variableValueLikeIgnoreCase
(String name, String value) protected T
variableValueLikeIgnoreCase
(String name, String value, boolean localScope) variableValueNotEquals
(String name, Object value) protected T
variableValueNotEquals
(String name, Object value, boolean localScope) variableValueNotEqualsIgnoreCase
(String name, String value) protected T
variableValueNotEqualsIgnoreCase
(String name, String value, boolean localScope) Methods 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
-
variableValueProvider
-
queryVariableValues
-
-
Constructor Details
-
AbstractVariableQueryImpl
public AbstractVariableQueryImpl() -
AbstractVariableQueryImpl
public AbstractVariableQueryImpl(CommandContext commandContext, VariableServiceConfiguration variableServiceConfiguration) -
AbstractVariableQueryImpl
public AbstractVariableQueryImpl(CommandExecutor commandExecutor, VariableServiceConfiguration variableServiceConfiguration) -
AbstractVariableQueryImpl
public AbstractVariableQueryImpl(CommandContext commandContext, VariableValueProvider variableValueProvider) -
AbstractVariableQueryImpl
public AbstractVariableQueryImpl(CommandExecutor commandExecutor, VariableValueProvider variableValueProvider)
-
-
Method Details
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<T extends Query<?,
?>, U>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<T extends Query<?,
?>, U>
-
variableValueEquals
-
variableValueEquals
-
scopedVariableValueEquals
-
variableValueEquals
-
variableValueEquals
-
scopedVariableValueEquals
-
variableValueEqualsIgnoreCase
-
variableValueEqualsIgnoreCase
-
scopedVariableValueEqualsIgnoreCase
-
variableValueNotEqualsIgnoreCase
-
variableValueNotEqualsIgnoreCase
-
scopedVariableValueNotEqualsIgnoreCase
-
variableValueNotEquals
-
variableValueNotEquals
-
scopedVariableValueNotEquals
-
variableValueGreaterThan
-
variableValueGreaterThan
-
scopedVariableValueGreaterThan
-
variableValueGreaterThanOrEqual
-
variableValueGreaterThanOrEqual
-
scopedVariableValueGreaterThanOrEqual
-
variableValueLessThan
-
variableValueLessThan
-
scopedVariableValueLessThan
-
variableValueLessThanOrEqual
-
variableValueLessThanOrEqual
-
scopedVariableValueLessThanOrEqual
-
variableValueLike
-
variableValueLikeIgnoreCase
-
variableValueLike
-
scopedVariableValueLike
-
variableValueLikeIgnoreCase
-
scopedVariableValueLikeIgnoreCase
-
variableExists
-
variableExists
-
scopedVariableExists
-
variableNotExists
-
variableNotExists
-
scopedVariableNotExists
-
addVariable
-
addVariable
protected void addVariable(String name, Object value, QueryOperator operator, String scopeType, boolean localScope) -
isBoolean
-
ensureVariablesInitialized
protected void ensureVariablesInitialized() -
getQueryVariableValues
-
hasValueComparisonQueryVariables
public boolean hasValueComparisonQueryVariables() -
hasLocalQueryVariableValue
public boolean hasLocalQueryVariableValue() -
hasNonLocalQueryVariableValue
public boolean hasNonLocalQueryVariableValue()
-