Package org.camunda.bpm.engine.impl
Class HistoricCaseActivityInstanceQueryImpl
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<HistoricCaseActivityInstanceQuery,HistoricCaseActivityInstance>
org.camunda.bpm.engine.impl.HistoricCaseActivityInstanceQueryImpl
- All Implemented Interfaces:
Serializable
,HistoricCaseActivityInstanceQuery
,Command<Object>
,Query<HistoricCaseActivityInstanceQuery,
HistoricCaseActivityInstance>
public class HistoricCaseActivityInstanceQueryImpl
extends AbstractQuery<HistoricCaseActivityInstanceQuery,HistoricCaseActivityInstance>
implements HistoricCaseActivityInstanceQuery
- Author:
- Sebastian Menski
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
Field Summary
Modifier and TypeFieldDescriptionprotected String[]
protected String[]
protected Integer
protected String
protected String
protected String
protected String
protected Date
protected Date
protected Boolean
protected Date
protected Date
protected boolean
protected Boolean
protected String[]
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
-
Method Summary
Modifier and TypeMethodDescriptionactive()
Only select historic case activity instances which are activeOnly select historic case activity instances which are availablecaseActivityId
(String caseActivityId) Only select historic case activity instances for the given case activity (id from CMMN 1.0 XML)caseActivityIdIn
(String... caseActivityIds) Only select historic case activity instances with one of the given case activity ids.caseActivityInstanceId
(String caseActivityInstanceId) Only select historic case activity instances with the given id (primary key within history tables).caseActivityInstanceIdIn
(String... caseActivityInstanceIds) Only select historic case activity instances with one of the given case activity instance ids.caseActivityName
(String caseActivityName) Only select historic case activity instances for activities with the given namecaseActivityType
(String caseActivityType) Only select historic case activity instances for activities with the given typecaseDefinitionId
(String caseDefinitionId) Only select historic case activity instances for the given case definitioncaseExecutionId
(String caseExecutionId) Only select historic case activity instances for the given case executioncaseInstanceId
(String caseInstanceId) Only select historic case activity instances with the given case instance.Only select historic case activity instances which are completedcreatedAfter
(Date date) Only select historic case activity instances that were created after the given date.createdBefore
(Date date) Only select historic case activity instances that were created before the given date.disabled()
Only select historic case activity instances which are disabledenabled()
Only select historic case activity instances which are enabledended()
Only select historic case activity instances which are already ended (ie.endedAfter
(Date date) Only select historic case activity instances that were ended (ie.endedBefore
(Date date) Only select historic case activity instances that were ended (ie.long
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.String[]
String[]
getEnded()
protected boolean
Whether or not the query has excluding conditions.boolean
notEnded()
Only select historic case activity instances which are not ended (ie.Order by caseActivityId (needs to be followed byQuery.asc()
orQuery.desc()
).Order by caseActivityName (needs to be followed byQuery.asc()
orQuery.desc()
).Order by caseActivityType (needs to be followed byQuery.asc()
orQuery.desc()
).Order by caseDefinitionId (needs to be followed byQuery.asc()
orQuery.desc()
).Order by caseExecutionId (needs to be followed byQuery.asc()
orQuery.desc()
).Order by caseInstanceId (needs to be followed byQuery.asc()
orQuery.desc()
).Order by create time (needs to be followed byQuery.asc()
orQuery.desc()
).Order by duration (needs to be followed byQuery.asc()
orQuery.desc()
).Order by end time (needs to be followed byQuery.asc()
orQuery.desc()
).Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).required()
Only select historic case activity instances which are required.tenantIdIn
(String... tenantIds) Only select historic case activity instances with one of the given tenant ids.Only select historic case activity instances which are terminatedOnly selects historic case activity instances that 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, 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
-
Field Details
-
caseActivityInstanceIds
-
caseActivityIds
-
caseInstanceId
-
caseDefinitionId
-
caseActivityName
-
caseActivityType
-
createdBefore
-
createdAfter
-
endedBefore
-
endedAfter
-
ended
-
caseActivityInstanceState
-
required
-
tenantIds
-
isTenantIdSet
protected boolean isTenantIdSet
-
-
Constructor Details
-
HistoricCaseActivityInstanceQueryImpl
public HistoricCaseActivityInstanceQueryImpl() -
HistoricCaseActivityInstanceQueryImpl
-
-
Method Details
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<HistoricCaseActivityInstanceQuery,
HistoricCaseActivityInstance>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<HistoricCaseActivityInstanceQuery,
HistoricCaseActivityInstance> page
- used if the results must be paged. If null, no paging will be applied.
-
caseActivityInstanceId
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances with the given id (primary key within history tables).- Specified by:
caseActivityInstanceId
in interfaceHistoricCaseActivityInstanceQuery
-
caseActivityInstanceIdIn
public HistoricCaseActivityInstanceQuery caseActivityInstanceIdIn(String... caseActivityInstanceIds) Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances with one of the given case activity instance ids.- Specified by:
caseActivityInstanceIdIn
in interfaceHistoricCaseActivityInstanceQuery
-
caseInstanceId
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances with the given case instance.- Specified by:
caseInstanceId
in interfaceHistoricCaseActivityInstanceQuery
-
caseDefinitionId
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances for the given case definition- Specified by:
caseDefinitionId
in interfaceHistoricCaseActivityInstanceQuery
-
caseExecutionId
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances for the given case execution- Specified by:
caseExecutionId
in interfaceHistoricCaseActivityInstanceQuery
-
caseActivityId
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances for the given case activity (id from CMMN 1.0 XML)- Specified by:
caseActivityId
in interfaceHistoricCaseActivityInstanceQuery
-
caseActivityIdIn
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances with one of the given case activity ids.- Specified by:
caseActivityIdIn
in interfaceHistoricCaseActivityInstanceQuery
-
caseActivityName
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances for activities with the given name- Specified by:
caseActivityName
in interfaceHistoricCaseActivityInstanceQuery
-
caseActivityType
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances for activities with the given type- Specified by:
caseActivityType
in interfaceHistoricCaseActivityInstanceQuery
-
createdBefore
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances that were created before the given date.- Specified by:
createdBefore
in interfaceHistoricCaseActivityInstanceQuery
-
createdAfter
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances that were created after the given date.- Specified by:
createdAfter
in interfaceHistoricCaseActivityInstanceQuery
-
endedBefore
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances that were ended (ie. completed or terminated) before the given date.- Specified by:
endedBefore
in interfaceHistoricCaseActivityInstanceQuery
-
endedAfter
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances that were ended (ie. completed or terminated) after the given date.- Specified by:
endedAfter
in interfaceHistoricCaseActivityInstanceQuery
-
required
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are required.- Specified by:
required
in interfaceHistoricCaseActivityInstanceQuery
-
ended
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are already ended (ie. completed or terminated).- Specified by:
ended
in interfaceHistoricCaseActivityInstanceQuery
-
notEnded
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are not ended (ie. completed or terminated).- Specified by:
notEnded
in interfaceHistoricCaseActivityInstanceQuery
-
available
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are available- Specified by:
available
in interfaceHistoricCaseActivityInstanceQuery
-
enabled
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are enabled- Specified by:
enabled
in interfaceHistoricCaseActivityInstanceQuery
-
disabled
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are disabled- Specified by:
disabled
in interfaceHistoricCaseActivityInstanceQuery
-
active
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are active- Specified by:
active
in interfaceHistoricCaseActivityInstanceQuery
-
suspended
-
completed
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are completed- Specified by:
completed
in interfaceHistoricCaseActivityInstanceQuery
-
terminated
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are terminated- Specified by:
terminated
in interfaceHistoricCaseActivityInstanceQuery
-
tenantIdIn
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceHistoricCaseActivityInstanceQuery
-
withoutTenantId
Description copied from interface:HistoricCaseActivityInstanceQuery
Only selects historic case activity instances that have no tenant id.- Specified by:
withoutTenantId
in interfaceHistoricCaseActivityInstanceQuery
-
hasExcludingConditions
protected boolean hasExcludingConditions()Description copied from class:AbstractQuery
Whether or not the query has excluding conditions. If the query has excluding conditions, (e.g. task due date before and after are excluding), the SQL query is avoided and a default result is returned. The returned result is the same as if the SQL was executed and there were no entries.- Overrides:
hasExcludingConditions
in classAbstractQuery<HistoricCaseActivityInstanceQuery,
HistoricCaseActivityInstance> - Returns:
true
if the query does have excluding conditions,false
otherwise
-
orderByHistoricCaseActivityInstanceId
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricCaseActivityInstanceId
in interfaceHistoricCaseActivityInstanceQuery
-
orderByCaseInstanceId
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by caseInstanceId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseInstanceId
in interfaceHistoricCaseActivityInstanceQuery
-
orderByCaseExecutionId
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by caseExecutionId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseExecutionId
in interfaceHistoricCaseActivityInstanceQuery
-
orderByCaseActivityId
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by caseActivityId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseActivityId
in interfaceHistoricCaseActivityInstanceQuery
-
orderByCaseActivityName
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by caseActivityName (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseActivityName
in interfaceHistoricCaseActivityInstanceQuery
-
orderByCaseActivityType
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by caseActivityType (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseActivityType
in interfaceHistoricCaseActivityInstanceQuery
-
orderByHistoricCaseActivityInstanceCreateTime
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by create time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricCaseActivityInstanceCreateTime
in interfaceHistoricCaseActivityInstanceQuery
-
orderByHistoricCaseActivityInstanceEndTime
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by end time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricCaseActivityInstanceEndTime
in interfaceHistoricCaseActivityInstanceQuery
-
orderByHistoricCaseActivityInstanceDuration
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by duration (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricCaseActivityInstanceDuration
in interfaceHistoricCaseActivityInstanceQuery
-
orderByCaseDefinitionId
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by caseDefinitionId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseDefinitionId
in interfaceHistoricCaseActivityInstanceQuery
-
orderByTenantId
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of historic case activity instances without tenant id is database-specific.- Specified by:
orderByTenantId
in interfaceHistoricCaseActivityInstanceQuery
-
getCaseActivityInstanceIds
-
getCaseInstanceId
-
getCaseDefinitionId
-
getCaseActivityIds
-
getCaseActivityName
-
getCaseActivityType
-
getCreatedBefore
-
getCreatedAfter
-
getEndedBefore
-
getEndedAfter
-
getEnded
-
getCaseActivityInstanceState
-
isRequired
-
isTenantIdSet
public boolean isTenantIdSet()
-