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, validatorsauthCheck, 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, validategetAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheckprotected String batchId
protected String type
protected Boolean completed
protected boolean isTenantIdSet
protected String[] tenantIds
public HistoricBatchQueryImpl(CommandExecutor commandExecutor)
public HistoricBatchQuery batchId(String batchId)
HistoricBatchQuerybatchId in interface HistoricBatchQuerypublic String getBatchId()
public HistoricBatchQuery type(String type)
HistoricBatchQuerytype in interface HistoricBatchQuerypublic HistoricBatchQuery completed(boolean completed)
HistoricBatchQuerycompleted in interface HistoricBatchQuerypublic HistoricBatchQuery tenantIdIn(String... tenantIds)
HistoricBatchQuerytenantIdIn in interface HistoricBatchQuerypublic String[] getTenantIds()
public boolean isTenantIdSet()
public HistoricBatchQuery withoutTenantId()
HistoricBatchQuerywithoutTenantId in interface HistoricBatchQuerypublic String getType()
public HistoricBatchQuery orderById()
HistoricBatchQueryQuery.asc() or Query.desc().orderById in interface HistoricBatchQuerypublic HistoricBatchQuery orderByStartTime()
HistoricBatchQueryQuery.asc() or Query.desc().orderByStartTime in interface HistoricBatchQuerypublic HistoricBatchQuery orderByEndTime()
HistoricBatchQueryQuery.asc() or Query.desc().orderByEndTime in interface HistoricBatchQuerypublic HistoricBatchQuery orderByTenantId()
HistoricBatchQueryQuery.asc() or Query.desc().orderByTenantId in interface HistoricBatchQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractQuery<HistoricBatchQuery,HistoricBatch>public List<HistoricBatch> executeList(CommandContext commandContext, Page page)
AbstractQueryexecuteList in class AbstractQuery<HistoricBatchQuery,HistoricBatch>page - used if the results must be paged. If null, no paging will be applied.Copyright © 2018 camunda services GmbH. All rights reserved.