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
Modifier and TypeFieldDescriptionprotected String
protected Boolean
protected boolean
protected static final long
protected Date
protected Date
protected SuspensionState
protected String[]
protected String
protected String
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
-
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 idlong
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.String[]
getType()
boolean
Returns 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, 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
Methods 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:BatchStatisticsQuery
Only select batch statistics for the given batch id.- Specified by:
batchId
in interfaceBatchStatisticsQuery
-
getBatchId
-
type
Description copied from interface:BatchStatisticsQuery
Only select batch statistics of the given type.- Specified by:
type
in interfaceBatchStatisticsQuery
-
getType
-
tenantIdIn
Description copied from interface:BatchStatisticsQuery
Only selects batch statistics with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceBatchStatisticsQuery
-
getTenantIds
-
isTenantIdSet
public boolean isTenantIdSet() -
withoutTenantId
Description copied from interface:BatchStatisticsQuery
Only selects batch statistics which have no tenant id.- Specified by:
withoutTenantId
in interfaceBatchStatisticsQuery
-
active
Description copied from interface:BatchStatisticsQuery
Only selects batches which are active- Specified by:
active
in interfaceBatchStatisticsQuery
-
suspended
Description copied from interface:BatchStatisticsQuery
Only selects batches which are suspended- Specified by:
suspended
in interfaceBatchStatisticsQuery
-
createdBy
Description copied from interface:BatchStatisticsQuery
Only selects batches that are started by the given user id- Specified by:
createdBy
in interfaceBatchStatisticsQuery
-
startedBefore
Description copied from interface:BatchStatisticsQuery
Only select historic activity instances that were started before the given date.- Specified by:
startedBefore
in interfaceBatchStatisticsQuery
-
startedAfter
Description copied from interface:BatchStatisticsQuery
Only select historic activity instances that were started after the given date.- Specified by:
startedAfter
in interfaceBatchStatisticsQuery
-
withFailures
Description copied from interface:BatchStatisticsQuery
Only selects batches with failed jobs- Specified by:
withFailures
in interfaceBatchStatisticsQuery
-
withoutFailures
Description copied from interface:BatchStatisticsQuery
Only selects batches without failed jobs- Specified by:
withoutFailures
in interfaceBatchStatisticsQuery
-
getSuspensionState
-
orderById
Description copied from interface:BatchStatisticsQuery
Returns batch statistics sorted by batch id; must be followed by an invocation ofQuery.asc()
orQuery.desc()
.- Specified by:
orderById
in interfaceBatchStatisticsQuery
-
orderByTenantId
Description copied from interface:BatchStatisticsQuery
Returns batch statistics sorted by tenant id; must be followed by an invocation ofQuery.asc()
orQuery.desc()
.- Specified by:
orderByTenantId
in interfaceBatchStatisticsQuery
-
orderByStartTime
Description copied from interface:BatchStatisticsQuery
Returns batch statistics sorted by start time; must be followed by an invocation ofQuery.asc()
orQuery.desc()
.- Specified by:
orderByStartTime
in interfaceBatchStatisticsQuery
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<BatchStatisticsQuery,
BatchStatistics>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<BatchStatisticsQuery,
BatchStatistics> page
- used if the results must be paged. If null, no paging will be applied.
-