Class HistoricBatchQueryImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<HistoricBatchQuery,HistoricBatch>
-
- org.camunda.bpm.engine.impl.batch.history.HistoricBatchQueryImpl
-
- All Implemented Interfaces:
Serializable,HistoricBatchQuery,Command<Object>,Query<HistoricBatchQuery,HistoricBatch>
public class HistoricBatchQueryImpl extends AbstractQuery<HistoricBatchQuery,HistoricBatch> implements HistoricBatchQuery
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected StringbatchIdprotected Booleancompletedprotected booleanisTenantIdSetprotected String[]tenantIdsprotected Stringtype-
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
-
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
-
-
Constructor Summary
Constructors Constructor Description HistoricBatchQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistoricBatchQuerybatchId(String batchId)Only select historic batch instances for the given batch id.HistoricBatchQuerycompleted(boolean completed)Only select historic batches which are completed or not.longexecuteCount(CommandContext commandContext)List<HistoricBatch>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.StringgetBatchId()String[]getTenantIds()StringgetType()booleanisTenantIdSet()HistoricBatchQueryorderByEndTime()Returns historic batches sorted by end time; must be followed by an invocation ofQuery.asc()orQuery.desc().HistoricBatchQueryorderById()Returns historic batches sorted by id; must be followed by an invocation ofQuery.asc()orQuery.desc().HistoricBatchQueryorderByStartTime()Returns historic batches sorted by start time; must be followed by an invocation ofQuery.asc()orQuery.desc().HistoricBatchQueryorderByTenantId()Returns historic batches sorted by tenant id; must be followed by an invocation ofQuery.asc()orQuery.desc().HistoricBatchQuerytenantIdIn(String... tenantIds)Only selects historic batches with one of the given tenant ids.HistoricBatchQuerytype(String type)Only select historic batches of the given type.HistoricBatchQuerywithoutTenantId()Only selects historic batches which have no tenant id.-
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
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
-
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
-
-
-
Constructor Detail
-
HistoricBatchQueryImpl
public HistoricBatchQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
batchId
public HistoricBatchQuery batchId(String batchId)
Description copied from interface:HistoricBatchQueryOnly select historic batch instances for the given batch id.- Specified by:
batchIdin interfaceHistoricBatchQuery
-
getBatchId
public String getBatchId()
-
type
public HistoricBatchQuery type(String type)
Description copied from interface:HistoricBatchQueryOnly select historic batches of the given type.- Specified by:
typein interfaceHistoricBatchQuery
-
completed
public HistoricBatchQuery completed(boolean completed)
Description copied from interface:HistoricBatchQueryOnly select historic batches which are completed or not.- Specified by:
completedin interfaceHistoricBatchQuery
-
tenantIdIn
public HistoricBatchQuery tenantIdIn(String... tenantIds)
Description copied from interface:HistoricBatchQueryOnly selects historic batches with one of the given tenant ids.- Specified by:
tenantIdInin interfaceHistoricBatchQuery
-
getTenantIds
public String[] getTenantIds()
-
isTenantIdSet
public boolean isTenantIdSet()
-
withoutTenantId
public HistoricBatchQuery withoutTenantId()
Description copied from interface:HistoricBatchQueryOnly selects historic batches which have no tenant id.- Specified by:
withoutTenantIdin interfaceHistoricBatchQuery
-
getType
public String getType()
-
orderById
public HistoricBatchQuery orderById()
Description copied from interface:HistoricBatchQueryReturns historic batches sorted by id; must be followed by an invocation ofQuery.asc()orQuery.desc().- Specified by:
orderByIdin interfaceHistoricBatchQuery
-
orderByStartTime
public HistoricBatchQuery orderByStartTime()
Description copied from interface:HistoricBatchQueryReturns historic batches sorted by start time; must be followed by an invocation ofQuery.asc()orQuery.desc().- Specified by:
orderByStartTimein interfaceHistoricBatchQuery
-
orderByEndTime
public HistoricBatchQuery orderByEndTime()
Description copied from interface:HistoricBatchQueryReturns historic batches sorted by end time; must be followed by an invocation ofQuery.asc()orQuery.desc().- Specified by:
orderByEndTimein interfaceHistoricBatchQuery
-
orderByTenantId
public HistoricBatchQuery orderByTenantId()
Description copied from interface:HistoricBatchQueryReturns historic batches sorted by tenant id; must be followed by an invocation ofQuery.asc()orQuery.desc().- Specified by:
orderByTenantIdin interfaceHistoricBatchQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<HistoricBatchQuery,HistoricBatch>
-
executeList
public List<HistoricBatch> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<HistoricBatchQuery,HistoricBatch>page- used if the results must be paged. If null, no paging will be applied.
-
-