public class EventSubscriptionQueryImpl extends AbstractQuery<EventSubscriptionQuery,EventSubscription> implements Serializable, EventSubscriptionQuery
AbstractQuery.ResultType| Modifier and Type | Field and Description |
|---|---|
protected String |
activityId |
protected String |
eventName |
protected String |
eventSubscriptionId |
protected String |
eventType |
protected String |
executionId |
protected boolean |
includeEventSubscriptionsWithoutTenantId |
protected boolean |
isTenantIdSet |
protected String |
processInstanceId |
protected String[] |
tenantIds |
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validatorsauthCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck| Constructor and Description |
|---|
EventSubscriptionQueryImpl() |
EventSubscriptionQueryImpl(CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
EventSubscriptionQueryImpl |
activityId(String activityId)
Only select subscriptions that belong to an activity with the given id.
|
EventSubscriptionQuery |
eventName(String eventName)
Only select subscriptions for events with the given name.
|
EventSubscriptionQuery |
eventSubscriptionId(String id)
Only select subscriptions with the given id.
|
EventSubscriptionQueryImpl |
eventType(String eventType)
Only select subscriptions for events with the given type.
|
long |
executeCount(CommandContext commandContext) |
List<EventSubscription> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
EventSubscriptionQueryImpl |
executionId(String executionId)
Only select subscriptions that belong to an execution with the given id.
|
String |
getActivityId() |
String |
getEventName() |
String |
getEventSubscriptionId() |
String |
getEventType() |
String |
getExecutionId() |
String |
getProcessInstanceId() |
EventSubscriptionQuery |
includeEventSubscriptionsWithoutTenantId()
Select subscriptions which have no tenant id.
|
EventSubscriptionQuery |
orderByCreated()
Order by event subscription creation date (needs to be followed by
Query.asc() or Query.desc()). |
EventSubscriptionQuery |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc()). |
EventSubscriptionQuery |
processInstanceId(String processInstanceId)
Only select subscriptions that belong to a process instance with the given id.
|
EventSubscriptionQuery |
tenantIdIn(String... tenantIds)
Only select subscriptions that belong to one of the given tenant ids.
|
EventSubscriptionQuery |
withoutTenantId()
Only select subscriptions which have no tenant id.
|
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, validategetAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheckclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasc, count, desc, list, listPage, singleResult, unlimitedListprotected String eventSubscriptionId
protected String eventName
protected String eventType
protected String executionId
protected String processInstanceId
protected String activityId
protected boolean isTenantIdSet
protected String[] tenantIds
protected boolean includeEventSubscriptionsWithoutTenantId
public EventSubscriptionQueryImpl()
public EventSubscriptionQueryImpl(CommandExecutor commandExecutor)
public EventSubscriptionQuery eventSubscriptionId(String id)
EventSubscriptionQueryeventSubscriptionId in interface EventSubscriptionQuerypublic EventSubscriptionQuery eventName(String eventName)
EventSubscriptionQueryeventName in interface EventSubscriptionQuerypublic EventSubscriptionQueryImpl executionId(String executionId)
EventSubscriptionQueryexecutionId in interface EventSubscriptionQuerypublic EventSubscriptionQuery processInstanceId(String processInstanceId)
EventSubscriptionQueryprocessInstanceId in interface EventSubscriptionQuerypublic EventSubscriptionQueryImpl activityId(String activityId)
EventSubscriptionQueryactivityId in interface EventSubscriptionQuerypublic EventSubscriptionQuery tenantIdIn(String... tenantIds)
EventSubscriptionQuerytenantIdIn in interface EventSubscriptionQuerypublic EventSubscriptionQuery withoutTenantId()
EventSubscriptionQuerywithoutTenantId in interface EventSubscriptionQuerypublic EventSubscriptionQuery includeEventSubscriptionsWithoutTenantId()
EventSubscriptionQueryEventSubscriptionQuery.tenantIdIn(String...).includeEventSubscriptionsWithoutTenantId in interface EventSubscriptionQuerypublic EventSubscriptionQueryImpl eventType(String eventType)
EventSubscriptionQueryeventType in interface EventSubscriptionQuerypublic EventSubscriptionQuery orderByCreated()
EventSubscriptionQueryQuery.asc() or Query.desc()).orderByCreated in interface EventSubscriptionQuerypublic EventSubscriptionQuery orderByTenantId()
EventSubscriptionQueryQuery.asc() or Query.desc()).
Note that the ordering of subscriptions without tenant id is database-specific.orderByTenantId in interface EventSubscriptionQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractQuery<EventSubscriptionQuery,EventSubscription>public List<EventSubscription> executeList(CommandContext commandContext, Page page)
AbstractQueryexecuteList in class AbstractQuery<EventSubscriptionQuery,EventSubscription>page - used if the results must be paged. If null, no paging will be applied.public String getEventSubscriptionId()
public String getEventName()
public String getEventType()
public String getExecutionId()
public String getProcessInstanceId()
public String getActivityId()
Copyright © 2021. All rights reserved.