| java.lang.Object org.pentaho.plugin.jfreereport.helper.PentahoTableDataFactory
PentahoTableDataFactory | public class PentahoTableDataFactory implements DataFactory,Cloneable(Code) | | The PentahoTableDataFactory class implements JFreeReport's data factory
and manages the TableModels provided to JFreeReport. The primary
difference between this class and JFreeReport's standard TableDataFactory
is the "getTableIterator" method, which allows the Platform to clean up and
table model resources after their use. Also, we support Pentaho's
IPreparedComponent interface which allows a prepared component to generate
a result set when requested.
author: Will Gorman |
PentahoTableDataFactory | public PentahoTableDataFactory()(Code) | | default constructor
|
PentahoTableDataFactory | public PentahoTableDataFactory(String name, TableModel tableModel)(Code) | | constructor with one time call to addTable for convenience.
Parameters: name - table name Parameters: tableModel - instance of table model |
addPreparedComponent | public void addPreparedComponent(String name, IPreparedComponent component)(Code) | | add a prepared component to the map
Parameters: name - prepared component name Parameters: component - instance of prepared component |
addTable | public void addTable(String name, TableModel tableModel)(Code) | | add a table to the map
Parameters: name - table name Parameters: tableModel - instance of table model |
close | public void close()(Code) | | |
derive | public DataFactory derive() throws ReportDataFactoryException(Code) | | Derives a freshly initialized report data factory, which is independend of
the original data factory. Opening or Closing one data factory must not
affect the other factories.
|
queryData | public TableModel queryData(String query, DataRow parameters)(Code) | | Queries a datasource. The string 'query' defines the name of the query. The
Parameterset given here may contain more data than actually needed.
The dataset may change between two calls, do not assume anything!
Parameters: query - the name of the table. Parameters: parameters - are ignored for this factory. the report data or null. |
removeTable | public void removeTable(String name)(Code) | | remove a table from the map
Parameters: name - table name |
|
|