org.camunda.bpm.engine.impl
Class ActivityStatisticsQueryImpl

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<ActivityStatisticsQuery,ActivityStatistics>
              extended by org.camunda.bpm.engine.impl.ActivityStatisticsQueryImpl
All Implemented Interfaces:
Serializable, Command<Object>, ActivityStatisticsQuery, Query<ActivityStatisticsQuery,ActivityStatistics>

public class ActivityStatisticsQueryImpl
extends AbstractQuery<ActivityStatisticsQuery,ActivityStatistics>
implements ActivityStatisticsQuery

See Also:
Serialized Form

Field Summary
protected  boolean includeFailedJobs
           
protected  boolean includeIncidents
           
protected  String includeIncidentsForType
           
protected  String processDefinitionId
           
protected static long serialVersionUID
           
 
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandContext, commandExecutor, expressions, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
 
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, authPerms, authResourceId, authResourceIdQueryParam, authResourceType, authUserId, isAuthorizationCheckEnabled
 
Constructor Summary
ActivityStatisticsQueryImpl(String processDefinitionId, CommandExecutor executor)
           
 
Method Summary
protected  void checkQueryOk()
           
 long executeCount(CommandContext commandContext)
           
 List<ActivityStatistics> executeList(CommandContext commandContext, Page page)
          Executes the actual query to retrieve the list of results.
 String getProcessDefinitionId()
           
 ActivityStatisticsQuery includeFailedJobs()
          Include an aggregation of failed jobs in the result.
 ActivityStatisticsQuery includeIncidents()
          Include an aggregation of incidents in the result.
 ActivityStatisticsQuery includeIncidentsForType(String incidentType)
          Include an aggregation of incidents of the assigned incidentType in the result.
 boolean isFailedJobsToInclude()
           
 boolean isIncidentsToInclude()
           
 
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addOrder, asc, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteList, execute, executeSingleResult, extend, getExpressions, getMethod, getOrderBy, getOrderProperty, list, listPage, mergeExpressions, mergeOrdering, orderBy, setCommandExecutor, setExpressions, singleResult
 
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
getAuthDefaultPerm, getAuthGroupIds, getAuthPerms, getAuthResourceId, getAuthResourceIdQueryParam, getAuthResourceType, getAuthUserId, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthPerms, setAuthResourceId, setAuthResourceIdQueryParam, setAuthResourceType, setAuthUserId
 
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

serialVersionUID

protected static final long serialVersionUID
See Also:
Constant Field Values

includeFailedJobs

protected boolean includeFailedJobs

processDefinitionId

protected String processDefinitionId

includeIncidents

protected boolean includeIncidents

includeIncidentsForType

protected String includeIncidentsForType
Constructor Detail

ActivityStatisticsQueryImpl

public ActivityStatisticsQueryImpl(String processDefinitionId,
                                   CommandExecutor executor)
Method Detail

executeCount

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

executeList

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

includeFailedJobs

public ActivityStatisticsQuery includeFailedJobs()
Description copied from interface: ActivityStatisticsQuery
Include an aggregation of failed jobs in the result.

Specified by:
includeFailedJobs in interface ActivityStatisticsQuery

includeIncidents

public ActivityStatisticsQuery includeIncidents()
Description copied from interface: ActivityStatisticsQuery
Include an aggregation of incidents in the result.

Specified by:
includeIncidents in interface ActivityStatisticsQuery

includeIncidentsForType

public ActivityStatisticsQuery includeIncidentsForType(String incidentType)
Description copied from interface: ActivityStatisticsQuery
Include an aggregation of incidents of the assigned incidentType in the result.

Specified by:
includeIncidentsForType in interface ActivityStatisticsQuery

isFailedJobsToInclude

public boolean isFailedJobsToInclude()

isIncidentsToInclude

public boolean isIncidentsToInclude()

getProcessDefinitionId

public String getProcessDefinitionId()

checkQueryOk

protected void checkQueryOk()
Overrides:
checkQueryOk in class AbstractQuery<ActivityStatisticsQuery,ActivityStatistics>


Copyright © 2014 camunda services GmbH. All rights reserved.