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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns a period which specifies a time span within a year.Returns the unit of the period.voidsetPeriod(int period) voidsetPeriodUnit(String periodUnit)
-
Field Details
-
period
protected int period -
periodUnit
-
-
Constructor Details
-
ReportResultEntity
public ReportResultEntity()
-
-
Method Details
-
getPeriod
public int getPeriod()Description copied from interface:ReportResultReturns a period which specifies a time span within a year.
The returned period must be interpreted in conjunction with the returned
For example:PeriodUnitofReportResult.getPeriodUnit().ReportResult.getPeriodUnit()returnsPeriodUnit.MONTHReportResult.getPeriod()returns3
The returned period
3must be interpreted as the thirdmonthof the year (i.e. it represents the month March).If the
ReportResult.getPeriodUnit()returnsPeriodUnit.QUARTER, then the returned period3must be interpreted as the thirdquarterof the year.- Specified by:
getPeriodin interfaceReportResult- Returns:
- an integer representing span of time within a year
-
setPeriod
public void setPeriod(int period) -
getPeriodUnit
Description copied from interface:ReportResultReturns the unit of the period.
- Specified by:
getPeriodUnitin interfaceReportResult- Returns:
- a
PeriodUnit - See Also:
-
setPeriodUnit
-