Class ReportResultEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.entity.ReportResultEntity
-
- All Implemented Interfaces:
ReportResult
- Direct Known Subclasses:
DurationReportResultEntity
public abstract class ReportResultEntity extends java.lang.Object implements ReportResult
- Author:
- Roman Smirnov
-
-
Field Summary
Fields Modifier and Type Field Description protected intperiodprotected PeriodUnitperiodUnit
-
Constructor Summary
Constructors Constructor Description ReportResultEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPeriod()Returns a period which specifies a time span within a year.PeriodUnitgetPeriodUnit()Returns the unit of the period.voidsetPeriod(int period)voidsetPeriodUnit(java.lang.String periodUnit)
-
-
-
Field Detail
-
period
protected int period
-
periodUnit
protected PeriodUnit periodUnit
-
-
Method Detail
-
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
public PeriodUnit getPeriodUnit()
Description copied from interface:ReportResultReturns the unit of the period.
- Specified by:
getPeriodUnitin interfaceReportResult- Returns:
- a
PeriodUnit - See Also:
ReportResult.getPeriod()
-
setPeriodUnit
public void setPeriodUnit(java.lang.String periodUnit)
-
-