org.camunda.bpm.engine.impl
Class IncidentQueryImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.db.ListQueryParameterObject
      extended by org.camunda.bpm.engine.impl.AbstractQuery<IncidentQuery,Incident>
          extended by org.camunda.bpm.engine.impl.IncidentQueryImpl
All Implemented Interfaces:
Serializable, Command<Object>, Query<IncidentQuery,Incident>, IncidentQuery

public class IncidentQueryImpl
extends AbstractQuery<IncidentQuery,Incident>
implements IncidentQuery, 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
protected  String activityId
           
protected  String causeIncidentId
           
protected  String configuration
           
protected  String executionId
           
protected  String id
           
protected  String incidentMessage
           
protected  String incidentType
           
protected  String processDefinitionId
           
protected  String processInstanceId
           
protected  String rootCauseIncidentId
           
protected  String[] tenantIds
           
 
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, orderingProperties, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
 
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, DEFAULT_ORDER_BY, firstResult, maxResults, orderBy, parameter, tenantCheck
 
Constructor Summary
IncidentQueryImpl()
           
IncidentQueryImpl(CommandExecutor commandExecutor)
           
 
Method Summary
 IncidentQuery activityId(String activityId)
          Only select incidents which contain an activity with the given id.
 IncidentQuery causeIncidentId(String causeIncidentId)
          Only select incidents which contain the id of the cause incident.
 IncidentQuery configuration(String configuration)
          Only select incidents which contain the configuration.
 long executeCount(CommandContext commandContext)
           
 List<Incident> executeList(CommandContext commandContext, Page page)
          Executes the actual query to retrieve the list of results.
 IncidentQuery executionId(String executionId)
          Only select incidents with the given id.
 IncidentQuery incidentId(String incidentId)
          Only select incidents which have the given id.
 IncidentQuery incidentMessage(String incidentMessage)
          Only select incidents which have the given incident message.
 IncidentQuery incidentType(String incidentType)
          Only select incidents which have the given incident type.
 IncidentQuery orderByActivityId()
          Order by activityId (needs to be followed by Query.asc() or Query.desc()).
 IncidentQuery orderByCauseIncidentId()
          Order by causeIncidentId (needs to be followed by Query.asc() or Query.desc()).
 IncidentQuery orderByConfiguration()
          Order by configuration (needs to be followed by Query.asc() or Query.desc()).
 IncidentQuery orderByExecutionId()
          Order by executionId (needs to be followed by Query.asc() or Query.desc()).
 IncidentQuery orderByIncidentId()
          Order by id (needs to be followed by Query.asc() or Query.desc()).
 IncidentQuery orderByIncidentTimestamp()
          Order by incidentTimestamp (needs to be followed by Query.asc() or Query.desc()).
 IncidentQuery orderByIncidentType()
          Order by incidentType (needs to be followed by Query.asc() or Query.desc()).
 IncidentQuery orderByProcessDefinitionId()
          Order by processDefinitionId (needs to be followed by Query.asc() or Query.desc()).
 IncidentQuery orderByProcessInstanceId()
          Order by processInstanceId (needs to be followed by Query.asc() or Query.desc()).
 IncidentQuery orderByRootCauseIncidentId()
          Order by rootCauseIncidentId (needs to be followed by Query.asc() or Query.desc()).
 IncidentQuery orderByTenantId()
          Order by tenant id (needs to be followed by Query.asc() or Query.desc()).
 IncidentQuery processDefinitionId(String processDefinitionId)
          Only select incidents which have the given process definition id.
 IncidentQuery processInstanceId(String processInstanceId)
          Only select incidents which have the given process instance id.
 IncidentQuery rootCauseIncidentId(String rootCauseIncidentId)
          Only select incidents which contain the id of the root cause incident.
 IncidentQuery tenantIdIn(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, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteList, execute, executeSingleResult, extend, getExpressions, getMethod, getOrderBy, getOrderingProperties, hasExcludingConditions, list, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, setOrderingProperties, singleResult, validate, validate
 
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, 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.query.Query
asc, count, desc, list, listPage, singleResult
 

Field Detail

id

protected String id

incidentType

protected String incidentType

incidentMessage

protected String incidentMessage

executionId

protected String executionId

activityId

protected String activityId

processInstanceId

protected String processInstanceId

processDefinitionId

protected String processDefinitionId

causeIncidentId

protected String causeIncidentId

rootCauseIncidentId

protected String rootCauseIncidentId

configuration

protected String configuration

tenantIds

protected String[] tenantIds
Constructor Detail

IncidentQueryImpl

public IncidentQueryImpl()

IncidentQueryImpl

public IncidentQueryImpl(CommandExecutor commandExecutor)
Method Detail

incidentId

public IncidentQuery incidentId(String incidentId)
Description copied from interface: IncidentQuery
Only select incidents which have the given id.

Specified by:
incidentId in interface IncidentQuery

incidentType

public IncidentQuery incidentType(String incidentType)
Description copied from interface: IncidentQuery
Only select incidents which have the given incident type.

Specified by:
incidentType in interface IncidentQuery

incidentMessage

public IncidentQuery incidentMessage(String incidentMessage)
Description copied from interface: IncidentQuery
Only select incidents which have the given incident message.

Specified by:
incidentMessage in interface IncidentQuery

executionId

public IncidentQuery executionId(String executionId)
Description copied from interface: IncidentQuery
Only select incidents with the given id.

Specified by:
executionId in interface IncidentQuery

activityId

public IncidentQuery activityId(String activityId)
Description copied from interface: IncidentQuery
Only select incidents which contain an activity with the given id.

Specified by:
activityId in interface IncidentQuery

processInstanceId

public IncidentQuery processInstanceId(String processInstanceId)
Description copied from interface: IncidentQuery
Only select incidents which have the given process instance id.

Specified by:
processInstanceId in interface IncidentQuery

processDefinitionId

public IncidentQuery processDefinitionId(String processDefinitionId)
Description copied from interface: IncidentQuery
Only select incidents which have the given process definition id.

Specified by:
processDefinitionId in interface IncidentQuery

causeIncidentId

public IncidentQuery causeIncidentId(String causeIncidentId)
Description copied from interface: IncidentQuery
Only select incidents which contain the id of the cause incident.

Specified by:
causeIncidentId in interface IncidentQuery

rootCauseIncidentId

public IncidentQuery rootCauseIncidentId(String rootCauseIncidentId)
Description copied from interface: IncidentQuery
Only select incidents which contain the id of the root cause incident.

Specified by:
rootCauseIncidentId in interface IncidentQuery

configuration

public IncidentQuery configuration(String configuration)
Description copied from interface: IncidentQuery
Only select incidents which contain the configuration.

Specified by:
configuration in interface IncidentQuery

tenantIdIn

public IncidentQuery tenantIdIn(String... tenantIds)
Description copied from interface: IncidentQuery
Only select incidents that belong to one of the given tenant ids.

Specified by:
tenantIdIn in interface IncidentQuery

orderByIncidentId

public IncidentQuery orderByIncidentId()
Description copied from interface: IncidentQuery
Order by id (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByIncidentId in interface IncidentQuery

orderByIncidentTimestamp

public IncidentQuery orderByIncidentTimestamp()
Description copied from interface: IncidentQuery
Order by incidentTimestamp (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByIncidentTimestamp in interface IncidentQuery

orderByIncidentType

public IncidentQuery orderByIncidentType()
Description copied from interface: IncidentQuery
Order by incidentType (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByIncidentType in interface IncidentQuery

orderByExecutionId

public IncidentQuery orderByExecutionId()
Description copied from interface: IncidentQuery
Order by executionId (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByExecutionId in interface IncidentQuery

orderByActivityId

public IncidentQuery orderByActivityId()
Description copied from interface: IncidentQuery
Order by activityId (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByActivityId in interface IncidentQuery

orderByProcessInstanceId

public IncidentQuery orderByProcessInstanceId()
Description copied from interface: IncidentQuery
Order by processInstanceId (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByProcessInstanceId in interface IncidentQuery

orderByProcessDefinitionId

public IncidentQuery orderByProcessDefinitionId()
Description copied from interface: IncidentQuery
Order by processDefinitionId (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByProcessDefinitionId in interface IncidentQuery

orderByCauseIncidentId

public IncidentQuery orderByCauseIncidentId()
Description copied from interface: IncidentQuery
Order by causeIncidentId (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByCauseIncidentId in interface IncidentQuery

orderByRootCauseIncidentId

public IncidentQuery orderByRootCauseIncidentId()
Description copied from interface: IncidentQuery
Order by rootCauseIncidentId (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByRootCauseIncidentId in interface IncidentQuery

orderByConfiguration

public IncidentQuery orderByConfiguration()
Description copied from interface: IncidentQuery
Order by configuration (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByConfiguration in interface IncidentQuery

orderByTenantId

public IncidentQuery orderByTenantId()
Description copied from interface: IncidentQuery
Order by tenant id (needs to be followed by Query.asc() or Query.desc()). Note that the ordering of incidents without tenant id is database-specific.

Specified by:
orderByTenantId in interface IncidentQuery

executeCount

public long executeCount(CommandContext commandContext)
Specified by:
executeCount in class AbstractQuery<IncidentQuery,Incident>

executeList

public List<Incident> executeList(CommandContext commandContext,
                                  Page page)
Description copied from class: AbstractQuery
Executes the actual query to retrieve the list of results.

Specified by:
executeList in class AbstractQuery<IncidentQuery,Incident>
page - used if the results must be paged. If null, no paging will be applied.


Copyright © 2016 camunda services GmbH. All rights reserved.