Class JasperFillManager


  • public final class JasperFillManager
    extends Object
    Facade class for filling compiled report designs with data from report data sources, in order to produce page-oriented documents, ready-to-print.

    It exposes a variety of methods that receive a report template in the form of an object, file, or input stream, and also produces a document in various output forms (object, file, or output stream).

    All methods receive a Map object that should contain the values for the report parameters. These values 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:

    • Methods that receive an instance of the JRDataSource interface and use it directly for retrieving report data;
    • Methods that receive an instance of the java.sql.Connection interface and retrieve the report data by executing the report internal SQL query through this JDBC connection and wrapping the returned java.sql.ResultSet object inside a JRResultSetDataSource instance.
    Author:
    Teodor Danciu (teodord@users.sourceforge.net)
    See Also:
    JasperReport, JRDataSource, JRFiller, JasperPrint