org.camunda.bpm.engine.impl
Class EventSubscriptionQueryImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.db.AuthorizationCheck
      extended by org.camunda.bpm.engine.impl.db.ListQueryParameterObject
          extended by org.camunda.bpm.engine.impl.AbstractQuery<EventSubscriptionQuery,EventSubscription>
              extended by org.camunda.bpm.engine.impl.EventSubscriptionQueryImpl
All Implemented Interfaces:
Serializable, Command<Object>, Query<EventSubscriptionQuery,EventSubscription>, EventSubscriptionQuery

public class EventSubscriptionQueryImpl
extends AbstractQuery<EventSubscriptionQuery,EventSubscription>
implements Serializable, EventSubscriptionQuery

Author:
Daniel Meyer
See Also:
Serialized Form

Field Summary
protected  String activityId
           
protected  String eventName
           
protected  String eventSubscriptionId
           
protected  String eventType
           
protected  String executionId
           
protected  String processInstanceId
           
 
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
databaseType, DEFAULT_ORDER_BY, firstResult, maxResults, orderBy, parameter
 
Fields inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck
authDefaultPerm, authGroupIds, authUserId, isAuthorizationCheckEnabled, permissionChecks
 
Constructor Summary
EventSubscriptionQueryImpl()
           
EventSubscriptionQueryImpl(CommandExecutor commandExecutor)
           
 
Method Summary
 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 orderByCreated()
          Order by event subscription creation date (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.
 
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
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, setParameter
 
Methods inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck
addAtomicPermissionCheck, getAuthDefaultPerm, getAuthGroupIds, getAuthUserId, getPermissionChecks, isAuthorizationCheckEnabled, setAtomicPermissionChecks, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthUserId, setPermissionChecks
 
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

eventSubscriptionId

protected String eventSubscriptionId

eventName

protected String eventName

eventType

protected String eventType

executionId

protected String executionId

processInstanceId

protected String processInstanceId

activityId

protected String activityId
Constructor Detail

EventSubscriptionQueryImpl

public EventSubscriptionQueryImpl()

EventSubscriptionQueryImpl

public EventSubscriptionQueryImpl(CommandExecutor commandExecutor)
Method Detail

eventSubscriptionId

public EventSubscriptionQuery eventSubscriptionId(String id)
Description copied from interface: EventSubscriptionQuery
Only select subscriptions with the given id.

Specified by:
eventSubscriptionId in interface EventSubscriptionQuery

eventName

public EventSubscriptionQuery eventName(String eventName)
Description copied from interface: EventSubscriptionQuery
Only select subscriptions for events with the given name.

Specified by:
eventName in interface EventSubscriptionQuery

executionId

public EventSubscriptionQueryImpl executionId(String executionId)
Description copied from interface: EventSubscriptionQuery
Only select subscriptions that belong to an execution with the given id.

Specified by:
executionId in interface EventSubscriptionQuery

processInstanceId

public EventSubscriptionQuery processInstanceId(String processInstanceId)
Description copied from interface: EventSubscriptionQuery
Only select subscriptions that belong to a process instance with the given id.

Specified by:
processInstanceId in interface EventSubscriptionQuery

activityId

public EventSubscriptionQueryImpl activityId(String activityId)
Description copied from interface: EventSubscriptionQuery
Only select subscriptions that belong to an activity with the given id.

Specified by:
activityId in interface EventSubscriptionQuery

eventType

public EventSubscriptionQueryImpl eventType(String eventType)
Description copied from interface: EventSubscriptionQuery
Only select subscriptions for events with the given type. "message" selects message event subscriptions, "signal" selects signal event subscriptions, "compensation" selects compensation event subscriptions.

Specified by:
eventType in interface EventSubscriptionQuery

orderByCreated

public EventSubscriptionQuery orderByCreated()
Description copied from interface: EventSubscriptionQuery
Order by event subscription creation date (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByCreated in interface EventSubscriptionQuery

executeCount

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

executeList

public List<EventSubscription> 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<EventSubscriptionQuery,EventSubscription>
page - used if the results must be paged. If null, no paging will be applied.

getEventSubscriptionId

public String getEventSubscriptionId()

getEventName

public String getEventName()

getEventType

public String getEventType()

getExecutionId

public String getExecutionId()

getProcessInstanceId

public String getProcessInstanceId()

getActivityId

public String getActivityId()


Copyright © 2016 camunda services GmbH. All rights reserved.