Interface JRReport<R>
- Type Parameters:
R- the type this report produces when filled
public interface JRReport<R>
extends Report<net.sf.jasperreports.engine.JasperReport, Map<String,?>, R>
A JasperReport, producing a result of type
R when filled.
Identified by a plain ReportType, created via
ReportType.reportType(String), since a report type names
a report and says nothing of the engine backing it:
ReportType<Map<String, ?>, JasperPrint> REPORT = reportType("customer_report");
add(REPORT, classPathReport(ChinookImpl.class, "customer_report.jasper"));
Filling produces a JasperPrint unless an export is applied via
JasperReports.export(JRReport, JRExport), in which case the report produces
whatever that export produces, a PDF for example, in which case the client never
sees a JasperReports type:
ReportType<Map<String, ?>, byte[]> REPORT = reportType("customer_report");
add(REPORT, export(classPathReport(ChinookImpl.class, "customer_report.jasper"), PDF));
- See Also:
-
Field Summary
Fields inherited from interface Report
CACHE_REPORTS, REPORT_PATH -
Method Summary
Methods inherited from interface Report
cached, clearCache, fill, load