Class BatchQueryImpl
- java.lang.Object
- 
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
- 
- org.camunda.bpm.engine.impl.AbstractQuery<BatchQuery,Batch>
- 
- org.camunda.bpm.engine.impl.batch.BatchQueryImpl
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- BatchQuery,- Command<java.lang.Object>,- Query<BatchQuery,Batch>
 
 public class BatchQueryImpl extends AbstractQuery<BatchQuery,Batch> implements BatchQuery - See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQueryAbstractQuery.ResultType
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringbatchIdprotected booleanisTenantIdSetprotected SuspensionStatesuspensionStateprotected java.lang.String[]tenantIdsprotected java.lang.Stringtype- 
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuerycommandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
 - 
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObjectauthCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
 
- 
 - 
Constructor SummaryConstructors Constructor Description BatchQueryImpl(CommandExecutor commandExecutor)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchQueryactive()Only selects batches which are activeBatchQuerybatchId(java.lang.String batchId)Only select batch instances for the given batch id.longexecuteCount(CommandContext commandContext)java.util.List<Batch>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.java.lang.StringgetBatchId()SuspensionStategetSuspensionState()java.lang.String[]getTenantIds()java.lang.StringgetType()booleanisTenantIdSet()BatchQueryorderById()Returns batches sorted by id; must be followed by an invocation ofQuery.asc()orQuery.desc().BatchQueryorderByTenantId()Returns batches sorted by tenant id; must be followed by an invocation ofQuery.asc()orQuery.desc().BatchQuerysuspended()Only selects batches which are suspendedBatchQuerytenantIdIn(java.lang.String... tenantIds)Only selects batches with one of the given tenant ids.BatchQuerytype(java.lang.String type)Only select batches of the given type.BatchQuerywithoutTenantId()Only selects batches which have no tenant id.- 
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQueryaddExpression, 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.ListQueryParameterObjectgetAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.CommandisRetryable
 - 
Methods inherited from interface org.camunda.bpm.engine.query.Queryasc, count, desc, list, listPage, singleResult, unlimitedList
 
- 
 
- 
- 
- 
Field Detail- 
batchIdprotected java.lang.String batchId 
 - 
typeprotected java.lang.String type 
 - 
isTenantIdSetprotected boolean isTenantIdSet 
 - 
tenantIdsprotected java.lang.String[] tenantIds 
 - 
suspensionStateprotected SuspensionState suspensionState 
 
- 
 - 
Constructor Detail- 
BatchQueryImplpublic BatchQueryImpl(CommandExecutor commandExecutor) 
 
- 
 - 
Method Detail- 
batchIdpublic BatchQuery batchId(java.lang.String batchId) Description copied from interface:BatchQueryOnly select batch instances for the given batch id.- Specified by:
- batchIdin interface- BatchQuery
 
 - 
getBatchIdpublic java.lang.String getBatchId() 
 - 
typepublic BatchQuery type(java.lang.String type) Description copied from interface:BatchQueryOnly select batches of the given type.- Specified by:
- typein interface- BatchQuery
 
 - 
getTypepublic java.lang.String getType() 
 - 
tenantIdInpublic BatchQuery tenantIdIn(java.lang.String... tenantIds) Description copied from interface:BatchQueryOnly selects batches with one of the given tenant ids.- Specified by:
- tenantIdInin interface- BatchQuery
 
 - 
getTenantIdspublic java.lang.String[] getTenantIds() 
 - 
isTenantIdSetpublic boolean isTenantIdSet() 
 - 
withoutTenantIdpublic BatchQuery withoutTenantId() Description copied from interface:BatchQueryOnly selects batches which have no tenant id.- Specified by:
- withoutTenantIdin interface- BatchQuery
 
 - 
activepublic BatchQuery active() Description copied from interface:BatchQueryOnly selects batches which are active- Specified by:
- activein interface- BatchQuery
 
 - 
suspendedpublic BatchQuery suspended() Description copied from interface:BatchQueryOnly selects batches which are suspended- Specified by:
- suspendedin interface- BatchQuery
 
 - 
getSuspensionStatepublic SuspensionState getSuspensionState() 
 - 
orderByIdpublic BatchQuery orderById() Description copied from interface:BatchQueryReturns batches sorted by id; must be followed by an invocation ofQuery.asc()orQuery.desc().- Specified by:
- orderByIdin interface- BatchQuery
 
 - 
orderByTenantIdpublic BatchQuery orderByTenantId() Description copied from interface:BatchQueryReturns batches sorted by tenant id; must be followed by an invocation ofQuery.asc()orQuery.desc().- Specified by:
- orderByTenantIdin interface- BatchQuery
 
 - 
executeCountpublic long executeCount(CommandContext commandContext) - Specified by:
- executeCountin class- AbstractQuery<BatchQuery,Batch>
 
 - 
executeListpublic java.util.List<Batch> executeList(CommandContext commandContext, Page page) Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
- executeListin class- AbstractQuery<BatchQuery,Batch>
- page- used if the results must be paged. If null, no paging will be applied.
 
 
- 
 
-