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:
java.io.Serializable
,HistoricBatchQuery
,Command<java.lang.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 java.lang.String
batchId
protected java.lang.Boolean
completed
protected boolean
isTenantIdSet
protected java.lang.String[]
tenantIds
protected java.lang.String
type
-
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 HistoricBatchQuery
batchId(java.lang.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)
java.util.List<HistoricBatch>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.java.lang.String
getBatchId()
java.lang.String[]
getTenantIds()
java.lang.String
getType()
boolean
isTenantIdSet()
HistoricBatchQuery
orderByEndTime()
Returns historic batches sorted by end time; must be followed by an invocation ofQuery.asc()
orQuery.desc()
.HistoricBatchQuery
orderById()
Returns historic batches sorted by id; must be followed by an invocation ofQuery.asc()
orQuery.desc()
.HistoricBatchQuery
orderByStartTime()
Returns historic batches sorted by start time; must be followed by an invocation ofQuery.asc()
orQuery.desc()
.HistoricBatchQuery
orderByTenantId()
Returns historic batches sorted by tenant id; must be followed by an invocation ofQuery.asc()
orQuery.desc()
.HistoricBatchQuery
tenantIdIn(java.lang.String... tenantIds)
Only selects historic batches with one of the given tenant ids.HistoricBatchQuery
type(java.lang.String type)
Only select historic batches of the given type.HistoricBatchQuery
withoutTenantId()
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(java.lang.String batchId)
Description copied from interface:HistoricBatchQuery
Only select historic batch instances for the given batch id.- Specified by:
batchId
in interfaceHistoricBatchQuery
-
getBatchId
public java.lang.String getBatchId()
-
type
public HistoricBatchQuery type(java.lang.String type)
Description copied from interface:HistoricBatchQuery
Only select historic batches of the given type.- Specified by:
type
in interfaceHistoricBatchQuery
-
completed
public HistoricBatchQuery completed(boolean completed)
Description copied from interface:HistoricBatchQuery
Only select historic batches which are completed or not.- Specified by:
completed
in interfaceHistoricBatchQuery
-
tenantIdIn
public HistoricBatchQuery tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:HistoricBatchQuery
Only selects historic batches with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceHistoricBatchQuery
-
getTenantIds
public java.lang.String[] getTenantIds()
-
isTenantIdSet
public boolean isTenantIdSet()
-
withoutTenantId
public HistoricBatchQuery withoutTenantId()
Description copied from interface:HistoricBatchQuery
Only selects historic batches which have no tenant id.- Specified by:
withoutTenantId
in interfaceHistoricBatchQuery
-
getType
public java.lang.String getType()
-
orderById
public HistoricBatchQuery orderById()
Description copied from interface:HistoricBatchQuery
Returns historic batches sorted by id; must be followed by an invocation ofQuery.asc()
orQuery.desc()
.- Specified by:
orderById
in interfaceHistoricBatchQuery
-
orderByStartTime
public HistoricBatchQuery orderByStartTime()
Description copied from interface:HistoricBatchQuery
Returns historic batches sorted by start time; must be followed by an invocation ofQuery.asc()
orQuery.desc()
.- Specified by:
orderByStartTime
in interfaceHistoricBatchQuery
-
orderByEndTime
public HistoricBatchQuery orderByEndTime()
Description copied from interface:HistoricBatchQuery
Returns historic batches sorted by end time; must be followed by an invocation ofQuery.asc()
orQuery.desc()
.- Specified by:
orderByEndTime
in interfaceHistoricBatchQuery
-
orderByTenantId
public HistoricBatchQuery orderByTenantId()
Description copied from interface:HistoricBatchQuery
Returns historic batches sorted by tenant id; must be followed by an invocation ofQuery.asc()
orQuery.desc()
.- Specified by:
orderByTenantId
in interfaceHistoricBatchQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<HistoricBatchQuery,HistoricBatch>
-
executeList
public java.util.List<HistoricBatch> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<HistoricBatchQuery,HistoricBatch>
page
- used if the results must be paged. If null, no paging will be applied.
-
-