public class BatchStatisticsQueryImpl extends AbstractQuery<BatchStatisticsQuery,BatchStatistics> implements BatchStatisticsQuery
AbstractQuery.ResultType| Modifier and Type | Field and Description |
|---|---|
protected String |
batchId |
protected boolean |
isTenantIdSet |
protected static long |
serialVersionUID |
protected SuspensionState |
suspensionState |
protected String[] |
tenantIds |
protected String |
type |
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validatorsauthCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck| Constructor and Description |
|---|
BatchStatisticsQueryImpl(CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, validategetAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheckclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasc, count, desc, list, listPage, singleResult, unlimitedListisRetryableprotected static final long serialVersionUID
protected String batchId
protected String type
protected boolean isTenantIdSet
protected String[] tenantIds
protected SuspensionState suspensionState
public BatchStatisticsQueryImpl(CommandExecutor commandExecutor)
public BatchStatisticsQuery batchId(String batchId)
BatchStatisticsQuerybatchId in interface BatchStatisticsQuerypublic String getBatchId()
public BatchStatisticsQuery type(String type)
BatchStatisticsQuerytype in interface BatchStatisticsQuerypublic String getType()
public BatchStatisticsQuery tenantIdIn(String... tenantIds)
BatchStatisticsQuerytenantIdIn in interface BatchStatisticsQuerypublic String[] getTenantIds()
public boolean isTenantIdSet()
public BatchStatisticsQuery withoutTenantId()
BatchStatisticsQuerywithoutTenantId in interface BatchStatisticsQuerypublic BatchStatisticsQuery active()
BatchStatisticsQueryactive in interface BatchStatisticsQuerypublic BatchStatisticsQuery suspended()
BatchStatisticsQuerysuspended in interface BatchStatisticsQuerypublic SuspensionState getSuspensionState()
public BatchStatisticsQuery orderById()
BatchStatisticsQueryQuery.asc() or Query.desc().orderById in interface BatchStatisticsQuerypublic BatchStatisticsQuery orderByTenantId()
BatchStatisticsQueryQuery.asc() or Query.desc().orderByTenantId in interface BatchStatisticsQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractQuery<BatchStatisticsQuery,BatchStatistics>public List<BatchStatistics> executeList(CommandContext commandContext, Page page)
AbstractQueryexecuteList in class AbstractQuery<BatchStatisticsQuery,BatchStatistics>page - used if the results must be paged. If null, no paging will be applied.Copyright © 2022. All rights reserved.