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, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
authCheck, 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, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeIdsList, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, list, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, validate, validate
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
protected 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)
EventSubscriptionQuery
eventSubscriptionId
in interface EventSubscriptionQuery
public EventSubscriptionQuery eventName(String eventName)
EventSubscriptionQuery
eventName
in interface EventSubscriptionQuery
public EventSubscriptionQueryImpl executionId(String executionId)
EventSubscriptionQuery
executionId
in interface EventSubscriptionQuery
public EventSubscriptionQuery processInstanceId(String processInstanceId)
EventSubscriptionQuery
processInstanceId
in interface EventSubscriptionQuery
public EventSubscriptionQueryImpl activityId(String activityId)
EventSubscriptionQuery
activityId
in interface EventSubscriptionQuery
public EventSubscriptionQuery tenantIdIn(String... tenantIds)
EventSubscriptionQuery
tenantIdIn
in interface EventSubscriptionQuery
public EventSubscriptionQuery withoutTenantId()
EventSubscriptionQuery
withoutTenantId
in interface EventSubscriptionQuery
public EventSubscriptionQuery includeEventSubscriptionsWithoutTenantId()
EventSubscriptionQuery
EventSubscriptionQuery.tenantIdIn(String...)
.includeEventSubscriptionsWithoutTenantId
in interface EventSubscriptionQuery
public EventSubscriptionQueryImpl eventType(String eventType)
EventSubscriptionQuery
eventType
in interface EventSubscriptionQuery
public EventSubscriptionQuery orderByCreated()
EventSubscriptionQuery
Query.asc()
or Query.desc()
).orderByCreated
in interface EventSubscriptionQuery
public EventSubscriptionQuery orderByTenantId()
EventSubscriptionQuery
Query.asc()
or Query.desc()
).
Note that the ordering of subscriptions without tenant id is database-specific.orderByTenantId
in interface EventSubscriptionQuery
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractQuery<EventSubscriptionQuery,EventSubscription>
public List<EventSubscription> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
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 © 2018. All rights reserved.