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, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
authCheck, 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, 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 isTenantIdSet
protected String[] tenantIds
protected SuspensionState suspensionState
public BatchQueryImpl(CommandExecutor commandExecutor)
public BatchQuery batchId(String batchId)
BatchQuery
batchId
in interface BatchQuery
public String getBatchId()
public BatchQuery type(String type)
BatchQuery
type
in interface BatchQuery
public String getType()
public BatchQuery tenantIdIn(String... tenantIds)
BatchQuery
tenantIdIn
in interface BatchQuery
public String[] getTenantIds()
public boolean isTenantIdSet()
public BatchQuery withoutTenantId()
BatchQuery
withoutTenantId
in interface BatchQuery
public BatchQuery active()
BatchQuery
active
in interface BatchQuery
public BatchQuery suspended()
BatchQuery
suspended
in interface BatchQuery
public SuspensionState getSuspensionState()
public BatchQuery orderById()
BatchQuery
Query.asc()
or Query.desc()
.orderById
in interface BatchQuery
public BatchQuery orderByTenantId()
BatchQuery
Query.asc()
or Query.desc()
.orderByTenantId
in interface BatchQuery
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractQuery<BatchQuery,Batch>
public List<Batch> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractQuery<BatchQuery,Batch>
page
- used if the results must be paged. If null, no paging will be applied.Copyright © 2018. All rights reserved.