org.jfree.report.data

Class CachingReportDataFactory

public class CachingReportDataFactory extends Object implements ReportDataFactory

Creation-Date: 19.11.2006, 13:35:45

Author: Thomas Morgner

Constructor Summary
CachingReportDataFactory(ReportDataFactory backend)
Method Summary
voidclose()
Closes the report data factory and all report data instances that have been returned by this instance.
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.

Constructor Detail

CachingReportDataFactory

public CachingReportDataFactory(ReportDataFactory backend)

Method Detail

close

public void close()
Closes the report data factory and all report data instances that have been returned by this instance.

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 parameters

Returns: