public class JasperReportService extends AbstractReportService<net.sf.jasperreports.engine.JasperReport>
| Modifier and Type | Field and Description |
|---|---|
static String |
TEMPLATE_EXTENSION |
| Constructor and Description |
|---|
JasperReportService(int templateCacheMinSize,
int templateCacheMaxSize) |
| Modifier and Type | Method and Description |
|---|---|
protected ReportOutput |
createReportFromHql(ReportRequest reportInput)
Creates report using a template that uses HQL for fetching data
|
protected ReportOutput |
createReportFromJavaBean(ReportRequest reportInput)
Creates a report using given report input where the report data source is java beans
|
protected ReportOutput |
createReportFromSql(ReportRequest reportInput,
Connection connection)
Creates report for given report template, format, connection and parameters
|
protected String |
getTemplateExtension() |
protected net.sf.jasperreports.engine.JasperReport |
loadTemplate(InputStream templateInputStream) |
createReport, createReportFromSql, getTemplate, isValidTemplatepublic static final String TEMPLATE_EXTENSION
public JasperReportService(int templateCacheMinSize,
int templateCacheMaxSize)
templateCacheMinSize - Minimum size of template cachetemplateCacheMaxSize - Maximum size of template cacheprotected String getTemplateExtension()
getTemplateExtension in class AbstractReportService<net.sf.jasperreports.engine.JasperReport>protected ReportOutput createReportFromSql(ReportRequest reportInput, Connection connection)
AbstractReportServicecreateReportFromSql in class AbstractReportService<net.sf.jasperreports.engine.JasperReport>reportInput - Report Input objectprotected ReportOutput createReportFromJavaBean(ReportRequest reportInput)
AbstractReportServicecreateReportFromJavaBean in class AbstractReportService<net.sf.jasperreports.engine.JasperReport>reportInput - The report inputprotected ReportOutput createReportFromHql(ReportRequest reportInput)
AbstractReportServicecreateReportFromHql in class AbstractReportService<net.sf.jasperreports.engine.JasperReport>reportInput - The report inputprotected net.sf.jasperreports.engine.JasperReport loadTemplate(InputStream templateInputStream)
loadTemplate in class AbstractReportService<net.sf.jasperreports.engine.JasperReport>templateInputStream - Input stream from which the report template is to be loadedCopyright © 2015–2016 eGovernments Foundation. All rights reserved.