Package org.camunda.bpm.engine.impl
Class EventSubscriptionQueryImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<EventSubscriptionQuery,EventSubscription>
-
- org.camunda.bpm.engine.impl.EventSubscriptionQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable,Command<java.lang.Object>,Query<EventSubscriptionQuery,EventSubscription>,EventSubscriptionQuery
public class EventSubscriptionQueryImpl extends AbstractQuery<EventSubscriptionQuery,EventSubscription> implements java.io.Serializable, EventSubscriptionQuery
- Author:
- Daniel Meyer
- 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.StringeventNameprotected java.lang.StringeventSubscriptionIdprotected java.lang.StringeventTypeprotected java.lang.StringexecutionIdprotected booleanincludeEventSubscriptionsWithoutTenantIdprotected booleanisTenantIdSetprotected java.lang.StringprocessInstanceIdprotected 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 EventSubscriptionQueryImpl()EventSubscriptionQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventSubscriptionQueryImplactivityId(java.lang.String activityId)Only select subscriptions that belong to an activity with the given id.EventSubscriptionQueryeventName(java.lang.String eventName)Only select subscriptions for events with the given name.EventSubscriptionQueryeventSubscriptionId(java.lang.String id)Only select subscriptions with the given id.EventSubscriptionQueryImpleventType(java.lang.String eventType)Only select subscriptions for events with the given type.longexecuteCount(CommandContext commandContext)java.util.List<EventSubscription>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.EventSubscriptionQueryImplexecutionId(java.lang.String executionId)Only select subscriptions that belong to an execution with the given id.java.lang.StringgetActivityId()java.lang.StringgetEventName()java.lang.StringgetEventSubscriptionId()java.lang.StringgetEventType()java.lang.StringgetExecutionId()java.lang.StringgetProcessInstanceId()EventSubscriptionQueryincludeEventSubscriptionsWithoutTenantId()Select subscriptions which have no tenant id.EventSubscriptionQueryorderByCreated()Order by event subscription creation date (needs to be followed byQuery.asc()orQuery.desc()).EventSubscriptionQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).EventSubscriptionQueryprocessInstanceId(java.lang.String processInstanceId)Only select subscriptions that belong to a process instance with the given id.EventSubscriptionQuerytenantIdIn(java.lang.String... tenantIds)Only select subscriptions that belong to one of the given tenant ids.EventSubscriptionQuerywithoutTenantId()Only select subscriptions which 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, 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
-
eventSubscriptionId
protected java.lang.String eventSubscriptionId
-
eventName
protected java.lang.String eventName
-
eventType
protected java.lang.String eventType
-
executionId
protected java.lang.String executionId
-
processInstanceId
protected java.lang.String processInstanceId
-
activityId
protected java.lang.String activityId
-
isTenantIdSet
protected boolean isTenantIdSet
-
tenantIds
protected java.lang.String[] tenantIds
-
includeEventSubscriptionsWithoutTenantId
protected boolean includeEventSubscriptionsWithoutTenantId
-
-
Constructor Detail
-
EventSubscriptionQueryImpl
public EventSubscriptionQueryImpl()
-
EventSubscriptionQueryImpl
public EventSubscriptionQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
eventSubscriptionId
public EventSubscriptionQuery eventSubscriptionId(java.lang.String id)
Description copied from interface:EventSubscriptionQueryOnly select subscriptions with the given id.- Specified by:
eventSubscriptionIdin interfaceEventSubscriptionQuery
-
eventName
public EventSubscriptionQuery eventName(java.lang.String eventName)
Description copied from interface:EventSubscriptionQueryOnly select subscriptions for events with the given name.- Specified by:
eventNamein interfaceEventSubscriptionQuery
-
executionId
public EventSubscriptionQueryImpl executionId(java.lang.String executionId)
Description copied from interface:EventSubscriptionQueryOnly select subscriptions that belong to an execution with the given id.- Specified by:
executionIdin interfaceEventSubscriptionQuery
-
processInstanceId
public EventSubscriptionQuery processInstanceId(java.lang.String processInstanceId)
Description copied from interface:EventSubscriptionQueryOnly select subscriptions that belong to a process instance with the given id.- Specified by:
processInstanceIdin interfaceEventSubscriptionQuery
-
activityId
public EventSubscriptionQueryImpl activityId(java.lang.String activityId)
Description copied from interface:EventSubscriptionQueryOnly select subscriptions that belong to an activity with the given id.- Specified by:
activityIdin interfaceEventSubscriptionQuery
-
tenantIdIn
public EventSubscriptionQuery tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:EventSubscriptionQueryOnly select subscriptions that belong to one of the given tenant ids.- Specified by:
tenantIdInin interfaceEventSubscriptionQuery
-
withoutTenantId
public EventSubscriptionQuery withoutTenantId()
Description copied from interface:EventSubscriptionQueryOnly select subscriptions which have no tenant id.- Specified by:
withoutTenantIdin interfaceEventSubscriptionQuery
-
includeEventSubscriptionsWithoutTenantId
public EventSubscriptionQuery includeEventSubscriptionsWithoutTenantId()
Description copied from interface:EventSubscriptionQuerySelect subscriptions which have no tenant id. Can be used in combination withEventSubscriptionQuery.tenantIdIn(String...).- Specified by:
includeEventSubscriptionsWithoutTenantIdin interfaceEventSubscriptionQuery
-
eventType
public EventSubscriptionQueryImpl eventType(java.lang.String eventType)
Description copied from interface:EventSubscriptionQueryOnly select subscriptions for events with the given type. "message" selects message event subscriptions, "signal" selects signal event subscriptions, "compensate" selects compensation event subscriptions, "conditional" selects conditional event subscriptions.- Specified by:
eventTypein interfaceEventSubscriptionQuery
-
orderByCreated
public EventSubscriptionQuery orderByCreated()
Description copied from interface:EventSubscriptionQueryOrder by event subscription creation date (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCreatedin interfaceEventSubscriptionQuery
-
orderByTenantId
public EventSubscriptionQuery orderByTenantId()
Description copied from interface:EventSubscriptionQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()). Note that the ordering of subscriptions without tenant id is database-specific.- Specified by:
orderByTenantIdin interfaceEventSubscriptionQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<EventSubscriptionQuery,EventSubscription>
-
executeList
public java.util.List<EventSubscription> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<EventSubscriptionQuery,EventSubscription>page- used if the results must be paged. If null, no paging will be applied.
-
getEventSubscriptionId
public java.lang.String getEventSubscriptionId()
-
getEventName
public java.lang.String getEventName()
-
getEventType
public java.lang.String getEventType()
-
getExecutionId
public java.lang.String getExecutionId()
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
-
getActivityId
public java.lang.String getActivityId()
-
-