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, validators
authCheck, 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, validate
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asc, count, desc, list, listPage, singleResult, unlimitedList
protected 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)
BatchStatisticsQuery
batchId
in interface BatchStatisticsQuery
public String getBatchId()
public BatchStatisticsQuery type(String type)
BatchStatisticsQuery
type
in interface BatchStatisticsQuery
public String getType()
public BatchStatisticsQuery tenantIdIn(String... tenantIds)
BatchStatisticsQuery
tenantIdIn
in interface BatchStatisticsQuery
public String[] getTenantIds()
public boolean isTenantIdSet()
public BatchStatisticsQuery withoutTenantId()
BatchStatisticsQuery
withoutTenantId
in interface BatchStatisticsQuery
public BatchStatisticsQuery active()
BatchStatisticsQuery
active
in interface BatchStatisticsQuery
public BatchStatisticsQuery suspended()
BatchStatisticsQuery
suspended
in interface BatchStatisticsQuery
public SuspensionState getSuspensionState()
public BatchStatisticsQuery orderById()
BatchStatisticsQuery
Query.asc()
or Query.desc()
.orderById
in interface BatchStatisticsQuery
public BatchStatisticsQuery orderByTenantId()
BatchStatisticsQuery
Query.asc()
or Query.desc()
.orderByTenantId
in interface BatchStatisticsQuery
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractQuery<BatchStatisticsQuery,BatchStatistics>
public List<BatchStatistics> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractQuery<BatchStatisticsQuery,BatchStatistics>
page
- used if the results must be paged. If null, no paging will be applied.Copyright © 2021. All rights reserved.