org.jfree.report

Class TableReportDataFactory

public class TableReportDataFactory extends Object implements ReportDataFactory, Cloneable

Creation-Date: 21.02.2006, 17:59:32

Author: Thomas Morgner

Constructor Summary
TableReportDataFactory()
TableReportDataFactory(String name, TableModel tableModel)
Method Summary
voidaddTable(String name, TableModel tableModel)
Objectclone()
voidclose()
ReportDataFactoryderive()
Derives a freshly initialized report data factory, which is independend of the original data factory.
voidopen()
ReportDataqueryData(String query, DataSet parameters)
Queries a datasource.
voidremoveTable(String name)

Constructor Detail

TableReportDataFactory

public TableReportDataFactory()

TableReportDataFactory

public TableReportDataFactory(String name, TableModel tableModel)

Method Detail

addTable

public void addTable(String name, TableModel tableModel)

clone

public Object clone()

close

public void close()

derive

public ReportDataFactory derive()
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.

Returns:

open

public void open()

queryData

public ReportData queryData(String query, DataSet parameters)
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 are ignored for this factory.

Returns: the report data or null.

removeTable

public void removeTable(String name)