Class BatchStatisticsQueryImpl
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<BatchStatisticsQuery,BatchStatistics>
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Booleanprotected booleanprotected static final longprotected Dateprotected Dateprotected SuspensionStateprotected String[]protected Stringprotected StringFields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validatorsFields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactive()Only selects batches which are activeOnly select batch statistics for the given batch id.Only selects batches that are started by the given user idlongexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.String[]getType()booleanReturns batch statistics sorted by batch id; must be followed by an invocation ofQuery.asc()orQuery.desc().Returns batch statistics sorted by start time; must be followed by an invocation ofQuery.asc()orQuery.desc().Returns batch statistics sorted by tenant id; must be followed by an invocation ofQuery.asc()orQuery.desc().startedAfter(Date date) Only select historic activity instances that were started after the given date.startedBefore(Date date) Only select historic activity instances that were started before the given date.Only selects batches which are suspendedtenantIdIn(String... tenantIds) Only selects batch statistics with one of the given tenant ids.Only select batch statistics of the given type.Only selects batches with failed jobsOnly selects batches without failed jobsOnly selects batch statistics which have no tenant id.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, validateMethods 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, setTenantCheckMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Field Details
-
serialVersionUID
protected static final long serialVersionUID- See Also:
-
batchId
-
type
-
isTenantIdSet
protected boolean isTenantIdSet -
tenantIds
-
suspensionState
-
userId
-
startedBefore
-
startedAfter
-
hasFailure
-
-
Constructor Details
-
BatchStatisticsQueryImpl
-
-
Method Details
-
batchId
Description copied from interface:BatchStatisticsQueryOnly select batch statistics for the given batch id.- Specified by:
batchIdin interfaceBatchStatisticsQuery
-
getBatchId
-
type
Description copied from interface:BatchStatisticsQueryOnly select batch statistics of the given type.- Specified by:
typein interfaceBatchStatisticsQuery
-
getType
-
tenantIdIn
Description copied from interface:BatchStatisticsQueryOnly selects batch statistics with one of the given tenant ids.- Specified by:
tenantIdInin interfaceBatchStatisticsQuery
-
getTenantIds
-
isTenantIdSet
public boolean isTenantIdSet() -
withoutTenantId
Description copied from interface:BatchStatisticsQueryOnly selects batch statistics which have no tenant id.- Specified by:
withoutTenantIdin interfaceBatchStatisticsQuery
-
active
Description copied from interface:BatchStatisticsQueryOnly selects batches which are active- Specified by:
activein interfaceBatchStatisticsQuery
-
suspended
Description copied from interface:BatchStatisticsQueryOnly selects batches which are suspended- Specified by:
suspendedin interfaceBatchStatisticsQuery
-
createdBy
Description copied from interface:BatchStatisticsQueryOnly selects batches that are started by the given user id- Specified by:
createdByin interfaceBatchStatisticsQuery
-
startedBefore
Description copied from interface:BatchStatisticsQueryOnly select historic activity instances that were started before the given date.- Specified by:
startedBeforein interfaceBatchStatisticsQuery
-
startedAfter
Description copied from interface:BatchStatisticsQueryOnly select historic activity instances that were started after the given date.- Specified by:
startedAfterin interfaceBatchStatisticsQuery
-
withFailures
Description copied from interface:BatchStatisticsQueryOnly selects batches with failed jobs- Specified by:
withFailuresin interfaceBatchStatisticsQuery
-
withoutFailures
Description copied from interface:BatchStatisticsQueryOnly selects batches without failed jobs- Specified by:
withoutFailuresin interfaceBatchStatisticsQuery
-
getSuspensionState
-
orderById
Description copied from interface:BatchStatisticsQueryReturns batch statistics sorted by batch id; must be followed by an invocation ofQuery.asc()orQuery.desc().- Specified by:
orderByIdin interfaceBatchStatisticsQuery
-
orderByTenantId
Description copied from interface:BatchStatisticsQueryReturns batch statistics sorted by tenant id; must be followed by an invocation ofQuery.asc()orQuery.desc().- Specified by:
orderByTenantIdin interfaceBatchStatisticsQuery
-
orderByStartTime
Description copied from interface:BatchStatisticsQueryReturns batch statistics sorted by start time; must be followed by an invocation ofQuery.asc()orQuery.desc().- Specified by:
orderByStartTimein interfaceBatchStatisticsQuery
-
executeCount
- Specified by:
executeCountin classAbstractQuery<BatchStatisticsQuery,BatchStatistics>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<BatchStatisticsQuery,BatchStatistics> page- used if the results must be paged. If null, no paging will be applied.
-