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:
java.io.Serializable
,BatchStatisticsQuery
,Command<java.lang.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
Fields Modifier and Type Field Description protected java.lang.String
batchId
protected java.lang.Boolean
hasFailure
protected boolean
isTenantIdSet
protected static long
serialVersionUID
protected java.util.Date
startedAfter
protected java.util.Date
startedBefore
protected SuspensionState
suspensionState
protected java.lang.String[]
tenantIds
protected java.lang.String
type
protected java.lang.String
userId
-
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
Constructors Constructor Description BatchStatisticsQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchStatisticsQuery
active()
Only selects batches which are activeBatchStatisticsQuery
batchId(java.lang.String batchId)
Only select batch statistics for the given batch id.BatchStatisticsQuery
createdBy(java.lang.String userId)
Only selects batches that are started by the given user idlong
executeCount(CommandContext commandContext)
java.util.List<BatchStatistics>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.java.lang.String
getBatchId()
SuspensionState
getSuspensionState()
java.lang.String[]
getTenantIds()
java.lang.String
getType()
boolean
isTenantIdSet()
BatchStatisticsQuery
orderById()
Returns batch statistics sorted by batch id; must be followed by an invocation ofQuery.asc()
orQuery.desc()
.BatchStatisticsQuery
orderByStartTime()
Returns batch statistics sorted by start time; must be followed by an invocation ofQuery.asc()
orQuery.desc()
.BatchStatisticsQuery
orderByTenantId()
Returns batch statistics sorted by tenant id; must be followed by an invocation ofQuery.asc()
orQuery.desc()
.BatchStatisticsQuery
startedAfter(java.util.Date date)
Only select historic activity instances that were started after the given date.BatchStatisticsQuery
startedBefore(java.util.Date date)
Only select historic activity instances that were started before the given date.BatchStatisticsQuery
suspended()
Only selects batches which are suspendedBatchStatisticsQuery
tenantIdIn(java.lang.String... tenantIds)
Only selects batch statistics with one of the given tenant ids.BatchStatisticsQuery
type(java.lang.String type)
Only select batch statistics of the given type.BatchStatisticsQuery
withFailures()
Only selects batches with failed jobsBatchStatisticsQuery
withoutFailures()
Only selects batches without failed jobsBatchStatisticsQuery
withoutTenantId()
Only 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 Detail
-
serialVersionUID
protected static final long serialVersionUID
- See Also:
- Constant Field Values
-
batchId
protected java.lang.String batchId
-
type
protected java.lang.String type
-
isTenantIdSet
protected boolean isTenantIdSet
-
tenantIds
protected java.lang.String[] tenantIds
-
suspensionState
protected SuspensionState suspensionState
-
userId
protected java.lang.String userId
-
startedBefore
protected java.util.Date startedBefore
-
startedAfter
protected java.util.Date startedAfter
-
hasFailure
protected java.lang.Boolean hasFailure
-
-
Constructor Detail
-
BatchStatisticsQueryImpl
public BatchStatisticsQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
batchId
public BatchStatisticsQuery batchId(java.lang.String batchId)
Description copied from interface:BatchStatisticsQuery
Only select batch statistics for the given batch id.- Specified by:
batchId
in interfaceBatchStatisticsQuery
-
getBatchId
public java.lang.String getBatchId()
-
type
public BatchStatisticsQuery type(java.lang.String type)
Description copied from interface:BatchStatisticsQuery
Only select batch statistics of the given type.- Specified by:
type
in interfaceBatchStatisticsQuery
-
getType
public java.lang.String getType()
-
tenantIdIn
public BatchStatisticsQuery tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:BatchStatisticsQuery
Only selects batch statistics with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceBatchStatisticsQuery
-
getTenantIds
public java.lang.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 interfaceBatchStatisticsQuery
-
active
public BatchStatisticsQuery active()
Description copied from interface:BatchStatisticsQuery
Only selects batches which are active- Specified by:
active
in interfaceBatchStatisticsQuery
-
suspended
public BatchStatisticsQuery suspended()
Description copied from interface:BatchStatisticsQuery
Only selects batches which are suspended- Specified by:
suspended
in interfaceBatchStatisticsQuery
-
createdBy
public BatchStatisticsQuery createdBy(java.lang.String userId)
Description copied from interface:BatchStatisticsQuery
Only selects batches that are started by the given user id- Specified by:
createdBy
in interfaceBatchStatisticsQuery
-
startedBefore
public BatchStatisticsQuery startedBefore(java.util.Date date)
Description copied from interface:BatchStatisticsQuery
Only select historic activity instances that were started before the given date.- Specified by:
startedBefore
in interfaceBatchStatisticsQuery
-
startedAfter
public BatchStatisticsQuery startedAfter(java.util.Date date)
Description copied from interface:BatchStatisticsQuery
Only select historic activity instances that were started after the given date.- Specified by:
startedAfter
in interfaceBatchStatisticsQuery
-
withFailures
public BatchStatisticsQuery withFailures()
Description copied from interface:BatchStatisticsQuery
Only selects batches with failed jobs- Specified by:
withFailures
in interfaceBatchStatisticsQuery
-
withoutFailures
public BatchStatisticsQuery withoutFailures()
Description copied from interface:BatchStatisticsQuery
Only selects batches without failed jobs- Specified by:
withoutFailures
in interfaceBatchStatisticsQuery
-
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 ofQuery.asc()
orQuery.desc()
.- Specified by:
orderById
in interfaceBatchStatisticsQuery
-
orderByTenantId
public BatchStatisticsQuery 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
public BatchStatisticsQuery 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
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<BatchStatisticsQuery,BatchStatistics>
-
executeList
public java.util.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 classAbstractQuery<BatchStatisticsQuery,BatchStatistics>
page
- used if the results must be paged. If null, no paging will be applied.
-
-