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 Object implements ReportResult
- Author:
- Roman Smirnov
-
-
Field Summary
Fields Modifier and Type Field Description protected int
period
protected PeriodUnit
periodUnit
-
Constructor Summary
Constructors Constructor Description ReportResultEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPeriod()
Returns a period which specifies a time span within a year.PeriodUnit
getPeriodUnit()
Returns the unit of the period.void
setPeriod(int period)
void
setPeriodUnit(String periodUnit)
-
-
-
Field Detail
-
period
protected int period
-
periodUnit
protected PeriodUnit periodUnit
-
-
Method Detail
-
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
public PeriodUnit getPeriodUnit()
Description copied from interface:ReportResult
Returns the unit of the period.
- Specified by:
getPeriodUnit
in interfaceReportResult
- Returns:
- a
PeriodUnit
- See Also:
ReportResult.getPeriod()
-
setPeriodUnit
public void setPeriodUnit(String periodUnit)
-
-