Package org.jfree.report
Class TableReportDataFactory
java.lang.Object
org.jfree.report.TableReportDataFactory
- All Implemented Interfaces:
Cloneable
,ReportDataFactory
Creation-Date: 21.02.2006, 17:59:32
- Author:
- Thomas Morgner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTable
(String name, TableModel tableModel) clone()
void
close()
Closes the report data factory and all report data instances that have been returned by this instance.derive()
Derives a freshly initialized report data factory, which is independend of the original data factory.void
open()
Queries a datasource.void
removeTable
(String name)
-
Constructor Details
-
TableReportDataFactory
public TableReportDataFactory() -
TableReportDataFactory
-
-
Method Details
-
addTable
-
removeTable
-
queryData
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!- Specified by:
queryData
in interfaceReportDataFactory
- Parameters:
query
- the name of the table.parameters
- are ignored for this factory.- Returns:
- the report data or null.
- Throws:
ReportDataFactoryException
-
open
public void open()- Specified by:
open
in interfaceReportDataFactory
-
close
public void close()Description copied from interface:ReportDataFactory
Closes the report data factory and all report data instances that have been returned by this instance.- Specified by:
close
in interfaceReportDataFactory
-
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.- Specified by:
derive
in interfaceReportDataFactory
- Returns:
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-