Package net.sf.jasperreports.engine.fill
Class JRFiller
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRFiller
-
public final class JRFiller extends Object
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_THREAD_INTERRUPTED
static String
EXCEPTION_MESSAGE_KEY_UNKNOWN_REPORT_SECTION_TYPE
static String
PROPERTY_DEFAULT_LOCALE
The default locale used to fill reports.static String
PROPERTY_DEFAULT_TIMEZONE
The default time zone used to fill reports.
-
Method Summary
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_THREAD_INTERRUPTED
public static final String EXCEPTION_MESSAGE_KEY_THREAD_INTERRUPTED
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_UNKNOWN_REPORT_SECTION_TYPE
public static final String EXCEPTION_MESSAGE_KEY_UNKNOWN_REPORT_SECTION_TYPE
- See Also:
- Constant Field Values
-
PROPERTY_DEFAULT_LOCALE
public static final String PROPERTY_DEFAULT_LOCALE
The default locale used to fill reports.The property is overridden by the value of the
JRParameter.REPORT_LOCALE
parameter. By default, the system/JVM locale is used.- See Also:
JRParameter.REPORT_LOCALE
, Constant Field Values
-
PROPERTY_DEFAULT_TIMEZONE
public static final String PROPERTY_DEFAULT_TIMEZONE
The default time zone used to fill reports.The property is overridden by the value of the
JRParameter.REPORT_TIME_ZONE
parameter. By default, the system/JVM time zone is used.
-
-
Method Detail
-
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 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_SOURCE
has 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
-
-