Modifier and Type | Method and Description |
---|---|
static JRReport |
classPathReport(Class<?> resourceClass,
String reportPath)
Instantiates a JRReport for a classpath based report.
|
static JRReport |
fileReport(String reportPath)
Instantiates a JRReport for a file based report, either loaded from a URL or from the filesystem.
|
static JRReport |
fileReport(String reportPath,
boolean cacheReport)
Instantiates a JRReport for a file based report, either loaded from a URL or from the filesystem.
|
static net.sf.jasperreports.engine.JasperPrint |
fillReport(Report<net.sf.jasperreports.engine.JasperReport,net.sf.jasperreports.engine.JasperPrint,Map<String,Object>> report,
net.sf.jasperreports.engine.JRDataSource dataSource)
Fills the report using the data source wrapped by the given data wrapper
|
static net.sf.jasperreports.engine.JasperPrint |
fillReport(Report<net.sf.jasperreports.engine.JasperReport,net.sf.jasperreports.engine.JasperPrint,Map<String,Object>> report,
net.sf.jasperreports.engine.JRDataSource dataSource,
Map<String,Object> reportParameters)
Fills the report using the given data.
|
static JRReportType |
reportType(String name) |
public static JRReportType reportType(String name)
name
- the report namepublic static JRReport classPathReport(Class<?> resourceClass, String reportPath)
resourceClass
- the class owning the report resourcereportPath
- the report path, relative to the resource classpublic static JRReport fileReport(String reportPath)
reportPath
- the report path, relative to the central report path Report.REPORT_PATH
public static JRReport fileReport(String reportPath, boolean cacheReport)
reportPath
- the report path, relative to the central report path Report.REPORT_PATH
cacheReport
- if true the report is only loaded once and cachedpublic static net.sf.jasperreports.engine.JasperPrint fillReport(Report<net.sf.jasperreports.engine.JasperReport,net.sf.jasperreports.engine.JasperPrint,Map<String,Object>> report, net.sf.jasperreports.engine.JRDataSource dataSource) throws ReportException
report
- the reportdataSource
- the data provider to use for the report generationReportException
- in case of an exceptionpublic static net.sf.jasperreports.engine.JasperPrint fillReport(Report<net.sf.jasperreports.engine.JasperReport,net.sf.jasperreports.engine.JasperPrint,Map<String,Object>> report, net.sf.jasperreports.engine.JRDataSource dataSource, Map<String,Object> reportParameters) throws ReportException
report
- the reportdataSource
- the data provider to use for the report generationreportParameters
- the report parametersReportException
- in case of an exception