Package org.camunda.bpm.engine.impl
Class AbstractVariableQueryImpl<T extends Query<?,?>,U>
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<T,U>
-
- org.camunda.bpm.engine.impl.AbstractVariableQueryImpl<T,U>
-
- Direct Known Subclasses:
CaseExecutionQueryImpl
,CaseInstanceQueryImpl
,ExecutionQueryImpl
,HistoricCaseInstanceQueryImpl
,HistoricIdentityLinkLogQueryImpl
,HistoricIncidentQueryImpl
,HistoricProcessInstanceQueryImpl
,ProcessInstanceQueryImpl
,VariableInstanceQueryImpl
public abstract class AbstractVariableQueryImpl<T extends Query<?,?>,U> extends AbstractQuery<T,U>
Abstract query class that adds methods to query for variable values.- Author:
- Frederik Heremans
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<QueryVariableValue>
queryVariableValues
protected java.lang.Boolean
variableNamesIgnoreCase
protected java.lang.Boolean
variableValuesIgnoreCase
-
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
-
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
-
-
Constructor Summary
Constructors Constructor Description AbstractVariableQueryImpl()
AbstractVariableQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addVariable(java.lang.String name, java.lang.Object value, QueryOperator operator, boolean processInstanceScope)
protected QueryVariableValue
createQueryVariableValue(java.lang.String name, java.lang.Object value, QueryOperator operator, boolean processInstanceScope)
protected void
ensureVariablesInitialized()
abstract long
executeCount(CommandContext commandContext)
abstract java.util.List<U>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.java.util.List<QueryVariableValue>
getQueryVariableValues()
java.lang.Boolean
isVariableNamesIgnoreCase()
java.lang.Boolean
isVariableValuesIgnoreCase()
T
matchVariableNamesIgnoreCase()
T
matchVariableValuesIgnoreCase()
protected void
validateVariable(java.lang.String name, java.lang.Object value, QueryOperator operator)
T
variableValueEquals(java.lang.String name, java.lang.Object value)
T
variableValueGreaterThan(java.lang.String name, java.lang.Object value)
T
variableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)
T
variableValueLessThan(java.lang.String name, java.lang.Object value)
T
variableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)
T
variableValueLike(java.lang.String name, java.lang.String value)
T
variableValueNotEquals(java.lang.String name, java.lang.Object value)
T
variableValueNotLike(java.lang.String name, java.lang.String value)
-
Methods 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, hasExcludingConditions, list, listDeploymentIdMappings, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unlimitedList, validate, validate
-
Methods 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, setTenantCheck
-
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.impl.interceptor.Command
isRetryable
-
-
-
-
Field Detail
-
queryVariableValues
protected java.util.List<QueryVariableValue> queryVariableValues
-
variableNamesIgnoreCase
protected java.lang.Boolean variableNamesIgnoreCase
-
variableValuesIgnoreCase
protected java.lang.Boolean variableValuesIgnoreCase
-
-
Constructor Detail
-
AbstractVariableQueryImpl
public AbstractVariableQueryImpl()
-
AbstractVariableQueryImpl
public AbstractVariableQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
executeCount
public abstract long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<T extends Query<?,?>,U>
-
executeList
public abstract java.util.List<U> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<T extends Query<?,?>,U>
page
- used if the results must be paged. If null, no paging will be applied.
-
variableValueEquals
public T variableValueEquals(java.lang.String name, java.lang.Object value)
-
variableValueNotEquals
public T variableValueNotEquals(java.lang.String name, java.lang.Object value)
-
variableValueGreaterThan
public T variableValueGreaterThan(java.lang.String name, java.lang.Object value)
-
variableValueGreaterThanOrEqual
public T variableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)
-
variableValueLessThan
public T variableValueLessThan(java.lang.String name, java.lang.Object value)
-
variableValueLessThanOrEqual
public T variableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)
-
variableValueLike
public T variableValueLike(java.lang.String name, java.lang.String value)
-
variableValueNotLike
public T variableValueNotLike(java.lang.String name, java.lang.String value)
-
matchVariableNamesIgnoreCase
public T matchVariableNamesIgnoreCase()
-
matchVariableValuesIgnoreCase
public T matchVariableValuesIgnoreCase()
-
addVariable
protected void addVariable(java.lang.String name, java.lang.Object value, QueryOperator operator, boolean processInstanceScope)
-
createQueryVariableValue
protected QueryVariableValue createQueryVariableValue(java.lang.String name, java.lang.Object value, QueryOperator operator, boolean processInstanceScope)
-
validateVariable
protected void validateVariable(java.lang.String name, java.lang.Object value, QueryOperator operator)
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()
-
getQueryVariableValues
public java.util.List<QueryVariableValue> getQueryVariableValues()
-
isVariableNamesIgnoreCase
public java.lang.Boolean isVariableNamesIgnoreCase()
-
isVariableValuesIgnoreCase
public java.lang.Boolean isVariableValuesIgnoreCase()
-
-