public class DeploymentStatisticsQueryImpl extends AbstractQuery<DeploymentStatisticsQuery,DeploymentStatistics> implements DeploymentStatisticsQuery
Modifier and Type | Field and Description |
---|---|
protected boolean |
includeFailedJobs |
protected boolean |
includeIncidents |
protected String |
includeIncidentsForType |
protected static long |
serialVersionUID |
commandContext, commandExecutor, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
databaseType, firstResult, maxResults, parameter
authDefaultPerm, authGroupIds, authPerms, authResourceId, authResourceIdQueryParam, authResourceType, authUserId, isAuthorizationCheckEnabled
Constructor and Description |
---|
DeploymentStatisticsQueryImpl(CommandExecutor executor) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkQueryOk() |
long |
executeCount(CommandContext commandContext) |
List<DeploymentStatistics> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
DeploymentStatisticsQuery |
includeFailedJobs()
Include an aggregation of failed jobs in the result.
|
DeploymentStatisticsQuery |
includeIncidents()
Include an aggregation of incidents in the result.
|
DeploymentStatisticsQuery |
includeIncidentsForType(String incidentType)
Include an aggregation of incidents of the assigned incidentType in the result.
|
boolean |
isFailedJobsToInclude() |
boolean |
isIncidentsToInclude() |
addOrder, asc, count, desc, direction, execute, executeSingleResult, getOrderBy, list, listPage, orderBy, setCommandExecutor, singleResult
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setParameter
getAuthDefaultPerm, getAuthGroupIds, getAuthPerms, getAuthResourceId, getAuthResourceIdQueryParam, getAuthResourceType, getAuthUserId, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthPerms, setAuthResourceId, setAuthResourceIdQueryParam, setAuthResourceType, setAuthUserId
protected static final long serialVersionUID
protected boolean includeFailedJobs
protected boolean includeIncidents
protected String includeIncidentsForType
public DeploymentStatisticsQueryImpl(CommandExecutor executor)
public DeploymentStatisticsQuery includeFailedJobs()
DeploymentStatisticsQuery
includeFailedJobs
in interface DeploymentStatisticsQuery
public DeploymentStatisticsQuery includeIncidents()
DeploymentStatisticsQuery
includeIncidents
in interface DeploymentStatisticsQuery
public DeploymentStatisticsQuery includeIncidentsForType(String incidentType)
DeploymentStatisticsQuery
includeIncidentsForType
in interface DeploymentStatisticsQuery
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractQuery<DeploymentStatisticsQuery,DeploymentStatistics>
public List<DeploymentStatistics> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractQuery<DeploymentStatisticsQuery,DeploymentStatistics>
page
- used if the results must be paged. If null, no paging will be applied.public boolean isFailedJobsToInclude()
public boolean isIncidentsToInclude()
protected void checkQueryOk()
checkQueryOk
in class AbstractQuery<DeploymentStatisticsQuery,DeploymentStatistics>
Copyright © 2015. All rights reserved.