Package org.flowable.dmn.engine.impl
Class HistoricDecisionExecutionQueryImpl
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<DmnHistoricDecisionExecutionQuery,DmnHistoricDecisionExecution>
org.flowable.dmn.engine.impl.HistoricDecisionExecutionQueryImpl
- All Implemented Interfaces:
Serializable
,CacheAwareQuery<HistoricDecisionExecutionEntity>
,DeleteQuery<DmnHistoricDecisionExecutionQuery,
,DmnHistoricDecisionExecution> Query<DmnHistoricDecisionExecutionQuery,
,DmnHistoricDecisionExecution> Command<Object>
,DmnHistoricDecisionExecutionQuery
public class HistoricDecisionExecutionQueryImpl
extends AbstractQuery<DmnHistoricDecisionExecutionQuery,DmnHistoricDecisionExecution>
implements DmnHistoricDecisionExecutionQuery, CacheAwareQuery<HistoricDecisionExecutionEntity>
- Author:
- Tijs Rademakers
- 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 String
protected String
protected String
protected String
protected String
protected String
protected Boolean
protected String
protected String
protected String
protected String
protected String
protected String
protected boolean
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
ConstructorsConstructorDescriptionHistoricDecisionExecutionQueryImpl
(CommandContext commandContext) HistoricDecisionExecutionQueryImpl
(CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionactivityId
(String activityId) Only select decision executions with the given activity id.caseInstanceIdWithChildren
(String caseInstanceId) Select all decision executions for the given case instance id and its children.decisionDefinitionId
(String decisionDefinitionId) Only select decision executions with the given definition id.decisionKey
(String decisionKey) Only select decision executions with the given definition key.void
delete()
Delete all instances that match the query.void
Deprecated.deploymentId
(String deploymentId) Only select decision executions with the given deployment id.long
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext) Executes the actual query to retrieve the list of results.executionId
(String executionId) Only select decision executions with the given execution id.Only select decision executions with the given failed state.getId()
getIds()
Only select decision execution with the given id.Only select decision executions with the given ids.instanceId
(String instanceId) Only select decision executions with the given instance id.boolean
boolean
Order by the end time of the decision executions (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the start time of the decision executions (needs to be followed byQuery.asc()
orQuery.desc()
).Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).processInstanceIdWithChildren
(String processInstanceId) Select all decision executions for the given process instance id and its children.Only select decision executions with the given scope type.Only select decision executions that have the given tenant id.tenantIdLike
(String tenantIdLike) Only select decision executions with a tenant id like the given one.Only select decision executions without a scope type.Only select decision executions 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
-
id
-
ids
-
decisionDefinitionId
-
deploymentId
-
decisionKey
-
instanceId
-
executionId
-
activityId
-
scopeType
-
withoutScopeType
protected boolean withoutScopeType -
processInstanceIdWithChildren
-
caseInstanceIdWithChildren
-
failed
-
tenantId
-
tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
-
Constructor Details
-
HistoricDecisionExecutionQueryImpl
public HistoricDecisionExecutionQueryImpl() -
HistoricDecisionExecutionQueryImpl
-
HistoricDecisionExecutionQueryImpl
-
-
Method Details
-
id
Description copied from interface:DmnHistoricDecisionExecutionQuery
Only select decision execution with the given id.- Specified by:
id
in interfaceDmnHistoricDecisionExecutionQuery
-
ids
Description copied from interface:DmnHistoricDecisionExecutionQuery
Only select decision executions with the given ids.- Specified by:
ids
in interfaceDmnHistoricDecisionExecutionQuery
-
decisionDefinitionId
Description copied from interface:DmnHistoricDecisionExecutionQuery
Only select decision executions with the given definition id.- Specified by:
decisionDefinitionId
in interfaceDmnHistoricDecisionExecutionQuery
-
deploymentId
Description copied from interface:DmnHistoricDecisionExecutionQuery
Only select decision executions with the given deployment id.- Specified by:
deploymentId
in interfaceDmnHistoricDecisionExecutionQuery
-
decisionKey
Description copied from interface:DmnHistoricDecisionExecutionQuery
Only select decision executions with the given definition key.- Specified by:
decisionKey
in interfaceDmnHistoricDecisionExecutionQuery
-
instanceId
Description copied from interface:DmnHistoricDecisionExecutionQuery
Only select decision executions with the given instance id.- Specified by:
instanceId
in interfaceDmnHistoricDecisionExecutionQuery
-
executionId
Description copied from interface:DmnHistoricDecisionExecutionQuery
Only select decision executions with the given execution id.- Specified by:
executionId
in interfaceDmnHistoricDecisionExecutionQuery
-
activityId
Description copied from interface:DmnHistoricDecisionExecutionQuery
Only select decision executions with the given activity id.- Specified by:
activityId
in interfaceDmnHistoricDecisionExecutionQuery
-
scopeType
Description copied from interface:DmnHistoricDecisionExecutionQuery
Only select decision executions with the given scope type.- Specified by:
scopeType
in interfaceDmnHistoricDecisionExecutionQuery
-
withoutScopeType
Description copied from interface:DmnHistoricDecisionExecutionQuery
Only select decision executions without a scope type.- Specified by:
withoutScopeType
in interfaceDmnHistoricDecisionExecutionQuery
-
processInstanceIdWithChildren
Description copied from interface:DmnHistoricDecisionExecutionQuery
Select all decision executions for the given process instance id and its children.- Specified by:
processInstanceIdWithChildren
in interfaceDmnHistoricDecisionExecutionQuery
-
caseInstanceIdWithChildren
Description copied from interface:DmnHistoricDecisionExecutionQuery
Select all decision executions for the given case instance id and its children.- Specified by:
caseInstanceIdWithChildren
in interfaceDmnHistoricDecisionExecutionQuery
-
failed
Description copied from interface:DmnHistoricDecisionExecutionQuery
Only select decision executions with the given failed state.- Specified by:
failed
in interfaceDmnHistoricDecisionExecutionQuery
-
tenantId
Description copied from interface:DmnHistoricDecisionExecutionQuery
Only select decision executions that have the given tenant id.- Specified by:
tenantId
in interfaceDmnHistoricDecisionExecutionQuery
-
tenantIdLike
Description copied from interface:DmnHistoricDecisionExecutionQuery
Only select decision executions with a tenant id like the given one.- Specified by:
tenantIdLike
in interfaceDmnHistoricDecisionExecutionQuery
-
withoutTenantId
Description copied from interface:DmnHistoricDecisionExecutionQuery
Only select decision executions that do not have a tenant id.- Specified by:
withoutTenantId
in interfaceDmnHistoricDecisionExecutionQuery
-
orderByStartTime
Description copied from interface:DmnHistoricDecisionExecutionQuery
Order by the start time of the decision executions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByStartTime
in interfaceDmnHistoricDecisionExecutionQuery
-
orderByEndTime
Description copied from interface:DmnHistoricDecisionExecutionQuery
Order by the end time of the decision executions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByEndTime
in interfaceDmnHistoricDecisionExecutionQuery
-
orderByTenantId
Description copied from interface:DmnHistoricDecisionExecutionQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTenantId
in interfaceDmnHistoricDecisionExecutionQuery
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<DmnHistoricDecisionExecutionQuery,
DmnHistoricDecisionExecution>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<DmnHistoricDecisionExecutionQuery,
DmnHistoricDecisionExecution>
-
delete
public void delete()Description copied from interface:DeleteQuery
Delete all instances that match the query.- Specified by:
delete
in interfaceDeleteQuery<DmnHistoricDecisionExecutionQuery,
DmnHistoricDecisionExecution>
-
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<DmnHistoricDecisionExecutionQuery,
DmnHistoricDecisionExecution>
-
getId
- Specified by:
getId
in interfaceCacheAwareQuery<HistoricDecisionExecutionEntity>
-
getIds
-
getDecisionDefinitionId
-
getDeploymentId
-
getDecisionKey
-
getInstanceId
-
getExecutionId
-
getActivityId
-
getScopeType
-
isWithoutScopeType
public boolean isWithoutScopeType() -
getProcessInstanceIdWithChildren
-
getCaseInstanceIdWithChildren
-
getFailed
-
getTenantId
-
getTenantIdLike
-
isWithoutTenantId
public boolean isWithoutTenantId()
-