org.camunda.bpm.engine.impl.batch
Class BatchStatisticsQueryImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.db.ListQueryParameterObject
      extended by org.camunda.bpm.engine.impl.AbstractQuery<BatchStatisticsQuery,BatchStatistics>
          extended by org.camunda.bpm.engine.impl.batch.BatchStatisticsQueryImpl
All Implemented Interfaces:
Serializable, BatchStatisticsQuery, Command<Object>, Query<BatchStatisticsQuery,BatchStatistics>

public class BatchStatisticsQueryImpl
extends AbstractQuery<BatchStatisticsQuery,BatchStatistics>
implements BatchStatisticsQuery

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
 
Field Summary
protected  String batchId
           
protected  boolean isTenantIdSet
           
protected static long serialVersionUID
           
protected  SuspensionState suspensionState
           
protected  String[] tenantIds
           
protected  String type
           
 
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, orderingProperties, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
 
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, DEFAULT_ORDER_BY, firstResult, maxResults, orderBy, parameter, tenantCheck
 
Constructor Summary
BatchStatisticsQueryImpl(CommandExecutor commandExecutor)
           
 
Method Summary
 BatchStatisticsQuery active()
          Only selects batches which are active
 BatchStatisticsQuery batchId(String batchId)
          Only select batch statistics for the given batch id.
 long executeCount(CommandContext commandContext)
           
 List<BatchStatistics> executeList(CommandContext commandContext, Page page)
          Executes the actual query to retrieve the list of results.
 String getBatchId()
           
 SuspensionState getSuspensionState()
           
 String[] getTenantIds()
           
 String getType()
           
 boolean isTenantIdSet()
           
 BatchStatisticsQuery orderById()
          Returns batch statistics sorted by batch id; must be followed by an invocation of Query.asc() or Query.desc().
 BatchStatisticsQuery orderByTenantId()
          Returns batch statistics sorted by tenant id; must be followed by an invocation of Query.asc() or Query.desc().
 BatchStatisticsQuery suspended()
          Only selects batches which are suspended
 BatchStatisticsQuery tenantIdIn(String... tenantIds)
          Only selects batch statistics with one of the given tenant ids.
 BatchStatisticsQuery type(String type)
          Only select batch statistics of the given type.
 BatchStatisticsQuery withoutTenantId()
          Only selects batch statistics which have no tenant id.
 
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteList, execute, executeSingleResult, extend, getExpressions, getMethod, getOrderBy, getOrderingProperties, hasExcludingConditions, list, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, setOrderingProperties, singleResult, validate, validate
 
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, 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.query.Query
asc, count, desc, list, listPage, singleResult
 

Field Detail

serialVersionUID

protected static final long serialVersionUID
See Also:
Constant Field Values

batchId

protected String batchId

type

protected String type

isTenantIdSet

protected boolean isTenantIdSet

tenantIds

protected String[] tenantIds

suspensionState

protected SuspensionState suspensionState
Constructor Detail

BatchStatisticsQueryImpl

public BatchStatisticsQueryImpl(CommandExecutor commandExecutor)
Method Detail

batchId

public BatchStatisticsQuery batchId(String batchId)
Description copied from interface: BatchStatisticsQuery
Only select batch statistics for the given batch id.

Specified by:
batchId in interface BatchStatisticsQuery

getBatchId

public String getBatchId()

type

public BatchStatisticsQuery type(String type)
Description copied from interface: BatchStatisticsQuery
Only select batch statistics of the given type.

Specified by:
type in interface BatchStatisticsQuery

getType

public String getType()

tenantIdIn

public BatchStatisticsQuery tenantIdIn(String... tenantIds)
Description copied from interface: BatchStatisticsQuery
Only selects batch statistics with one of the given tenant ids.

Specified by:
tenantIdIn in interface BatchStatisticsQuery

getTenantIds

public String[] getTenantIds()

isTenantIdSet

public boolean isTenantIdSet()

withoutTenantId

public BatchStatisticsQuery withoutTenantId()
Description copied from interface: BatchStatisticsQuery
Only selects batch statistics which have no tenant id.

Specified by:
withoutTenantId in interface BatchStatisticsQuery

active

public BatchStatisticsQuery active()
Description copied from interface: BatchStatisticsQuery
Only selects batches which are active

Specified by:
active in interface BatchStatisticsQuery

suspended

public BatchStatisticsQuery suspended()
Description copied from interface: BatchStatisticsQuery
Only selects batches which are suspended

Specified by:
suspended in interface BatchStatisticsQuery

getSuspensionState

public SuspensionState getSuspensionState()

orderById

public BatchStatisticsQuery orderById()
Description copied from interface: BatchStatisticsQuery
Returns batch statistics sorted by batch id; must be followed by an invocation of Query.asc() or Query.desc().

Specified by:
orderById in interface BatchStatisticsQuery

orderByTenantId

public BatchStatisticsQuery orderByTenantId()
Description copied from interface: BatchStatisticsQuery
Returns batch statistics sorted by tenant id; must be followed by an invocation of Query.asc() or Query.desc().

Specified by:
orderByTenantId in interface BatchStatisticsQuery

executeCount

public long executeCount(CommandContext commandContext)
Specified by:
executeCount in class AbstractQuery<BatchStatisticsQuery,BatchStatistics>

executeList

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


Copyright © 2016 camunda services GmbH. All rights reserved.