public class HistoricBatchQueryImpl extends AbstractQuery<HistoricBatchQuery,HistoricBatch> implements HistoricBatchQuery
AbstractQuery.ResultType
Modifier and Type | Field and Description |
---|---|
protected String |
batchId |
protected Boolean |
completed |
protected boolean |
isTenantIdSet |
protected String[] |
tenantIds |
protected String |
type |
commandExecutor, expressions, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
Constructor and Description |
---|
HistoricBatchQueryImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
HistoricBatchQuery |
batchId(String batchId)
Only select historic batch instances for the given batch id.
|
HistoricBatchQuery |
completed(boolean completed)
Only select historic batches which are completed or not.
|
long |
executeCount(CommandContext commandContext) |
List<HistoricBatch> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
String |
getBatchId() |
String[] |
getTenantIds() |
String |
getType() |
boolean |
isTenantIdSet() |
HistoricBatchQuery |
orderByEndTime()
Returns historic batches sorted by end time; must be followed by an invocation of
Query.asc() or Query.desc() . |
HistoricBatchQuery |
orderById()
Returns historic batches sorted by id; must be followed by an invocation of
Query.asc() or Query.desc() . |
HistoricBatchQuery |
orderByStartTime()
Returns historic batches sorted by start time; must be followed by an invocation of
Query.asc() or Query.desc() . |
HistoricBatchQuery |
orderByTenantId()
Returns historic batches sorted by tenant id; must be followed by an invocation of
Query.asc() or Query.desc() . |
HistoricBatchQuery |
tenantIdIn(String... tenantIds)
Only selects historic batches with one of the given tenant ids.
|
HistoricBatchQuery |
type(String type)
Only select historic batches of the given type.
|
HistoricBatchQuery |
withoutTenantId()
Only selects historic batches which have no tenant id.
|
addExpression, addValidator, asc, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeIdsList, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, list, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, validate, validate
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
protected String batchId
protected String type
protected Boolean completed
protected boolean isTenantIdSet
protected String[] tenantIds
public HistoricBatchQueryImpl(CommandExecutor commandExecutor)
public HistoricBatchQuery batchId(String batchId)
HistoricBatchQuery
batchId
in interface HistoricBatchQuery
public String getBatchId()
public HistoricBatchQuery type(String type)
HistoricBatchQuery
type
in interface HistoricBatchQuery
public HistoricBatchQuery completed(boolean completed)
HistoricBatchQuery
completed
in interface HistoricBatchQuery
public HistoricBatchQuery tenantIdIn(String... tenantIds)
HistoricBatchQuery
tenantIdIn
in interface HistoricBatchQuery
public String[] getTenantIds()
public boolean isTenantIdSet()
public HistoricBatchQuery withoutTenantId()
HistoricBatchQuery
withoutTenantId
in interface HistoricBatchQuery
public String getType()
public HistoricBatchQuery orderById()
HistoricBatchQuery
Query.asc()
or Query.desc()
.orderById
in interface HistoricBatchQuery
public HistoricBatchQuery orderByStartTime()
HistoricBatchQuery
Query.asc()
or Query.desc()
.orderByStartTime
in interface HistoricBatchQuery
public HistoricBatchQuery orderByEndTime()
HistoricBatchQuery
Query.asc()
or Query.desc()
.orderByEndTime
in interface HistoricBatchQuery
public HistoricBatchQuery orderByTenantId()
HistoricBatchQuery
Query.asc()
or Query.desc()
.orderByTenantId
in interface HistoricBatchQuery
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractQuery<HistoricBatchQuery,HistoricBatch>
public List<HistoricBatch> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractQuery<HistoricBatchQuery,HistoricBatch>
page
- used if the results must be paged. If null, no paging will be applied.Copyright © 2017. All rights reserved.