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.ResultType
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BatchServiceConfiguration
protected String
protected Collection<String>
protected Date
protected Date
protected Date
protected Date
protected String
protected String
protected String
protected String
protected String
protected String
protected boolean
Fields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutor
Fields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, 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.void
delete()
Delete all instances that match the query.void
Deprecated.long
executeCount
(CommandContext commandContext) protected void
executeDelete
(CommandContext commandContext) executeList
(CommandContext commandContext) Executes the actual query to retrieve the list of results.getId()
boolean
Order 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, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult
Methods 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, setMaxResults, setNullHandlingColumn, setParameter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:BatchQuery
Only select batches with the given id- Specified by:
batchId
in interfaceBatchQuery
-
batchType
Description copied from interface:BatchQuery
Only select batches which exist for the given type.- Specified by:
batchType
in interfaceBatchQuery
-
batchTypes
Description copied from interface:BatchQuery
Only select batches which exist for the given types.- Specified by:
batchTypes
in interfaceBatchQuery
-
searchKey
Description copied from interface:BatchQuery
Only select batches which exist for the given search key.- Specified by:
searchKey
in interfaceBatchQuery
-
searchKey2
Description copied from interface:BatchQuery
Only select batches which exist for the given search key.- Specified by:
searchKey2
in interfaceBatchQuery
-
createTimeHigherThan
Description copied from interface:BatchQuery
Only select batches where the create time is higher then the given date.- Specified by:
createTimeHigherThan
in interfaceBatchQuery
-
createTimeLowerThan
Description copied from interface:BatchQuery
Only select batches where the create time is lower than the given date.- Specified by:
createTimeLowerThan
in interfaceBatchQuery
-
completeTimeHigherThan
Description copied from interface:BatchQuery
Only select batches where the complete time is higher then the given date.- Specified by:
completeTimeHigherThan
in interfaceBatchQuery
-
completeTimeLowerThan
Description copied from interface:BatchQuery
Only select batches where the complete time is lower than the given date.- Specified by:
completeTimeLowerThan
in interfaceBatchQuery
-
status
Description copied from interface:BatchQuery
Only select batches which exist for the given status.- Specified by:
status
in interfaceBatchQuery
-
tenantId
Description copied from interface:BatchQuery
Only select batches which exist for the given tenant id.- Specified by:
tenantId
in interfaceBatchQuery
-
tenantIdLike
Description copied from interface:BatchQuery
Only select batches with a tenant id like the given one.- Specified by:
tenantIdLike
in interfaceBatchQuery
-
withoutTenantId
Description copied from interface:BatchQuery
Only select batches that do not have a tenant id.- Specified by:
withoutTenantId
in interfaceBatchQuery
-
orderByBatchCreateTime
Description copied from interface:BatchQuery
Order by batch create time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByBatchCreateTime
in interfaceBatchQuery
-
orderByBatchId
Description copied from interface:BatchQuery
Order by batch id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByBatchId
in interfaceBatchQuery
-
orderByBatchTenantId
Description copied from interface:BatchQuery
Order by batch create time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByBatchTenantId
in interfaceBatchQuery
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<BatchQuery,
Batch>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<BatchQuery,
Batch>
-
delete
public void delete()Description copied from interface:DeleteQuery
Delete all instances that match the query.- Specified by:
delete
in interfaceDeleteQuery<BatchQuery,
Batch>
-
executeDelete
-
deleteWithRelatedData
Deprecated.Description copied from interface:DeleteQuery
Delete 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:
deleteWithRelatedData
in interfaceDeleteQuery<BatchQuery,
Batch>
-
getId
- Specified by:
getId
in interfaceCacheAwareQuery<BatchEntity>
-
getBatchType
-
getBatchTypes
-
getSearchKey
-
getSearchKey2
-
getCreateTimeHigherThan
-
getCreateTimeLowerThan
-
getStatus
-
getTenantId
-
getTenantIdLike
-
isWithoutTenantId
public boolean isWithoutTenantId()
-