org.camunda.bpm.engine.impl
Class AbstractVariableQueryImpl<T extends Query<?,?>,U>

java.lang.Object
  extended by org.camunda.bpm.engine.impl.db.ListQueryParameterObject
      extended by org.camunda.bpm.engine.impl.AbstractQuery<T,U>
          extended by org.camunda.bpm.engine.impl.AbstractVariableQueryImpl<T,U>
All Implemented Interfaces:
Serializable, Command<Object>, Query<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
protected  List<QueryVariableValue> queryVariableValues
           
 
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, 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
AbstractVariableQueryImpl()
           
AbstractVariableQueryImpl(CommandExecutor commandExecutor)
           
 
Method Summary
protected  void addVariable(String name, Object value, QueryOperator operator, boolean processInstanceScope)
           
protected  void ensureVariablesInitialized()
           
abstract  long executeCount(CommandContext commandContext)
           
abstract  List<U> executeList(CommandContext commandContext, Page page)
          Executes the actual query to retrieve the list of results.
 List<QueryVariableValue> getQueryVariableValues()
           
 T variableValueEquals(String name, Object value)
           
 T variableValueGreaterThan(String name, Object value)
           
 T variableValueGreaterThanOrEqual(String name, Object value)
           
 T variableValueLessThan(String name, Object value)
           
 T variableValueLessThanOrEqual(String name, Object value)
           
 T variableValueLike(String name, String value)
           
 T variableValueNotEquals(String name, Object value)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeIdsList, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, list, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, 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
 

Field Detail

queryVariableValues

protected List<QueryVariableValue> queryVariableValues
Constructor Detail

AbstractVariableQueryImpl

public AbstractVariableQueryImpl()

AbstractVariableQueryImpl

public AbstractVariableQueryImpl(CommandExecutor commandExecutor)
Method Detail

executeCount

public abstract long executeCount(CommandContext commandContext)
Specified by:
executeCount in class AbstractQuery<T extends Query<?,?>,U>

executeList

public abstract 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 class AbstractQuery<T extends Query<?,?>,U>
page - used if the results must be paged. If null, no paging will be applied.

variableValueEquals

public T variableValueEquals(String name,
                             Object value)

variableValueNotEquals

public T variableValueNotEquals(String name,
                                Object value)

variableValueGreaterThan

public T variableValueGreaterThan(String name,
                                  Object value)

variableValueGreaterThanOrEqual

public T variableValueGreaterThanOrEqual(String name,
                                         Object value)

variableValueLessThan

public T variableValueLessThan(String name,
                               Object value)

variableValueLessThanOrEqual

public T variableValueLessThanOrEqual(String name,
                                      Object value)

variableValueLike

public T variableValueLike(String name,
                           String value)

addVariable

protected void addVariable(String name,
                           Object value,
                           QueryOperator operator,
                           boolean processInstanceScope)

ensureVariablesInitialized

protected void ensureVariablesInitialized()

getQueryVariableValues

public List<QueryVariableValue> getQueryVariableValues()


Copyright © 2017 camunda services GmbH. All rights reserved.