java.lang.Object
is.codion.framework.domain.report.AbstractReport<T,P,R>
- Type Parameters:
T- the report typeP- the report parameters typeR- the report result type
- All Implemented Interfaces:
Report<T,P, R>
-
Field Summary
Fields inherited from interface Report
CACHE_REPORTS, REPORT_PATH -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractReport(String reportPath, boolean cacheReport) Instantiates a new AbstractReport. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleancached()final voidClears the report cache, if caching is not enabled calling this method has no effectfinal booleanprotected StringThis default implementation combines the report location specified byReport.REPORT_PATHand the path of this report.final inthashCode()protected final Treport()Returns the underlying report, either from the cache, if enabled or viaReport.load().protected final Stringfinal StringtoString()
-
Constructor Details
-
AbstractReport
Instantiates a new AbstractReport.- Parameters:
reportPath- the report path, relative to the central report pathReport.REPORT_PATH.cacheReport- true if the report should be cached when loaded
-
-
Method Details
-
toString
-
equals
-
hashCode
-
cached
-
clearCache
-
fullReportPath
This default implementation combines the report location specified byReport.REPORT_PATHand the path of this report.- Returns:
- a unique path for this report
- Throws:
NoSuchElementException- in caseReport.REPORT_PATHis not specified
-
reportPath
- Returns:
- the report path
-
report
Returns the underlying report, either from the cache, if enabled or viaReport.load().- Returns:
- the report
- Throws:
ReportException- in case of an exception- See Also:
-