|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tenduke.types.AbstractBindableObject
com.tenduke.objectmodel.TendukeObject
com.tenduke.objectmodel.Report
public class Report
A base class model that describes a report.
A Report is produced by analyzing and processing reporting data based on a ReportDefinition. In other words,
a Report represents an instance while a ReportDefinition represents a class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.tenduke.objectmodel.TendukeObject |
|---|
TendukeObject.CreatedDateComparator<T extends TendukeObject>, TendukeObject.ModifiedDateComparator<T extends TendukeObject> |
| Field Summary | |
|---|---|
static int |
FIELD_LENGTH_APPLICATION_CONTEXT
Name that identifies application context field's maximum length. |
static int |
FIELD_LENGTH_DESCRIPTION
Name that identifies description field's maximum length. |
static int |
FIELD_LENGTH_REPORT_TIME_UNIT
|
static int |
FIELD_LENGTH_TITLE
Name that identifies title field's maximum length. |
static java.lang.String |
FIELD_NAME_APPLICATION_CONTEXT
Name that identifies application context field. |
static java.lang.String |
FIELD_NAME_DESCRIPTION
Name that identifies description field. |
static java.lang.String |
FIELD_NAME_PROCESSED_DATA_END_TIME
Name that identifies field for end time of data that was included in analysis that produces report. |
static java.lang.String |
FIELD_NAME_PROCESSED_DATA_START_TIME
Name that identifies field for start time of data that was included in analysis that produces report. |
static java.lang.String |
FIELD_NAME_REPORT_DEFINITION
Name that identifies field for report definition relation. |
static java.lang.String |
FIELD_NAME_REPORT_DEFINITION_ID
Name that identifies field for report definition id (reference). |
static java.lang.String |
FIELD_NAME_REPORT_FINISHED
Field name for report finished timestamp. |
static java.lang.String |
FIELD_NAME_REPORT_TIME
Name that identifies field for point in time for which report was generated. |
static java.lang.String |
FIELD_NAME_REPORT_TIME_SPAN
Name that identifies field for report time span, which is related to FIELD_NAME_REPORT_TIME_UNIT. |
static java.lang.String |
FIELD_NAME_REPORT_TIME_UNIT
Name that identifies field for report time unit. |
static java.lang.String |
FIELD_NAME_TITLE
Name that identifies title field. |
| Fields inherited from class com.tenduke.types.AbstractBindableObject |
|---|
FIELD_LENGTH_SHORT_ID, FIELD_NAME_OBJECT_STATE_CHANGE, FIELD_NAME_REPLACES_OBJECT, FIELD_NAME_SHORT_ID, PERMISSION_ACTION_CREATE, PERMISSION_ACTION_DELETE, PERMISSION_ACTION_MODIFY, PERMISSION_ACTION_READ |
| Constructor Summary | |
|---|---|
Report()
Creates a new instance of Report with null id. |
|
Report(java.util.UUID id)
Creates a new instance of Report with caller defined id. |
|
| Method Summary | |
|---|---|
java.lang.String |
getApplicationContext()
Gets application contextual name that scopes Report. |
java.lang.String |
getDescription()
Gets the Report description. |
java.util.UUID |
getId()
Gets unique id of the object. |
java.lang.Long |
getProcessedDataEndTime()
Gets the last time of report data known to have been part of the analysis that produced report. |
java.lang.Long |
getProcessedDataStartTime()
Gets the time where report data is first known and has been part of the analysis that produced report. |
ReportDefinition |
getReportDefinition()
Gets the related ReportDefinition. |
java.util.UUID |
getReportDefinitionId()
Gets the report definition id used to reference the ReportDefinition used to define this Report. |
java.util.List<ReportDefinition> |
getReportDefinitionList()
Gets the related ReportDefinition. |
java.util.Date |
getReportFinished()
Gets timestamp when report generation is finished. |
java.util.UUID |
getReportId()
Gets the Report id. |
java.util.Date |
getReportTime()
Gets the point in time for which report was generated. |
java.lang.Long |
getReportTimeSpan()
Gets report time span, which is related to field identified by FIELD_NAME_REPORT_TIME_UNIT
(@getReportTimeUnit()). |
java.lang.String |
getReportTimeUnit()
Gets report time unit. |
java.lang.String |
getTitle()
Gets the Report title. |
TimeUnit |
reportTimeUnitStringToTimeUnit()
Gets report time unit. |
void |
setApplicationContext(java.lang.String applicationContext)
Sets application contextual name that scopes Report. |
void |
setDescription(java.lang.String rhs)
Sets Report description. |
void |
setId(java.util.UUID id)
Sets unique id of the object. |
void |
setProcessedDataEndTime(java.lang.Long dataEndTime)
Sets the last time of report data known to have been part of the analysis that produced report. |
void |
setProcessedDataStartTime(java.lang.Long dataStartTime)
Sets the time where report data is first known and has been part of the analysis that produced report. |
void |
setReportDefinition(ReportDefinition reportDefinition)
Sets the related ReportDefinition. |
void |
setReportDefinitionId(java.util.UUID reportDefinitionId)
Sets report definition id used to reference the ReportDefinition used to define this Report. |
void |
setReportDefinitionList(java.util.List<ReportDefinition> reportDefinition)
Sets the related ReportDefinition. |
void |
setReportFinished(java.util.Date reportFinished)
Sets timestamp when report generation is finished. |
void |
setReportId(java.lang.String rhs)
Sets Report id. |
void |
setReportId(java.util.UUID rhs)
Sets Report id. |
void |
setReportTime(java.util.Date reportTime)
Sets point in time for which report was generated. |
void |
setReportTimeSpan(java.lang.Long reportTimeSpan)
Sets report time span, which is related to field identified by FIELD_NAME_REPORT_TIME_UNIT
(@getReportTimeUnit()). |
void |
setReportTimeUnit(java.lang.String reportTimeUnit)
Sets report time unit. |
void |
setTitle(java.lang.String title)
Sets Report title. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int FIELD_LENGTH_APPLICATION_CONTEXT
public static final int FIELD_LENGTH_DESCRIPTION
public static final int FIELD_LENGTH_REPORT_TIME_UNIT
public static final int FIELD_LENGTH_TITLE
public static final java.lang.String FIELD_NAME_APPLICATION_CONTEXT
public static final java.lang.String FIELD_NAME_DESCRIPTION
public static final java.lang.String FIELD_NAME_PROCESSED_DATA_END_TIME
public static final java.lang.String FIELD_NAME_PROCESSED_DATA_START_TIME
public static final java.lang.String FIELD_NAME_REPORT_DEFINITION
public static final java.lang.String FIELD_NAME_REPORT_DEFINITION_ID
public static final java.lang.String FIELD_NAME_REPORT_FINISHED
public static final java.lang.String FIELD_NAME_REPORT_TIME
public static final java.lang.String FIELD_NAME_REPORT_TIME_SPAN
FIELD_NAME_REPORT_TIME_UNIT.
Span answers the question for how much from time unit perspective: e.g. last 4 weeks uses span for the value 4
and time unit is weeks.
public static final java.lang.String FIELD_NAME_REPORT_TIME_UNIT
public static final java.lang.String FIELD_NAME_TITLE
| Constructor Detail |
|---|
public Report()
public Report(java.util.UUID id)
id - Unique id for Report object.| Method Detail |
|---|
public java.lang.String getApplicationContext()
public java.lang.String getDescription()
public java.util.UUID getId()
getId in interface SerializableObjectgetId in class AbstractBindableObjectpublic java.lang.Long getProcessedDataEndTime()
public java.lang.Long getProcessedDataStartTime()
public ReportDefinition getReportDefinition()
ReportDefinition.
ReportDefinition.public java.util.UUID getReportDefinitionId()
ReportDefinition used to define this Report.
ReportDefinition used to define this Report.public java.util.List<ReportDefinition> getReportDefinitionList()
ReportDefinition.
ReportDefinition.public java.util.Date getReportFinished()
public java.util.UUID getReportId()
public java.util.Date getReportTime()
public java.lang.Long getReportTimeSpan()
Gets report time span, which is related to field identified by FIELD_NAME_REPORT_TIME_UNIT
(@getReportTimeUnit()).
Span answers the question for how much from time unit perspective: e.g. last 4 weeks uses span for the value 4 and time unit is weeks.
public java.lang.String getReportTimeUnit()
public java.lang.String getTitle()
public TimeUnit reportTimeUnitStringToTimeUnit()
public void setApplicationContext(java.lang.String applicationContext)
applicationContext - application contextual name that scopes Report.public void setDescription(java.lang.String rhs)
rhs - Report description to set.public void setId(java.util.UUID id)
setId in interface SerializableObjectsetId in class AbstractBindableObjectid - unique id of the object to set.public void setProcessedDataEndTime(java.lang.Long dataEndTime)
dataEndTime - the data end time to set.public void setProcessedDataStartTime(java.lang.Long dataStartTime)
dataStartTime - the data start time to set.public void setReportDefinition(ReportDefinition reportDefinition)
ReportDefinition.
reportDefinition - the related ReportDefinition to set.public void setReportDefinitionId(java.util.UUID reportDefinitionId)
ReportDefinition used to define this Report.
reportDefinitionId - report definition id used to reference the
ReportDefinition used to define this Report to set.public void setReportDefinitionList(java.util.List<ReportDefinition> reportDefinition)
ReportDefinition. Method checks given ReportDefinition
for null and size. If argument is null or does not contain any ReportDefinition objects
noting is done.
reportDefinition - List with ReportDefinition objects to store.public void setReportFinished(java.util.Date reportFinished)
reportFinished - Timestamp when report generation is finished. Null if not finished.public void setReportId(java.lang.String rhs)
rhs - id to set.public void setReportId(java.util.UUID rhs)
rhs - id to set.public void setReportTime(java.util.Date reportTime)
reportTime - the report time to set.public void setReportTimeSpan(java.lang.Long reportTimeSpan)
Sets report time span, which is related to field identified by FIELD_NAME_REPORT_TIME_UNIT
(@getReportTimeUnit()).
Span answers the question for how much from time unit perspective: e.g. last 4 weeks uses span for the value 4 and time unit is weeks.
reportTimeSpan - the report time span to set.public void setReportTimeUnit(java.lang.String reportTimeUnit)
reportTimeUnit - the report time unit to set.public void setTitle(java.lang.String title)
title - the Report title to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||