| org.jfree.report.DataFactory
All known Subclasses: org.jfree.report.TableDataFactory, org.pentaho.plugin.jfreereport.helper.PentahoTableDataFactory, org.jfree.report.modules.misc.datafactory.sql.SimpleSQLReportDataFactory, org.jfree.report.states.CachingDataFactory, org.pentaho.reportdesigner.crm.report.reportexporter.jfreereport.NullDataFactory, org.pentaho.reportdesigner.crm.report.datasetplugin.SimplePreviewableSQLReportDataFactory, org.jfree.report.modules.misc.datafactory.StaticDataFactory,
DataFactory | public interface DataFactory (Code) | | Creates a tablemodel on request. If the returned tablemodel is a
org.jfree.report.util.CloseableTableModel the tablemodel must remain open until the DataFactory remains open. The TableModel should not be disposed until the
data-factory has been closed.
author: Thomas Morgner |
Method Summary | |
public void | close() Closes the data factory and frees all resources held by this instance. | public DataFactory | derive() Returns a copy of the data factory that is not affected by its anchestor and holds no connection to the anchestor
anymore. | public void | open() Opens the data factory. | public TableModel | queryData(String query, DataRow parameters) Queries a datasource. |
close | public void close()(Code) | | Closes the data factory and frees all resources held by this instance.
|
derive | public DataFactory derive() throws ReportDataFactoryException(Code) | | Returns a copy of the data factory that is not affected by its anchestor and holds no connection to the anchestor
anymore. A data-factory will be derived at the beginning of the report processing.
a copy of the data factory. throws: ReportDataFactoryException - if an error occured. |
open | public void open()(Code) | | Opens the data factory. This initializes everything. Performing queries on data factories which have not yet been
opened will result in exceptions.
|
queryData | public TableModel queryData(String query, DataRow parameters) throws ReportDataFactoryException(Code) | | Queries a datasource. The string 'query' defines the name of the query. The Parameterset given here may contain
more data than actually needed for the query.
The parameter-dataset may change between two calls, do not assume anything, and do not hold references to the
parameter-dataset or the position of the columns in the dataset.
Parameters: query - the query string Parameters: parameters - the parameters for the query the result of the query as table model. throws: ReportDataFactoryException - if an error occured while performing the query. |
|
|