Package org.flowable.batch.service.impl
Class BatchQueryImpl
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<BatchQuery,Batch>
org.flowable.batch.service.impl.BatchQueryImpl
- All Implemented Interfaces:
Serializable,BatchQuery,CacheAwareQuery<BatchEntity>,DeleteQuery<BatchQuery,,Batch> Query<BatchQuery,,Batch> Command<Object>
public class BatchQueryImpl
extends AbstractQuery<BatchQuery,Batch>
implements BatchQuery, CacheAwareQuery<BatchEntity>, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultTypeNested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BatchServiceConfigurationprotected Stringprotected Collection<String>protected Dateprotected Dateprotected Dateprotected Dateprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanFields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutorFields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, ignoreOrderBy, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC -
Constructor Summary
ConstructorsConstructorDescriptionBatchQueryImpl(CommandContext commandContext, BatchServiceConfiguration batchServiceConfiguration) BatchQueryImpl(CommandExecutor commandExecutor, BatchServiceConfiguration batchServiceConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionOnly select batches with the given idOnly select batches which exist for the given type.batchTypes(Collection<String> batchTypes) Only select batches which exist for the given types.completeTimeHigherThan(Date date) Only select batches where the complete time is higher then the given date.completeTimeLowerThan(Date date) Only select batches where the complete time is lower than the given date.createTimeHigherThan(Date date) Only select batches where the create time is higher then the given date.createTimeLowerThan(Date date) Only select batches where the create time is lower than the given date.voiddelete()Delete all instances that match the query.voidDeprecated.longexecuteCount(CommandContext commandContext) protected voidexecuteDelete(CommandContext commandContext) executeList(CommandContext commandContext) Executes the actual query to retrieve the list of results.getId()booleanOrder by batch create time (needs to be followed byQuery.asc()orQuery.desc()).Order by batch id (needs to be followed byQuery.asc()orQuery.desc()).Order by batch create time (needs to be followed byQuery.asc()orQuery.desc()).Only select batches which exist for the given search key.searchKey2(String searchKey) Only select batches which exist for the given search key.Only select batches which exist for the given status.Only select batches which exist for the given tenant id.tenantIdLike(String tenantIdLike) Only select batches with a tenant id like the given one.Only select batches that do not have a tenant id.Methods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getSafeList, list, listPage, orderBy, orderBy, setCommandExecutor, singleResultMethods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setIgnoreOrderBy, setMaxResults, setNullHandlingColumn, setParameterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.common.engine.api.query.CacheAwareQuery
enhanceCachedValue
-
Field Details
-
batchServiceConfiguration
-
id
-
batchType
-
batchTypes
-
searchKey
-
searchKey2
-
createTimeHigherThan
-
createTimeLowerThan
-
completeTimeHigherThan
-
completeTimeLowerThan
-
status
-
tenantId
-
tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
-
Constructor Details
-
BatchQueryImpl
public BatchQueryImpl() -
BatchQueryImpl
public BatchQueryImpl(CommandContext commandContext, BatchServiceConfiguration batchServiceConfiguration) -
BatchQueryImpl
public BatchQueryImpl(CommandExecutor commandExecutor, BatchServiceConfiguration batchServiceConfiguration)
-
-
Method Details
-
batchId
Description copied from interface:BatchQueryOnly select batches with the given id- Specified by:
batchIdin interfaceBatchQuery
-
batchType
Description copied from interface:BatchQueryOnly select batches which exist for the given type.- Specified by:
batchTypein interfaceBatchQuery
-
batchTypes
Description copied from interface:BatchQueryOnly select batches which exist for the given types.- Specified by:
batchTypesin interfaceBatchQuery
-
searchKey
Description copied from interface:BatchQueryOnly select batches which exist for the given search key.- Specified by:
searchKeyin interfaceBatchQuery
-
searchKey2
Description copied from interface:BatchQueryOnly select batches which exist for the given search key.- Specified by:
searchKey2in interfaceBatchQuery
-
createTimeHigherThan
Description copied from interface:BatchQueryOnly select batches where the create time is higher then the given date.- Specified by:
createTimeHigherThanin interfaceBatchQuery
-
createTimeLowerThan
Description copied from interface:BatchQueryOnly select batches where the create time is lower than the given date.- Specified by:
createTimeLowerThanin interfaceBatchQuery
-
completeTimeHigherThan
Description copied from interface:BatchQueryOnly select batches where the complete time is higher then the given date.- Specified by:
completeTimeHigherThanin interfaceBatchQuery
-
completeTimeLowerThan
Description copied from interface:BatchQueryOnly select batches where the complete time is lower than the given date.- Specified by:
completeTimeLowerThanin interfaceBatchQuery
-
status
Description copied from interface:BatchQueryOnly select batches which exist for the given status.- Specified by:
statusin interfaceBatchQuery
-
tenantId
Description copied from interface:BatchQueryOnly select batches which exist for the given tenant id.- Specified by:
tenantIdin interfaceBatchQuery
-
tenantIdLike
Description copied from interface:BatchQueryOnly select batches with a tenant id like the given one.- Specified by:
tenantIdLikein interfaceBatchQuery
-
withoutTenantId
Description copied from interface:BatchQueryOnly select batches that do not have a tenant id.- Specified by:
withoutTenantIdin interfaceBatchQuery
-
orderByBatchCreateTime
Description copied from interface:BatchQueryOrder by batch create time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByBatchCreateTimein interfaceBatchQuery
-
orderByBatchId
Description copied from interface:BatchQueryOrder by batch id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByBatchIdin interfaceBatchQuery
-
orderByBatchTenantId
Description copied from interface:BatchQueryOrder by batch create time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByBatchTenantIdin interfaceBatchQuery
-
executeCount
- Specified by:
executeCountin classAbstractQuery<BatchQuery,Batch>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<BatchQuery,Batch>
-
delete
public void delete()Description copied from interface:DeleteQueryDelete all instances that match the query.- Specified by:
deletein interfaceDeleteQuery<BatchQuery,Batch>
-
executeDelete
-
deleteWithRelatedData
Deprecated.Description copied from interface:DeleteQueryDelete all instances and their related data that match the query in bulk. Note that only the historical data directly related to the instance will be deleted. This means that for example for historic case/process instances, it will not delete any associated historic case/process instance (these should be deleted through the respective deletion for the particular model) which is owned by another engine (e.g. a process for the cmmn engine). Use the specific deletion methods on the respective history services otherwise: they delete with cascading to all other engines, but are not as performant as the bulk delete here.- Specified by:
deleteWithRelatedDatain interfaceDeleteQuery<BatchQuery,Batch>
-
getId
- Specified by:
getIdin interfaceCacheAwareQuery<BatchEntity>
-
getBatchType
-
getBatchTypes
-
getSearchKey
-
getSearchKey2
-
getCreateTimeHigherThan
-
getCreateTimeLowerThan
-
getStatus
-
getTenantId
-
getTenantIdLike
-
isWithoutTenantId
public boolean isWithoutTenantId()
-