Package net.sf.jasperreports.engine.fill
Class JRFiller
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRFiller
-
public final class JRFiller extends java.lang.Object- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEXCEPTION_MESSAGE_KEY_THREAD_INTERRUPTEDstatic java.lang.StringEXCEPTION_MESSAGE_KEY_UNKNOWN_REPORT_SECTION_TYPEstatic java.lang.StringPROPERTY_DEFAULT_LOCALEThe default locale used to fill reports.static java.lang.StringPROPERTY_DEFAULT_TIMEZONEThe default time zone used to fill reports.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected 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, java.util.Map<java.lang.String,java.lang.Object> parameters)static JasperPrintfill(JasperReportsContext jasperReportsContext, JasperReportSource reportSource, java.util.Map<java.lang.String,java.lang.Object> parameters, java.sql.Connection conn)static JasperPrintfill(JasperReportsContext jasperReportsContext, JasperReportSource reportSource, java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource)static JasperPrintfill(JasperReportsContext jasperReportsContext, JasperReport jasperReport, java.util.Map<java.lang.String,java.lang.Object> parameters)Fills a report.static JasperPrintfill(JasperReportsContext jasperReportsContext, JasperReport jasperReport, java.util.Map<java.lang.String,java.lang.Object> parameters, java.sql.Connection conn)static JasperPrintfill(JasperReportsContext jasperReportsContext, JasperReport jasperReport, java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource)
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_THREAD_INTERRUPTED
public static final java.lang.String EXCEPTION_MESSAGE_KEY_THREAD_INTERRUPTED
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_UNKNOWN_REPORT_SECTION_TYPE
public static final java.lang.String EXCEPTION_MESSAGE_KEY_UNKNOWN_REPORT_SECTION_TYPE
- See Also:
- Constant Field Values
-
PROPERTY_DEFAULT_LOCALE
public static final java.lang.String 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:
JRParameter.REPORT_LOCALE, Constant Field Values
-
PROPERTY_DEFAULT_TIMEZONE
public static final java.lang.String 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.
-
-
Method Detail
-
fill
public static JasperPrint fill(JasperReportsContext jasperReportsContext, JasperReport jasperReport, java.util.Map<java.lang.String,java.lang.Object> parameters, java.sql.Connection conn) throws JRException
- Throws:
JRException
-
fill
public static JasperPrint fill(JasperReportsContext jasperReportsContext, JasperReportSource reportSource, java.util.Map<java.lang.String,java.lang.Object> parameters, java.sql.Connection conn) throws JRException
- Throws:
JRException
-
fill
public static JasperPrint fill(JasperReportsContext jasperReportsContext, JasperReport jasperReport, java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource) throws JRException
- Throws:
JRException
-
fill
public static JasperPrint fill(JasperReportsContext jasperReportsContext, JasperReportSource reportSource, java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource) throws JRException
- Throws:
JRException
-
fill
public static JasperPrint fill(JasperReportsContext jasperReportsContext, JasperReport jasperReport, java.util.Map<java.lang.String,java.lang.Object> parameters) throws JRException
Fills 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, java.util.Map<java.lang.String,java.lang.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
-
-