Package net.sf.jasperreports.engine.fill
Class JRFiller
java.lang.Object
net.sf.jasperreports.engine.fill.JRFiller
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected static JRBaseFillercreateBandReportFiller(JasperReportsContext jasperReportsContext, JasperReportSource reportSource) static JRBaseFillercreateFiller(JasperReportsContext jasperReportsContext, JasperReport jasperReport) static ReportFillercreateReportFiller(JasperReportsContext jasperReportsContext, JasperReportSource reportSource) static ReportFillercreateReportFiller(JasperReportsContext jasperReportsContext, JasperReport jasperReport) static JasperPrintfill(JasperReportsContext jasperReportsContext, JasperReportSource reportSource, Map<String, Object> parameters) static JasperPrintfill(JasperReportsContext jasperReportsContext, JasperReportSource reportSource, Map<String, Object> parameters, Connection conn) static JasperPrintfill(JasperReportsContext jasperReportsContext, JasperReportSource reportSource, Map<String, Object> parameters, JRDataSource dataSource) static JasperPrintfill(JasperReportsContext jasperReportsContext, JasperReport jasperReport, Map<String, Object> parameters) Fills a report.static JasperPrintfill(JasperReportsContext jasperReportsContext, JasperReport jasperReport, Map<String, Object> parameters, Connection conn) static JasperPrintfill(JasperReportsContext jasperReportsContext, JasperReport jasperReport, Map<String, Object> parameters, JRDataSource dataSource)
-
Field Details
-
EXCEPTION_MESSAGE_KEY_THREAD_INTERRUPTED
- See Also:
-
EXCEPTION_MESSAGE_KEY_UNKNOWN_REPORT_SECTION_TYPE
- See Also:
-
PROPERTY_DEFAULT_LOCALE
The default locale used to fill reports.The property is overridden by the value of the
JRParameter.REPORT_LOCALEparameter. By default, the system/JVM locale is used.- See Also:
-
PROPERTY_DEFAULT_TIMEZONE
The default time zone used to fill reports.The property is overridden by the value of the
JRParameter.REPORT_TIME_ZONEparameter. By default, the system/JVM time zone is used.- See Also:
-
-
Method Details
-
fill
public static JasperPrint fill(JasperReportsContext jasperReportsContext, JasperReport jasperReport, Map<String, Object> parameters, Connection conn) throws JRException- Throws:
JRException
-
fill
public static JasperPrint fill(JasperReportsContext jasperReportsContext, JasperReportSource reportSource, Map<String, Object> parameters, Connection conn) throws JRException- Throws:
JRException
-
fill
public static JasperPrint fill(JasperReportsContext jasperReportsContext, JasperReport jasperReport, Map<String, Object> parameters, JRDataSource dataSource) throws JRException- Throws:
JRException
-
fill
public static JasperPrint fill(JasperReportsContext jasperReportsContext, JasperReportSource reportSource, Map<String, Object> parameters, JRDataSource dataSource) throws JRException- Throws:
JRException
-
fill
public static JasperPrint fill(JasperReportsContext jasperReportsContext, JasperReport jasperReport, Map<String, Object> parameters) throws JRExceptionFills a report. The data source used to fill the report is determined in the following way:- If a non-null value of the
REPORT_DATA_SOURCEhas been specified, it will be used as data source. - Otherwise, if the report has a query then a data source will be created based on the query and connection parameter values.
- Otherwise, the report will be filled without a data source.
- Parameters:
jasperReport- the reportparameters- the fill parameters- Returns:
- the filled report
- Throws:
JRException
- If a non-null value of the
-
fill
public static JasperPrint fill(JasperReportsContext jasperReportsContext, JasperReportSource reportSource, Map<String, Object> parameters) throws JRException- Throws:
JRException
-
createFiller
public static JRBaseFiller createFiller(JasperReportsContext jasperReportsContext, JasperReport jasperReport) throws JRException - Throws:
JRException
-
createBandReportFiller
protected static JRBaseFiller createBandReportFiller(JasperReportsContext jasperReportsContext, JasperReportSource reportSource) throws JRException - Throws:
JRException
-
createReportFiller
public static ReportFiller createReportFiller(JasperReportsContext jasperReportsContext, JasperReport jasperReport) throws JRException - Throws:
JRException
-
createReportFiller
public static ReportFiller createReportFiller(JasperReportsContext jasperReportsContext, JasperReportSource reportSource) throws JRException - Throws:
JRException
-