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:
java.io.Serializable
,HistoricCaseActivityInstanceQuery
,Command<java.lang.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 java.lang.String[]
caseActivityIds
protected java.lang.String[]
caseActivityInstanceIds
protected java.lang.Integer
caseActivityInstanceState
protected java.lang.String
caseActivityName
protected java.lang.String
caseActivityType
protected java.lang.String
caseDefinitionId
protected java.lang.String
caseInstanceId
protected java.util.Date
createdAfter
protected java.util.Date
createdBefore
protected java.lang.Boolean
ended
protected java.util.Date
endedAfter
protected java.util.Date
endedBefore
protected boolean
isTenantIdSet
protected java.lang.Boolean
required
protected java.lang.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(java.lang.String caseActivityId)
Only select historic case activity instances for the given case activity (id from CMMN 1.0 XML)HistoricCaseActivityInstanceQuery
caseActivityIdIn(java.lang.String... caseActivityIds)
Only select historic case activity instances with one of the given case activity ids.HistoricCaseActivityInstanceQuery
caseActivityInstanceId(java.lang.String caseActivityInstanceId)
Only select historic case activity instances with the given id (primary key within history tables).HistoricCaseActivityInstanceQuery
caseActivityInstanceIdIn(java.lang.String... caseActivityInstanceIds)
Only select historic case activity instances with one of the given case activity instance ids.HistoricCaseActivityInstanceQuery
caseActivityName(java.lang.String caseActivityName)
Only select historic case activity instances for activities with the given nameHistoricCaseActivityInstanceQuery
caseActivityType(java.lang.String caseActivityType)
Only select historic case activity instances for activities with the given typeHistoricCaseActivityInstanceQuery
caseDefinitionId(java.lang.String caseDefinitionId)
Only select historic case activity instances for the given case definitionHistoricCaseActivityInstanceQuery
caseExecutionId(java.lang.String caseExecutionId)
Only select historic case activity instances for the given case executionHistoricCaseActivityInstanceQuery
caseInstanceId(java.lang.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(java.util.Date date)
Only select historic case activity instances that were created after the given date.HistoricCaseActivityInstanceQuery
createdBefore(java.util.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(java.util.Date date)
Only select historic case activity instances that were ended (ie.HistoricCaseActivityInstanceQuery
endedBefore(java.util.Date date)
Only select historic case activity instances that were ended (ie.long
executeCount(CommandContext commandContext)
java.util.List<HistoricCaseActivityInstance>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.java.lang.String[]
getCaseActivityIds()
java.lang.String[]
getCaseActivityInstanceIds()
java.lang.Integer
getCaseActivityInstanceState()
java.lang.String
getCaseActivityName()
java.lang.String
getCaseActivityType()
java.lang.String
getCaseDefinitionId()
java.lang.String
getCaseInstanceId()
java.util.Date
getCreatedAfter()
java.util.Date
getCreatedBefore()
java.lang.Boolean
getEnded()
java.util.Date
getEndedAfter()
java.util.Date
getEndedBefore()
protected boolean
hasExcludingConditions()
Whether or not the query has excluding conditions.java.lang.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(java.lang.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 java.lang.String[] caseActivityInstanceIds
-
caseActivityIds
protected java.lang.String[] caseActivityIds
-
caseInstanceId
protected java.lang.String caseInstanceId
-
caseDefinitionId
protected java.lang.String caseDefinitionId
-
caseActivityName
protected java.lang.String caseActivityName
-
caseActivityType
protected java.lang.String caseActivityType
-
createdBefore
protected java.util.Date createdBefore
-
createdAfter
protected java.util.Date createdAfter
-
endedBefore
protected java.util.Date endedBefore
-
endedAfter
protected java.util.Date endedAfter
-
ended
protected java.lang.Boolean ended
-
caseActivityInstanceState
protected java.lang.Integer caseActivityInstanceState
-
required
protected java.lang.Boolean required
-
tenantIds
protected java.lang.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 java.util.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.util.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(java.util.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(java.util.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(java.util.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(java.lang.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 java.lang.String[] getCaseActivityInstanceIds()
-
getCaseInstanceId
public java.lang.String getCaseInstanceId()
-
getCaseDefinitionId
public java.lang.String getCaseDefinitionId()
-
getCaseActivityIds
public java.lang.String[] getCaseActivityIds()
-
getCaseActivityName
public java.lang.String getCaseActivityName()
-
getCaseActivityType
public java.lang.String getCaseActivityType()
-
getCreatedBefore
public java.util.Date getCreatedBefore()
-
getCreatedAfter
public java.util.Date getCreatedAfter()
-
getEndedBefore
public java.util.Date getEndedBefore()
-
getEndedAfter
public java.util.Date getEndedAfter()
-
getEnded
public java.lang.Boolean getEnded()
-
getCaseActivityInstanceState
public java.lang.Integer getCaseActivityInstanceState()
-
isRequired
public java.lang.Boolean isRequired()
-
isTenantIdSet
public boolean isTenantIdSet()
-
-