public abstract class AbstractReport extends Object implements Command<Object>, Report, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AbstractReport.ReportType |
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected PeriodUnit |
reportPeriodUnit |
protected AbstractReport.ReportType |
reportType |
protected TenantCheck |
tenantCheck |
Modifier | Constructor and Description |
---|---|
protected |
AbstractReport() |
protected |
AbstractReport(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
List<DurationReportResult> |
duration(PeriodUnit periodUnit)
Executes the duration report query and returns a list of
DurationReportResult s. |
Object |
execute(CommandContext commandContext) |
List<DurationReportResult> |
executeDuration(CommandContext commandContext) |
abstract List<DurationReportResult> |
executeDurationReport(CommandContext commandContext) |
CommandExecutor |
getCommandExecutor() |
PeriodUnit |
getReportPeriodUnit() |
String |
getReportPeriodUnitName() |
AbstractReport.ReportType |
getReportType() |
String |
getReportTypeName() |
TenantCheck |
getTenantCheck() |
protected boolean |
hasExcludingConditions()
Whether or not the report query has excluding conditions.
|
AbstractReport |
setCommandExecutor(CommandExecutor commandExecutor) |
protected transient CommandExecutor commandExecutor
protected AbstractReport.ReportType reportType
protected PeriodUnit reportPeriodUnit
protected TenantCheck tenantCheck
protected AbstractReport()
protected AbstractReport(CommandExecutor commandExecutor)
public Object execute(CommandContext commandContext)
public List<DurationReportResult> duration(PeriodUnit periodUnit)
Report
Executes the duration report query and returns a list of
DurationReportResult
s.
Be aware that the resulting report must be interpreted by the caller itself.
duration
in interface Report
periodUnit
- A period unit
to define
the granularity of the report.DurationReportResult
spublic List<DurationReportResult> executeDuration(CommandContext commandContext)
public abstract List<DurationReportResult> executeDurationReport(CommandContext commandContext)
protected boolean hasExcludingConditions()
true
if the report query does have excluding conditions, false
otherwisepublic CommandExecutor getCommandExecutor()
public AbstractReport setCommandExecutor(CommandExecutor commandExecutor)
public PeriodUnit getReportPeriodUnit()
public String getReportPeriodUnitName()
public AbstractReport.ReportType getReportType()
public String getReportTypeName()
public TenantCheck getTenantCheck()
Copyright © 2017. All rights reserved.