Package org.camunda.bpm.engine.impl
Class IncidentQueryImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<IncidentQuery,Incident>
-
- org.camunda.bpm.engine.impl.IncidentQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable,Command<java.lang.Object>,Query<IncidentQuery,Incident>,IncidentQuery
public class IncidentQueryImpl extends AbstractQuery<IncidentQuery,Incident> implements IncidentQuery, java.io.Serializable
- Author:
- roman.smirnov
- 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.StringactivityIdprotected java.lang.StringcauseIncidentIdprotected java.lang.Stringconfigurationprotected java.lang.StringexecutionIdprotected java.lang.StringfailedActivityIdprotected java.lang.Stringidprotected java.lang.StringincidentMessageprotected java.lang.StringincidentMessageLikeprotected java.util.DateincidentTimestampAfterprotected java.util.DateincidentTimestampBeforeprotected java.lang.StringincidentTypeprotected java.lang.String[]jobDefinitionIdsprotected java.lang.StringprocessDefinitionIdprotected java.lang.String[]processDefinitionKeysprotected java.lang.StringprocessInstanceIdprotected java.lang.StringrootCauseIncidentIdprotected 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 IncidentQueryImpl()IncidentQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IncidentQueryactivityId(java.lang.String activityId)Only select incidents which contain an activity with the given id.IncidentQuerycauseIncidentId(java.lang.String causeIncidentId)Only select incidents which contain the id of the cause incident.IncidentQueryconfiguration(java.lang.String configuration)Only select incidents which contain the configuration.longexecuteCount(CommandContext commandContext)java.util.List<Incident>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.IncidentQueryexecutionId(java.lang.String executionId)Only select incidents with the given id.IncidentQueryfailedActivityId(java.lang.String activityId)Only select incidents which were created due to a failure at an activity with the given id.java.lang.String[]getProcessDefinitionKeys()IncidentQueryincidentId(java.lang.String incidentId)Only select incidents which have the given id.IncidentQueryincidentMessage(java.lang.String incidentMessage)Only select incidents which have the given incident message.IncidentQueryincidentMessageLike(java.lang.String incidentMessageLike)Only select incidents which incident message is like the given value.IncidentQueryincidentTimestampAfter(java.util.Date incidentTimestampAfter)Only select incidents which have an incidentTimestamp date after the given dateIncidentQueryincidentTimestampBefore(java.util.Date incidentTimestampBefore)Only select incidents which have an incidentTimestamp date before the given dateIncidentQueryincidentType(java.lang.String incidentType)Only select incidents which have the given incident type.IncidentQueryjobDefinitionIdIn(java.lang.String... jobDefinitionIds)Only select incidents that belong to one of the given job definition ids.IncidentQueryorderByActivityId()Order by activityId (needs to be followed byQuery.asc()orQuery.desc()).IncidentQueryorderByCauseIncidentId()Order by causeIncidentId (needs to be followed byQuery.asc()orQuery.desc()).IncidentQueryorderByConfiguration()Order by configuration (needs to be followed byQuery.asc()orQuery.desc()).IncidentQueryorderByExecutionId()Order by executionId (needs to be followed byQuery.asc()orQuery.desc()).IncidentQueryorderByIncidentId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).IncidentQueryorderByIncidentMessage()Order by incident message (needs to be followed byQuery.asc()orQuery.desc()).IncidentQueryorderByIncidentTimestamp()Order by incidentTimestamp (needs to be followed byQuery.asc()orQuery.desc()).IncidentQueryorderByIncidentType()Order by incidentType (needs to be followed byQuery.asc()orQuery.desc()).IncidentQueryorderByProcessDefinitionId()Order by processDefinitionId (needs to be followed byQuery.asc()orQuery.desc()).IncidentQueryorderByProcessInstanceId()Order by processInstanceId (needs to be followed byQuery.asc()orQuery.desc()).IncidentQueryorderByRootCauseIncidentId()Order by rootCauseIncidentId (needs to be followed byQuery.asc()orQuery.desc()).IncidentQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).IncidentQueryprocessDefinitionId(java.lang.String processDefinitionId)Only select incidents which have the given process definition id.IncidentQueryprocessDefinitionKeyIn(java.lang.String... processDefinitionKeys)Only select incidents which have one of the given process definition keys.IncidentQueryprocessInstanceId(java.lang.String processInstanceId)Only select incidents which have the given process instance id.IncidentQueryrootCauseIncidentId(java.lang.String rootCauseIncidentId)Only select incidents which contain the id of the root cause incident.IncidentQuerytenantIdIn(java.lang.String... tenantIds)Only select incidents that belong to one of the given tenant ids.-
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, hasExcludingConditions, 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
-
id
protected java.lang.String id
-
incidentType
protected java.lang.String incidentType
-
incidentMessage
protected java.lang.String incidentMessage
-
incidentMessageLike
protected java.lang.String incidentMessageLike
-
executionId
protected java.lang.String executionId
-
incidentTimestampBefore
protected java.util.Date incidentTimestampBefore
-
incidentTimestampAfter
protected java.util.Date incidentTimestampAfter
-
activityId
protected java.lang.String activityId
-
failedActivityId
protected java.lang.String failedActivityId
-
processInstanceId
protected java.lang.String processInstanceId
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processDefinitionKeys
protected java.lang.String[] processDefinitionKeys
-
causeIncidentId
protected java.lang.String causeIncidentId
-
rootCauseIncidentId
protected java.lang.String rootCauseIncidentId
-
configuration
protected java.lang.String configuration
-
tenantIds
protected java.lang.String[] tenantIds
-
jobDefinitionIds
protected java.lang.String[] jobDefinitionIds
-
-
Constructor Detail
-
IncidentQueryImpl
public IncidentQueryImpl()
-
IncidentQueryImpl
public IncidentQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
incidentId
public IncidentQuery incidentId(java.lang.String incidentId)
Description copied from interface:IncidentQueryOnly select incidents which have the given id.- Specified by:
incidentIdin interfaceIncidentQuery
-
incidentType
public IncidentQuery incidentType(java.lang.String incidentType)
Description copied from interface:IncidentQueryOnly select incidents which have the given incident type.- Specified by:
incidentTypein interfaceIncidentQuery
-
incidentMessage
public IncidentQuery incidentMessage(java.lang.String incidentMessage)
Description copied from interface:IncidentQueryOnly select incidents which have the given incident message.- Specified by:
incidentMessagein interfaceIncidentQuery
-
incidentMessageLike
public IncidentQuery incidentMessageLike(java.lang.String incidentMessageLike)
Description copied from interface:IncidentQueryOnly select incidents which incident message is like the given value.- Specified by:
incidentMessageLikein interfaceIncidentQuery- Parameters:
incidentMessageLike- The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
executionId
public IncidentQuery executionId(java.lang.String executionId)
Description copied from interface:IncidentQueryOnly select incidents with the given id.- Specified by:
executionIdin interfaceIncidentQuery
-
incidentTimestampBefore
public IncidentQuery incidentTimestampBefore(java.util.Date incidentTimestampBefore)
Description copied from interface:IncidentQueryOnly select incidents which have an incidentTimestamp date before the given date- Specified by:
incidentTimestampBeforein interfaceIncidentQuery
-
incidentTimestampAfter
public IncidentQuery incidentTimestampAfter(java.util.Date incidentTimestampAfter)
Description copied from interface:IncidentQueryOnly select incidents which have an incidentTimestamp date after the given date- Specified by:
incidentTimestampAfterin interfaceIncidentQuery
-
activityId
public IncidentQuery activityId(java.lang.String activityId)
Description copied from interface:IncidentQueryOnly select incidents which contain an activity with the given id.- Specified by:
activityIdin interfaceIncidentQuery
-
failedActivityId
public IncidentQuery failedActivityId(java.lang.String activityId)
Description copied from interface:IncidentQueryOnly select incidents which were created due to a failure at an activity with the given id.- Specified by:
failedActivityIdin interfaceIncidentQuery
-
processInstanceId
public IncidentQuery processInstanceId(java.lang.String processInstanceId)
Description copied from interface:IncidentQueryOnly select incidents which have the given process instance id.- Specified by:
processInstanceIdin interfaceIncidentQuery
-
processDefinitionId
public IncidentQuery processDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:IncidentQueryOnly select incidents which have the given process definition id.- Specified by:
processDefinitionIdin interfaceIncidentQuery
-
processDefinitionKeyIn
public IncidentQuery processDefinitionKeyIn(java.lang.String... processDefinitionKeys)
Description copied from interface:IncidentQueryOnly select incidents which have one of the given process definition keys.- Specified by:
processDefinitionKeyInin interfaceIncidentQuery
-
causeIncidentId
public IncidentQuery causeIncidentId(java.lang.String causeIncidentId)
Description copied from interface:IncidentQueryOnly select incidents which contain the id of the cause incident.- Specified by:
causeIncidentIdin interfaceIncidentQuery
-
rootCauseIncidentId
public IncidentQuery rootCauseIncidentId(java.lang.String rootCauseIncidentId)
Description copied from interface:IncidentQueryOnly select incidents which contain the id of the root cause incident.- Specified by:
rootCauseIncidentIdin interfaceIncidentQuery
-
configuration
public IncidentQuery configuration(java.lang.String configuration)
Description copied from interface:IncidentQueryOnly select incidents which contain the configuration.- Specified by:
configurationin interfaceIncidentQuery
-
tenantIdIn
public IncidentQuery tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:IncidentQueryOnly select incidents that belong to one of the given tenant ids.- Specified by:
tenantIdInin interfaceIncidentQuery
-
jobDefinitionIdIn
public IncidentQuery jobDefinitionIdIn(java.lang.String... jobDefinitionIds)
Description copied from interface:IncidentQueryOnly select incidents that belong to one of the given job definition ids.- Specified by:
jobDefinitionIdInin interfaceIncidentQuery
-
orderByIncidentId
public IncidentQuery orderByIncidentId()
Description copied from interface:IncidentQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByIncidentIdin interfaceIncidentQuery
-
orderByIncidentTimestamp
public IncidentQuery orderByIncidentTimestamp()
Description copied from interface:IncidentQueryOrder by incidentTimestamp (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByIncidentTimestampin interfaceIncidentQuery
-
orderByIncidentType
public IncidentQuery orderByIncidentType()
Description copied from interface:IncidentQueryOrder by incidentType (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByIncidentTypein interfaceIncidentQuery
-
orderByExecutionId
public IncidentQuery orderByExecutionId()
Description copied from interface:IncidentQueryOrder by executionId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceIncidentQuery
-
orderByActivityId
public IncidentQuery orderByActivityId()
Description copied from interface:IncidentQueryOrder by activityId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityIdin interfaceIncidentQuery
-
orderByProcessInstanceId
public IncidentQuery orderByProcessInstanceId()
Description copied from interface:IncidentQueryOrder by processInstanceId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceIncidentQuery
-
orderByProcessDefinitionId
public IncidentQuery orderByProcessDefinitionId()
Description copied from interface:IncidentQueryOrder by processDefinitionId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceIncidentQuery
-
orderByCauseIncidentId
public IncidentQuery orderByCauseIncidentId()
Description copied from interface:IncidentQueryOrder by causeIncidentId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCauseIncidentIdin interfaceIncidentQuery
-
orderByRootCauseIncidentId
public IncidentQuery orderByRootCauseIncidentId()
Description copied from interface:IncidentQueryOrder by rootCauseIncidentId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByRootCauseIncidentIdin interfaceIncidentQuery
-
orderByConfiguration
public IncidentQuery orderByConfiguration()
Description copied from interface:IncidentQueryOrder by configuration (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByConfigurationin interfaceIncidentQuery
-
orderByTenantId
public IncidentQuery orderByTenantId()
Description copied from interface:IncidentQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()). Note that the ordering of incidents without tenant id is database-specific.- Specified by:
orderByTenantIdin interfaceIncidentQuery
-
orderByIncidentMessage
public IncidentQuery orderByIncidentMessage()
Description copied from interface:IncidentQueryOrder by incident message (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByIncidentMessagein interfaceIncidentQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<IncidentQuery,Incident>
-
executeList
public java.util.List<Incident> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<IncidentQuery,Incident>page- used if the results must be paged. If null, no paging will be applied.
-
getProcessDefinitionKeys
public java.lang.String[] getProcessDefinitionKeys()
-
-