Class ReportResultEntity
java.lang.Object
org.camunda.bpm.engine.impl.persistence.entity.ReportResultEntity
- All Implemented Interfaces:
ReportResult
- Direct Known Subclasses:
DurationReportResultEntity
- Author:
- Roman Smirnov
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns a period which specifies a time span within a year.Returns the unit of the period.void
setPeriod
(int period) void
setPeriodUnit
(String periodUnit)
-
Field Details
-
period
protected int period -
periodUnit
-
-
Constructor Details
-
ReportResultEntity
public ReportResultEntity()
-
-
Method Details
-
getPeriod
public int getPeriod()Description copied from interface:ReportResult
Returns a period which specifies a time span within a year.
The returned period must be interpreted in conjunction with the returned
For example:PeriodUnit
ofReportResult.getPeriodUnit()
.ReportResult.getPeriodUnit()
returnsPeriodUnit.MONTH
ReportResult.getPeriod()
returns3
The returned period
3
must be interpreted as the thirdmonth
of the year (i.e. it represents the month March).If the
ReportResult.getPeriodUnit()
returnsPeriodUnit.QUARTER
, then the returned period3
must be interpreted as the thirdquarter
of the year.- Specified by:
getPeriod
in interfaceReportResult
- Returns:
- an integer representing span of time within a year
-
setPeriod
public void setPeriod(int period) -
getPeriodUnit
Description copied from interface:ReportResult
Returns the unit of the period.
- Specified by:
getPeriodUnit
in interfaceReportResult
- Returns:
- a
PeriodUnit
- See Also:
-
setPeriodUnit
-