org.camunda.bpm.engine.impl
Class VariableInstanceQueryImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.db.AuthorizationCheck
      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<VariableInstanceQuery,VariableInstance>
                  extended by 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:
Serialized Form

Field Summary
protected  String[] activityInstanceIds
           
protected  String[] executionIds
           
protected  boolean isByteArrayFetchingEnabled
           
protected  String[] processInstanceIds
           
protected  String[] taskIds
           
protected  String variableId
           
protected  String variableName
           
protected  String variableNameLike
           
 
Fields inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl
queryVariableValues
 
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandContext, commandExecutor, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
 
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
databaseType, firstResult, maxResults, parameter
 
Fields inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck
authDefaultPerm, authGroupIds, authPerms, authResourceId, authResourceIdQueryParam, authResourceType, authUserId, isAuthorizationCheckEnabled
 
Constructor Summary
VariableInstanceQueryImpl()
           
VariableInstanceQueryImpl(CommandExecutor commandExecutor)
           
 
Method Summary
 VariableInstanceQuery activityInstanceIdIn(String... activityInstanceIds)
          Only select variable instances which have one of the activity instance ids.
 VariableInstanceQuery disableBinaryFetching()
          Disable fetching of byte array values.
 long executeCount(CommandContext commandContext)
           
 List<VariableInstance> executeList(CommandContext commandContext, Page page)
          Executes the actual query to retrieve the list of results.
 VariableInstanceQuery executionIdIn(String... executionIds)
          Only select variable instances which have one of the executions ids.
 String[] getActivityInstanceIds()
           
 String[] getExecutionIds()
           
 String[] getProcessInstanceIds()
           
 String[] getTaskIds()
           
 String getVariableId()
           
 String getVariableName()
           
 String getVariableNameLike()
           
 VariableInstanceQuery orderByActivityInstanceId()
          Order by activity instance id (needs to be followed by Query.asc() or Query.desc()).
 VariableInstanceQuery orderByVariableName()
          Order by variable name (needs to be followed by Query.asc() or Query.desc()).
 VariableInstanceQuery orderByVariableType()
          Order by variable type (needs to be followed by Query.asc() or Query.desc()).
 VariableInstanceQuery processInstanceIdIn(String... processInstanceIds)
          Only select variable instances which have one of the process instance ids.
 VariableInstanceQuery taskIdIn(String... taskIds)
          Only select variable instances which have one of the task ids.
 VariableInstanceQuery variableId(String id)
          Only select the variable with the given Id
 VariableInstanceQuery variableName(String variableName)
          Only select variable instances which have the variable name.
 VariableInstanceQuery variableNameLike(String variableNameLike)
          Only select variable instances which have the name like the assigned variable name.
 
Methods inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl
addVariable, ensureVariablesInitialized, getQueryVariableValues, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals
 
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addOrder, asc, assertParamNotNull, assertParamNotNull, checkQueryOk, count, desc, direction, execute, executeSingleResult, getOrderBy, list, listPage, orderBy, setCommandExecutor, singleResult
 
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, setParameter
 
Methods inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck
getAuthDefaultPerm, getAuthGroupIds, getAuthPerms, getAuthResourceId, getAuthResourceIdQueryParam, getAuthResourceType, getAuthUserId, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthPerms, setAuthResourceId, setAuthResourceIdQueryParam, setAuthResourceType, setAuthUserId
 
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.runtime.VariableInstanceQuery
variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals
 
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult
 

Field Detail

variableId

protected String variableId

variableName

protected String variableName

variableNameLike

protected String variableNameLike

executionIds

protected String[] executionIds

processInstanceIds

protected String[] processInstanceIds

taskIds

protected String[] taskIds

activityInstanceIds

protected String[] activityInstanceIds

isByteArrayFetchingEnabled

protected boolean isByteArrayFetchingEnabled
Constructor Detail

VariableInstanceQueryImpl

public VariableInstanceQueryImpl()

VariableInstanceQueryImpl

public VariableInstanceQueryImpl(CommandExecutor commandExecutor)
Method Detail

variableId

public VariableInstanceQuery variableId(String id)
Description copied from interface: VariableInstanceQuery
Only select the variable with the given Id

Specified by:
variableId in interface VariableInstanceQuery
Returns:
the query object

variableName

public VariableInstanceQuery variableName(String variableName)
Description copied from interface: VariableInstanceQuery
Only select variable instances which have the variable name.

Specified by:
variableName in interface VariableInstanceQuery

variableNameLike

public VariableInstanceQuery variableNameLike(String variableNameLike)
Description copied from interface: VariableInstanceQuery
Only 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:
variableNameLike in interface VariableInstanceQuery

executionIdIn

public VariableInstanceQuery executionIdIn(String... executionIds)
Description copied from interface: VariableInstanceQuery
Only select variable instances which have one of the executions ids.

Specified by:
executionIdIn in interface VariableInstanceQuery

processInstanceIdIn

public VariableInstanceQuery processInstanceIdIn(String... processInstanceIds)
Description copied from interface: VariableInstanceQuery
Only select variable instances which have one of the process instance ids.

Specified by:
processInstanceIdIn in interface VariableInstanceQuery

taskIdIn

public VariableInstanceQuery taskIdIn(String... taskIds)
Description copied from interface: VariableInstanceQuery
Only select variable instances which have one of the task ids.

Specified by:
taskIdIn in interface VariableInstanceQuery

activityInstanceIdIn

public VariableInstanceQuery activityInstanceIdIn(String... activityInstanceIds)
Description copied from interface: VariableInstanceQuery
Only select variable instances which have one of the activity instance ids.

Specified by:
activityInstanceIdIn in interface VariableInstanceQuery

disableBinaryFetching

public VariableInstanceQuery disableBinaryFetching()
Description copied from interface: VariableInstanceQuery
Disable fetching of byte array values. By default, the query will fetch the value of a byte array. By calling this method you can prevent the values of (potentially large) blob data chunks to be fetched.

Specified by:
disableBinaryFetching in interface VariableInstanceQuery
Returns:
the query builder

orderByVariableName

public VariableInstanceQuery orderByVariableName()
Description copied from interface: VariableInstanceQuery
Order by variable name (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByVariableName in interface VariableInstanceQuery

orderByVariableType

public VariableInstanceQuery orderByVariableType()
Description copied from interface: VariableInstanceQuery
Order by variable type (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByVariableType in interface VariableInstanceQuery

orderByActivityInstanceId

public VariableInstanceQuery orderByActivityInstanceId()
Description copied from interface: VariableInstanceQuery
Order by activity instance id (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByActivityInstanceId in interface VariableInstanceQuery

executeCount

public long executeCount(CommandContext commandContext)
Specified by:
executeCount in class AbstractVariableQueryImpl<VariableInstanceQuery,VariableInstance>

executeList

public List<VariableInstance> 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 AbstractVariableQueryImpl<VariableInstanceQuery,VariableInstance>
page - used if the results must be paged. If null, no paging will be applied.

getVariableId

public String getVariableId()

getVariableName

public String getVariableName()

getVariableNameLike

public String getVariableNameLike()

getExecutionIds

public String[] getExecutionIds()

getProcessInstanceIds

public String[] getProcessInstanceIds()

getTaskIds

public String[] getTaskIds()

getActivityInstanceIds

public String[] getActivityInstanceIds()


Copyright © 2014 camunda services GmbH. All Rights Reserved.