public class BatchQueryImpl extends AbstractQuery<BatchQuery,Batch> implements BatchQuery
AbstractQuery.ResultType| Modifier and Type | Field and Description |
|---|---|
protected String |
batchId |
protected boolean |
isTenantIdSet |
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 |
|---|
BatchQueryImpl(CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
BatchQuery |
active()
Only selects batches which are active
|
BatchQuery |
batchId(String batchId)
Only select batch instances for the given batch id.
|
long |
executeCount(CommandContext commandContext) |
List<Batch> |
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() |
BatchQuery |
orderById()
Returns batches sorted by id; must be followed by an invocation of
Query.asc() or Query.desc(). |
BatchQuery |
orderByTenantId()
Returns batches sorted by tenant id; must be followed by an invocation of
Query.asc() or Query.desc(). |
BatchQuery |
suspended()
Only selects batches which are suspended
|
BatchQuery |
tenantIdIn(String... tenantIds)
Only selects batches with one of the given tenant ids.
|
BatchQuery |
type(String type)
Only select batches of the given type.
|
BatchQuery |
withoutTenantId()
Only selects batches which have no tenant id.
|
addExpression, addValidator, asc, checkMaxResultsLimit, checkQueryOk, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeIdsList, executeResult, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, list, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unboundedResultList, validate, validategetAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheckprotected String batchId
protected String type
protected boolean isTenantIdSet
protected String[] tenantIds
protected SuspensionState suspensionState
public BatchQueryImpl(CommandExecutor commandExecutor)
public BatchQuery batchId(String batchId)
BatchQuerybatchId in interface BatchQuerypublic String getBatchId()
public BatchQuery type(String type)
BatchQuerytype in interface BatchQuerypublic String getType()
public BatchQuery tenantIdIn(String... tenantIds)
BatchQuerytenantIdIn in interface BatchQuerypublic String[] getTenantIds()
public boolean isTenantIdSet()
public BatchQuery withoutTenantId()
BatchQuerywithoutTenantId in interface BatchQuerypublic BatchQuery active()
BatchQueryactive in interface BatchQuerypublic BatchQuery suspended()
BatchQuerysuspended in interface BatchQuerypublic SuspensionState getSuspensionState()
public BatchQuery orderById()
BatchQueryQuery.asc() or Query.desc().orderById in interface BatchQuerypublic BatchQuery orderByTenantId()
BatchQueryQuery.asc() or Query.desc().orderByTenantId in interface BatchQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractQuery<BatchQuery,Batch>public List<Batch> executeList(CommandContext commandContext, Page page)
AbstractQueryexecuteList in class AbstractQuery<BatchQuery,Batch>page - used if the results must be paged. If null, no paging will be applied.Copyright © 2020. All rights reserved.