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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]
caseActivityIds
protected String[]
caseActivityInstanceIds
protected Integer
caseActivityInstanceState
protected String
caseActivityName
protected String
caseActivityType
protected String
caseDefinitionId
protected String
caseInstanceId
protected Date
createdAfter
protected Date
createdBefore
protected Boolean
ended
protected Date
endedAfter
protected Date
endedBefore
protected boolean
isTenantIdSet
protected Boolean
required
protected String[]
tenantIds
-
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
Constructors Constructor Description HistoricCaseActivityInstanceQueryImpl()
HistoricCaseActivityInstanceQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistoricCaseActivityInstanceQuery
active()
Only select historic case activity instances which are activeHistoricCaseActivityInstanceQuery
available()
Only select historic case activity instances which are availableHistoricCaseActivityInstanceQuery
caseActivityId(String caseActivityId)
Only select historic case activity instances for the given case activity (id from CMMN 1.0 XML)HistoricCaseActivityInstanceQuery
caseActivityIdIn(String... caseActivityIds)
Only select historic case activity instances with one of the given case activity ids.HistoricCaseActivityInstanceQuery
caseActivityInstanceId(String caseActivityInstanceId)
Only select historic case activity instances with the given id (primary key within history tables).HistoricCaseActivityInstanceQuery
caseActivityInstanceIdIn(String... caseActivityInstanceIds)
Only select historic case activity instances with one of the given case activity instance ids.HistoricCaseActivityInstanceQuery
caseActivityName(String caseActivityName)
Only select historic case activity instances for activities with the given nameHistoricCaseActivityInstanceQuery
caseActivityType(String caseActivityType)
Only select historic case activity instances for activities with the given typeHistoricCaseActivityInstanceQuery
caseDefinitionId(String caseDefinitionId)
Only select historic case activity instances for the given case definitionHistoricCaseActivityInstanceQuery
caseExecutionId(String caseExecutionId)
Only select historic case activity instances for the given case executionHistoricCaseActivityInstanceQuery
caseInstanceId(String caseInstanceId)
Only select historic case activity instances with the given case instance.HistoricCaseActivityInstanceQuery
completed()
Only select historic case activity instances which are completedHistoricCaseActivityInstanceQuery
createdAfter(Date date)
Only select historic case activity instances that were created after the given date.HistoricCaseActivityInstanceQuery
createdBefore(Date date)
Only select historic case activity instances that were created before the given date.HistoricCaseActivityInstanceQuery
disabled()
Only select historic case activity instances which are disabledHistoricCaseActivityInstanceQuery
enabled()
Only select historic case activity instances which are enabledHistoricCaseActivityInstanceQuery
ended()
Only select historic case activity instances which are already ended (ie.HistoricCaseActivityInstanceQuery
endedAfter(Date date)
Only select historic case activity instances that were ended (ie.HistoricCaseActivityInstanceQuery
endedBefore(Date date)
Only select historic case activity instances that were ended (ie.long
executeCount(CommandContext commandContext)
List<HistoricCaseActivityInstance>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.String[]
getCaseActivityIds()
String[]
getCaseActivityInstanceIds()
Integer
getCaseActivityInstanceState()
String
getCaseActivityName()
String
getCaseActivityType()
String
getCaseDefinitionId()
String
getCaseInstanceId()
Date
getCreatedAfter()
Date
getCreatedBefore()
Boolean
getEnded()
Date
getEndedAfter()
Date
getEndedBefore()
protected boolean
hasExcludingConditions()
Whether or not the query has excluding conditions.Boolean
isRequired()
boolean
isTenantIdSet()
HistoricCaseActivityInstanceQuery
notEnded()
Only select historic case activity instances which are not ended (ie.HistoricCaseActivityInstanceQuery
orderByCaseActivityId()
Order by caseActivityId (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricCaseActivityInstanceQuery
orderByCaseActivityName()
Order by caseActivityName (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricCaseActivityInstanceQuery
orderByCaseActivityType()
Order by caseActivityType (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricCaseActivityInstanceQuery
orderByCaseDefinitionId()
Order by caseDefinitionId (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricCaseActivityInstanceQuery
orderByCaseExecutionId()
Order by caseExecutionId (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricCaseActivityInstanceQuery
orderByCaseInstanceId()
Order by caseInstanceId (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricCaseActivityInstanceQuery
orderByHistoricCaseActivityInstanceCreateTime()
Order by create time (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricCaseActivityInstanceQuery
orderByHistoricCaseActivityInstanceDuration()
Order by duration (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricCaseActivityInstanceQuery
orderByHistoricCaseActivityInstanceEndTime()
Order by end time (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricCaseActivityInstanceQuery
orderByHistoricCaseActivityInstanceId()
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricCaseActivityInstanceQuery
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricCaseActivityInstanceQuery
required()
Only select historic case activity instances which are required.HistoricCaseActivityInstanceQuery
suspended()
HistoricCaseActivityInstanceQuery
tenantIdIn(String... tenantIds)
Only select historic case activity instances with one of the given tenant ids.HistoricCaseActivityInstanceQuery
terminated()
Only select historic case activity instances which are terminatedHistoricCaseActivityInstanceQuery
withoutTenantId()
Only 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 Detail
-
caseActivityInstanceIds
protected String[] caseActivityInstanceIds
-
caseActivityIds
protected String[] caseActivityIds
-
caseInstanceId
protected String caseInstanceId
-
caseDefinitionId
protected String caseDefinitionId
-
caseActivityName
protected String caseActivityName
-
caseActivityType
protected String caseActivityType
-
createdBefore
protected Date createdBefore
-
createdAfter
protected Date createdAfter
-
endedBefore
protected Date endedBefore
-
endedAfter
protected Date endedAfter
-
ended
protected Boolean ended
-
caseActivityInstanceState
protected Integer caseActivityInstanceState
-
required
protected Boolean required
-
tenantIds
protected String[] tenantIds
-
isTenantIdSet
protected boolean isTenantIdSet
-
-
Constructor Detail
-
HistoricCaseActivityInstanceQueryImpl
public HistoricCaseActivityInstanceQueryImpl()
-
HistoricCaseActivityInstanceQueryImpl
public HistoricCaseActivityInstanceQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<HistoricCaseActivityInstanceQuery,HistoricCaseActivityInstance>
-
executeList
public List<HistoricCaseActivityInstance> executeList(CommandContext commandContext, Page page)
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
public HistoricCaseActivityInstanceQuery caseActivityInstanceId(String 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
public HistoricCaseActivityInstanceQuery caseInstanceId(String caseInstanceId)
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances with the given case instance.- Specified by:
caseInstanceId
in interfaceHistoricCaseActivityInstanceQuery
-
caseDefinitionId
public HistoricCaseActivityInstanceQuery caseDefinitionId(String caseDefinitionId)
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances for the given case definition- Specified by:
caseDefinitionId
in interfaceHistoricCaseActivityInstanceQuery
-
caseExecutionId
public HistoricCaseActivityInstanceQuery caseExecutionId(String caseExecutionId)
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances for the given case execution- Specified by:
caseExecutionId
in interfaceHistoricCaseActivityInstanceQuery
-
caseActivityId
public HistoricCaseActivityInstanceQuery caseActivityId(String 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
public HistoricCaseActivityInstanceQuery caseActivityIdIn(String... caseActivityIds)
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
public HistoricCaseActivityInstanceQuery caseActivityName(String caseActivityName)
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances for activities with the given name- Specified by:
caseActivityName
in interfaceHistoricCaseActivityInstanceQuery
-
caseActivityType
public HistoricCaseActivityInstanceQuery caseActivityType(String caseActivityType)
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances for activities with the given type- Specified by:
caseActivityType
in interfaceHistoricCaseActivityInstanceQuery
-
createdBefore
public HistoricCaseActivityInstanceQuery createdBefore(Date date)
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances that were created before the given date.- Specified by:
createdBefore
in interfaceHistoricCaseActivityInstanceQuery
-
createdAfter
public HistoricCaseActivityInstanceQuery createdAfter(Date date)
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances that were created after the given date.- Specified by:
createdAfter
in interfaceHistoricCaseActivityInstanceQuery
-
endedBefore
public HistoricCaseActivityInstanceQuery endedBefore(Date date)
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
public HistoricCaseActivityInstanceQuery endedAfter(Date date)
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
public HistoricCaseActivityInstanceQuery required()
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are required.- Specified by:
required
in interfaceHistoricCaseActivityInstanceQuery
-
ended
public HistoricCaseActivityInstanceQuery 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
public HistoricCaseActivityInstanceQuery 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
public HistoricCaseActivityInstanceQuery available()
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are available- Specified by:
available
in interfaceHistoricCaseActivityInstanceQuery
-
enabled
public HistoricCaseActivityInstanceQuery enabled()
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are enabled- Specified by:
enabled
in interfaceHistoricCaseActivityInstanceQuery
-
disabled
public HistoricCaseActivityInstanceQuery disabled()
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are disabled- Specified by:
disabled
in interfaceHistoricCaseActivityInstanceQuery
-
active
public HistoricCaseActivityInstanceQuery active()
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are active- Specified by:
active
in interfaceHistoricCaseActivityInstanceQuery
-
suspended
public HistoricCaseActivityInstanceQuery suspended()
-
completed
public HistoricCaseActivityInstanceQuery completed()
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are completed- Specified by:
completed
in interfaceHistoricCaseActivityInstanceQuery
-
terminated
public HistoricCaseActivityInstanceQuery terminated()
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances which are terminated- Specified by:
terminated
in interfaceHistoricCaseActivityInstanceQuery
-
tenantIdIn
public HistoricCaseActivityInstanceQuery tenantIdIn(String... tenantIds)
Description copied from interface:HistoricCaseActivityInstanceQuery
Only select historic case activity instances with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceHistoricCaseActivityInstanceQuery
-
withoutTenantId
public HistoricCaseActivityInstanceQuery 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
public HistoricCaseActivityInstanceQuery orderByHistoricCaseActivityInstanceId()
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricCaseActivityInstanceId
in interfaceHistoricCaseActivityInstanceQuery
-
orderByCaseInstanceId
public HistoricCaseActivityInstanceQuery orderByCaseInstanceId()
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by caseInstanceId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseInstanceId
in interfaceHistoricCaseActivityInstanceQuery
-
orderByCaseExecutionId
public HistoricCaseActivityInstanceQuery orderByCaseExecutionId()
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by caseExecutionId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseExecutionId
in interfaceHistoricCaseActivityInstanceQuery
-
orderByCaseActivityId
public HistoricCaseActivityInstanceQuery orderByCaseActivityId()
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by caseActivityId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseActivityId
in interfaceHistoricCaseActivityInstanceQuery
-
orderByCaseActivityName
public HistoricCaseActivityInstanceQuery orderByCaseActivityName()
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by caseActivityName (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseActivityName
in interfaceHistoricCaseActivityInstanceQuery
-
orderByCaseActivityType
public HistoricCaseActivityInstanceQuery orderByCaseActivityType()
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by caseActivityType (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseActivityType
in interfaceHistoricCaseActivityInstanceQuery
-
orderByHistoricCaseActivityInstanceCreateTime
public HistoricCaseActivityInstanceQuery orderByHistoricCaseActivityInstanceCreateTime()
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by create time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricCaseActivityInstanceCreateTime
in interfaceHistoricCaseActivityInstanceQuery
-
orderByHistoricCaseActivityInstanceEndTime
public HistoricCaseActivityInstanceQuery orderByHistoricCaseActivityInstanceEndTime()
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by end time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricCaseActivityInstanceEndTime
in interfaceHistoricCaseActivityInstanceQuery
-
orderByHistoricCaseActivityInstanceDuration
public HistoricCaseActivityInstanceQuery orderByHistoricCaseActivityInstanceDuration()
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by duration (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricCaseActivityInstanceDuration
in interfaceHistoricCaseActivityInstanceQuery
-
orderByCaseDefinitionId
public HistoricCaseActivityInstanceQuery orderByCaseDefinitionId()
Description copied from interface:HistoricCaseActivityInstanceQuery
Order by caseDefinitionId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseDefinitionId
in interfaceHistoricCaseActivityInstanceQuery
-
orderByTenantId
public HistoricCaseActivityInstanceQuery 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
public String[] getCaseActivityInstanceIds()
-
getCaseInstanceId
public String getCaseInstanceId()
-
getCaseDefinitionId
public String getCaseDefinitionId()
-
getCaseActivityIds
public String[] getCaseActivityIds()
-
getCaseActivityName
public String getCaseActivityName()
-
getCaseActivityType
public String getCaseActivityType()
-
getCreatedBefore
public Date getCreatedBefore()
-
getCreatedAfter
public Date getCreatedAfter()
-
getEndedBefore
public Date getEndedBefore()
-
getEndedAfter
public Date getEndedAfter()
-
getEnded
public Boolean getEnded()
-
getCaseActivityInstanceState
public Integer getCaseActivityInstanceState()
-
isRequired
public Boolean isRequired()
-
isTenantIdSet
public boolean isTenantIdSet()
-
-