|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.JasperFillManager
public final class JasperFillManager
Fa�ade class for filling compiled report designs with data from report data sources, in order to produce page-oriented documents, ready-to-print.
All methods receive a Map object that should contain the values for the report parameters. These value are retrieved by the engine using the corresponding report parameter name as the key.
There are two types of method signatures with regards to the data source provided for filling the report:
JRDataSource
interface
and use it directly for retrieving report data;
Connection
interface and retrieve
the report data by executing the report internal SQL query through this JDBC connection and wrapping
the returned ResultSet
object inside a JRResultSetDataSource
instance.
JasperReport
,
JRDataSource
,
JRFiller
,
JasperPrint
Method Summary | |
---|---|
JasperPrint |
fill(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Fills the compiled report design loaded from the supplied input stream and returns the generated report object. |
JasperPrint |
fill(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
Fills the compiled report design loaded from the supplied input stream and returns the generated report object. |
JasperPrint |
fill(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
Fills the compiled report design loaded from the supplied input stream and returns the generated report object. |
JasperPrint |
fill(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Fills the compiled report design supplied as the first parameter and returns the generated report object. |
JasperPrint |
fill(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
Fills the compiled report design supplied as the first parameter and returns the generated report object. |
JasperPrint |
fill(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
Fills the compiled report design supplied as the first parameter and returns the generated report object. |
JasperPrint |
fill(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
Fills the compiled report design loaded from the specified file and returns the generated report object. |
JasperPrint |
fill(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
java.sql.Connection connection)
Fills the compiled report design loaded from the specified file and returns the generated report object. |
JasperPrint |
fill(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
JRDataSource dataSource)
Fills the compiled report design loaded from the specified file and returns the generated report object. |
static JasperPrint |
fillReport(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
|
static JasperPrint |
fillReport(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
|
static JasperPrint |
fillReport(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
|
static JasperPrint |
fillReport(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters)
|
static JasperPrint |
fillReport(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
|
static JasperPrint |
fillReport(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
|
static JasperPrint |
fillReport(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
|
static JasperPrint |
fillReport(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
java.sql.Connection connection)
|
static JasperPrint |
fillReport(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
JRDataSource dataSource)
|
static void |
fillReportToFile(JasperReport jasperReport,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters)
|
static void |
fillReportToFile(JasperReport jasperReport,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
|
static void |
fillReportToFile(JasperReport jasperReport,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
|
static java.lang.String |
fillReportToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
|
static java.lang.String |
fillReportToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
java.sql.Connection connection)
|
static java.lang.String |
fillReportToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
JRDataSource dataSource)
|
static void |
fillReportToFile(java.lang.String sourceFileName,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
|
static void |
fillReportToFile(java.lang.String sourceFileName,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
java.sql.Connection connection)
|
static void |
fillReportToFile(java.lang.String sourceFileName,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
JRDataSource dataSource)
|
static void |
fillReportToStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
|
static void |
fillReportToStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
|
static void |
fillReportToStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
|
static void |
fillReportToStream(JasperReport jasperReport,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
|
static void |
fillReportToStream(JasperReport jasperReport,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
|
static void |
fillReportToStream(JasperReport jasperReport,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
|
void |
fillToFile(JasperReport jasperReport,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Fills the compiled report design received as the first parameter and places the result in the file specified by the second parameter. |
void |
fillToFile(JasperReport jasperReport,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
Fills the compiled report design received as the first parameter and places the result in the file specified by the second parameter. |
void |
fillToFile(JasperReport jasperReport,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
Fills the compiled report design received as the first parameter and places the result in the file specified by the second parameter. |
java.lang.String |
fillToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
Fills the compiled report design loaded from the specified file. |
java.lang.String |
fillToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
java.sql.Connection connection)
Fills the compiled report design loaded from the specified file. |
java.lang.String |
fillToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
JRDataSource dataSource)
Fills the compiled report design loaded from the specified file. |
void |
fillToFile(java.lang.String sourceFileName,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
Fills the compiled report design loaded from the file received as the first parameter and places the result in the file specified by the second parameter. |
void |
fillToFile(java.lang.String sourceFileName,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
java.sql.Connection connection)
Fills the compiled report design loaded from the file received as the first parameter and places the result in the file specified by the second parameter. |
void |
fillToFile(java.lang.String sourceFileName,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
JRDataSource dataSource)
Fills the compiled report design loaded from the file received as the first parameter and places the result in the file specified by the second parameter. |
void |
fillToStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Fills the compiled report design loaded from the supplied input stream and writes the generated report object to the output stream specified by the second parameter. |
void |
fillToStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
Fills the compiled report design loaded from the supplied input stream and writes the generated report object to the output stream specified by the second parameter. |
void |
fillToStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
Fills the compiled report design loaded from the supplied input stream and writes the generated report object to the output stream specified by the second parameter. |
void |
fillToStream(JasperReport jasperReport,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Fills the compiled report design supplied as the first parameter and writes the generated report object to the output stream specified by the second parameter. |
void |
fillToStream(JasperReport jasperReport,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
Fills the compiled report design supplied as the first parameter and writes the generated report object to the output stream specified by the second parameter. |
void |
fillToStream(JasperReport jasperReport,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
Fills the compiled report design supplied as the first parameter and writes the generated report object to the output stream specified by the second parameter. |
static JasperFillManager |
getInstance(JasperReportsContext jasperReportsContext)
|
protected java.util.Map<java.lang.String,java.lang.Object> |
setFileResolver(java.io.File file,
java.util.Map<java.lang.String,java.lang.Object> params)
protected static Map |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static JasperFillManager getInstance(JasperReportsContext jasperReportsContext)
public java.lang.String fillToFile(java.lang.String sourceFileName, java.util.Map<java.lang.String,java.lang.Object> params, java.sql.Connection connection) throws JRException
JasperPrint
object representing the generated document,
having the same name as the report design as declared in the source file,
plus the *.jrprint
extension, located in the same directory as the source file.
sourceFileName
- source file containing the compile report designparams
- report parameters mapconnection
- JDBC connection object to use for executing the report internal SQL query
JRException
public java.lang.String fillToFile(java.lang.String sourceFileName, java.util.Map<java.lang.String,java.lang.Object> params) throws JRException
JasperPrint
object representing the generated document,
having the same name as the report design as declared in the source file,
plus the *.jrprint
extension, located in the same directory as the source file.
sourceFileName
- source file containing the compile report designparams
- report parameters map
JRException
JRFiller.fillReport(JasperReport, Map)
public void fillToFile(java.lang.String sourceFileName, java.lang.String destFileName, java.util.Map<java.lang.String,java.lang.Object> params, java.sql.Connection connection) throws JRException
sourceFileName
- source file containing the compile report designdestFileName
- file name to place the generated report intoparams
- report parameters mapconnection
- JDBC connection object to use for executing the report internal SQL query
JRException
public void fillToFile(java.lang.String sourceFileName, java.lang.String destFileName, java.util.Map<java.lang.String,java.lang.Object> params) throws JRException
sourceFileName
- source file containing the compile report designdestFileName
- file name to place the generated report intoparams
- report parameters map
JRException
JRFiller.fillReport(JasperReport, Map)
public void fillToFile(JasperReport jasperReport, java.lang.String destFileName, java.util.Map<java.lang.String,java.lang.Object> parameters, java.sql.Connection connection) throws JRException
jasperReport
- compiled report design object to use for fillingdestFileName
- file name to place the generated report intoparameters
- report parameters mapconnection
- JDBC connection object to use for executing the report internal SQL query
JRException
public void fillToFile(JasperReport jasperReport, java.lang.String destFileName, java.util.Map<java.lang.String,java.lang.Object> parameters) throws JRException
jasperReport
- compiled report design object to use for fillingdestFileName
- file name to place the generated report intoparameters
- report parameters map
JRException
JRFiller.fillReport(JasperReport, Map)
public JasperPrint fill(java.lang.String sourceFileName, java.util.Map<java.lang.String,java.lang.Object> params, java.sql.Connection connection) throws JRException
sourceFileName
- source file containing the compile report designparams
- report parameters mapconnection
- JDBC connection object to use for executing the report internal SQL query
JRException
public JasperPrint fill(java.lang.String sourceFileName, java.util.Map<java.lang.String,java.lang.Object> params) throws JRException
sourceFileName
- source file containing the compile report designparams
- report parameters map
JRException
JRFiller.fillReport(JasperReport, Map)
public void fillToStream(java.io.InputStream inputStream, java.io.OutputStream outputStream, java.util.Map<java.lang.String,java.lang.Object> parameters, java.sql.Connection connection) throws JRException
inputStream
- input stream to read the compiled report design object fromoutputStream
- output stream to write the generated report object toparameters
- report parameters mapconnection
- JDBC connection object to use for executing the report internal SQL query
JRException
public void fillToStream(java.io.InputStream inputStream, java.io.OutputStream outputStream, java.util.Map<java.lang.String,java.lang.Object> parameters) throws JRException
inputStream
- input stream to read the compiled report design object fromoutputStream
- output stream to write the generated report object toparameters
- report parameters map
JRException
JRFiller.fillReport(JasperReport, Map)
public void fillToStream(JasperReport jasperReport, java.io.OutputStream outputStream, java.util.Map<java.lang.String,java.lang.Object> parameters, java.sql.Connection connection) throws JRException
jasperReport
- compiled report design object to use for fillingoutputStream
- output stream to write the generated report object toparameters
- report parameters mapconnection
- JDBC connection object to use for executing the report internal SQL query
JRException
public void fillToStream(JasperReport jasperReport, java.io.OutputStream outputStream, java.util.Map<java.lang.String,java.lang.Object> parameters) throws JRException
jasperReport
- compiled report design object to use for fillingoutputStream
- output stream to write the generated report object toparameters
- report parameters map
JRException
JRFiller.fillReport(JasperReport, Map)
public JasperPrint fill(java.io.InputStream inputStream, java.util.Map<java.lang.String,java.lang.Object> parameters, java.sql.Connection connection) throws JRException
inputStream
- input stream to read the compiled report design object fromparameters
- report parameters mapconnection
- JDBC connection object to use for executing the report internal SQL query
JRException
public JasperPrint fill(java.io.InputStream inputStream, java.util.Map<java.lang.String,java.lang.Object> parameters) throws JRException
inputStream
- input stream to read the compiled report design object fromparameters
- report parameters map
JRException
JRFiller.fillReport(JasperReport, Map)
public JasperPrint fill(JasperReport jasperReport, java.util.Map<java.lang.String,java.lang.Object> parameters, java.sql.Connection connection) throws JRException
jasperReport
- compiled report design object to use for fillingparameters
- report parameters mapconnection
- JDBC connection object to use for executing the report internal SQL query
JRException
public JasperPrint fill(JasperReport jasperReport, java.util.Map<java.lang.String,java.lang.Object> parameters) throws JRException
jasperReport
- compiled report design object to use for fillingparameters
- report parameters map
JRException
JRFiller.fillReport(JasperReport, Map)
public java.lang.String fillToFile(java.lang.String sourceFileName, java.util.Map<java.lang.String,java.lang.Object> params, JRDataSource dataSource) throws JRException
JasperPrint
object representing the generated document,
having the same name as the report design as declared in the source file,
plus the *.jrprint
extension, located in the same directory as the source file.
sourceFileName
- source file containing the compile report designparams
- report parameters mapdataSource
- data source object
JRException
public void fillToFile(java.lang.String sourceFileName, java.lang.String destFileName, java.util.Map<java.lang.String,java.lang.Object> params, JRDataSource dataSource) throws JRException
sourceFileName
- source file containing the compile report designdestFileName
- file name to place the generated report intoparams
- report parameters mapdataSource
- data source object
JRException
public void fillToFile(JasperReport jasperReport, java.lang.String destFileName, java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource) throws JRException
jasperReport
- compiled report design object to use for fillingdestFileName
- file name to place the generated report intoparameters
- report parameters mapdataSource
- data source object
JRException
public JasperPrint fill(java.lang.String sourceFileName, java.util.Map<java.lang.String,java.lang.Object> params, JRDataSource dataSource) throws JRException
sourceFileName
- source file containing the compile report designparams
- report parameters mapdataSource
- data source object
JRException
public void fillToStream(java.io.InputStream inputStream, java.io.OutputStream outputStream, java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource) throws JRException
inputStream
- input stream to read the compiled report design object fromoutputStream
- output stream to write the generated report object toparameters
- report parameters mapdataSource
- data source object
JRException
public void fillToStream(JasperReport jasperReport, java.io.OutputStream outputStream, java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource) throws JRException
jasperReport
- compiled report design object to use for fillingoutputStream
- output stream to write the generated report object toparameters
- report parameters mapdataSource
- data source object
JRException
public JasperPrint fill(java.io.InputStream inputStream, java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource) throws JRException
inputStream
- input stream to read the compiled report design object fromparameters
- report parameters mapdataSource
- data source object
JRException
public JasperPrint fill(JasperReport jasperReport, java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource) throws JRException
jasperReport
- compiled report design object to use for fillingparameters
- report parameters mapdataSource
- data source object
JRException
public static java.lang.String fillReportToFile(java.lang.String sourceFileName, java.util.Map<java.lang.String,java.lang.Object> params, java.sql.Connection connection) throws JRException
JRException
fillToFile(String, Map, Connection)
public static java.lang.String fillReportToFile(java.lang.String sourceFileName, java.util.Map<java.lang.String,java.lang.Object> params) throws JRException
JRException
fillToFile(String, Map)
public static void fillReportToFile(java.lang.String sourceFileName, java.lang.String destFileName, java.util.Map<java.lang.String,java.lang.Object> params, java.sql.Connection connection) throws JRException
JRException
fillToFile(String, String, Map, Connection)
public static void fillReportToFile(java.lang.String sourceFileName, java.lang.String destFileName, java.util.Map<java.lang.String,java.lang.Object> params) throws JRException
JRException
fillToFile(String, String, Map)
public static void fillReportToFile(JasperReport jasperReport, java.lang.String destFileName, java.util.Map<java.lang.String,java.lang.Object> parameters, java.sql.Connection connection) throws JRException
JRException
fillToFile(JasperReport, String, Map, Connection)
public static void fillReportToFile(JasperReport jasperReport, java.lang.String destFileName, java.util.Map<java.lang.String,java.lang.Object> parameters) throws JRException
JRException
fillToFile(JasperReport, String, Map)
public static JasperPrint fillReport(java.lang.String sourceFileName, java.util.Map<java.lang.String,java.lang.Object> params, java.sql.Connection connection) throws JRException
JRException
fill(String, Map, Connection)
public static JasperPrint fillReport(java.lang.String sourceFileName, java.util.Map<java.lang.String,java.lang.Object> params) throws JRException
JRException
fill(String, Map)
public static void fillReportToStream(java.io.InputStream inputStream, java.io.OutputStream outputStream, java.util.Map<java.lang.String,java.lang.Object> parameters, java.sql.Connection connection) throws JRException
JRException
fillToStream(InputStream, OutputStream, Map, Connection)
public static void fillReportToStream(java.io.InputStream inputStream, java.io.OutputStream outputStream, java.util.Map<java.lang.String,java.lang.Object> parameters) throws JRException
JRException
fillToStream(InputStream, OutputStream, Map)
public static void fillReportToStream(JasperReport jasperReport, java.io.OutputStream outputStream, java.util.Map<java.lang.String,java.lang.Object> parameters, java.sql.Connection connection) throws JRException
JRException
fillToStream(JasperReport, OutputStream, Map, Connection)
public static void fillReportToStream(JasperReport jasperReport, java.io.OutputStream outputStream, java.util.Map<java.lang.String,java.lang.Object> parameters) throws JRException
JRException
fillToStream(JasperReport, OutputStream, Map)
public static JasperPrint fillReport(java.io.InputStream inputStream, java.util.Map<java.lang.String,java.lang.Object> parameters, java.sql.Connection connection) throws JRException
JRException
fill(InputStream, Map, Connection)
public static JasperPrint fillReport(java.io.InputStream inputStream, java.util.Map<java.lang.String,java.lang.Object> parameters) throws JRException
JRException
fill(InputStream, Map)
public static JasperPrint fillReport(JasperReport jasperReport, java.util.Map<java.lang.String,java.lang.Object> parameters, java.sql.Connection connection) throws JRException
JRException
fill(JasperReport, Map, Connection)
public static JasperPrint fillReport(JasperReport jasperReport, java.util.Map<java.lang.String,java.lang.Object> parameters) throws JRException
JRException
fill(JasperReport, Map)
public static java.lang.String fillReportToFile(java.lang.String sourceFileName, java.util.Map<java.lang.String,java.lang.Object> params, JRDataSource dataSource) throws JRException
JRException
fillToFile(String, Map, JRDataSource)
public static void fillReportToFile(java.lang.String sourceFileName, java.lang.String destFileName, java.util.Map<java.lang.String,java.lang.Object> params, JRDataSource dataSource) throws JRException
JRException
fillToFile(String, String, Map, JRDataSource)
public static void fillReportToFile(JasperReport jasperReport, java.lang.String destFileName, java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource) throws JRException
JRException
fillToFile(JasperReport, String, Map, JRDataSource)
public static JasperPrint fillReport(java.lang.String sourceFileName, java.util.Map<java.lang.String,java.lang.Object> params, JRDataSource dataSource) throws JRException
JRException
fill(String, Map, JRDataSource)
public static void fillReportToStream(java.io.InputStream inputStream, java.io.OutputStream outputStream, java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource) throws JRException
JRException
fillToStream(InputStream, OutputStream, Map, JRDataSource)
public static void fillReportToStream(JasperReport jasperReport, java.io.OutputStream outputStream, java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource) throws JRException
JRException
fillToStream(JasperReport, OutputStream, Map, JRDataSource)
public static JasperPrint fillReport(java.io.InputStream inputStream, java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource) throws JRException
JRException
fill(InputStream, Map, JRDataSource)
public static JasperPrint fillReport(JasperReport jasperReport, java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource) throws JRException
JRException
fill(JasperReport, Map, JRDataSource)
protected java.util.Map<java.lang.String,java.lang.Object> setFileResolver(java.io.File file, java.util.Map<java.lang.String,java.lang.Object> params)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |