org.jfree.report.modules.data.beans

Class StaticReportDataFactory

public class StaticReportDataFactory extends Object implements ReportDataFactory

This report data factory uses introspection to search for a report data source. The query has the following format: <full-qualified-classname&gr;#methodName(Parameters) <full-qualified-classname&gr;(constructorparams)#methodName(Parameters) <full-qualified-classname&gr;(constructorparams)

Author: Thomas Morgner

Constructor Summary
StaticReportDataFactory()
Method Summary
voidclose()
ReportDataFactoryderive()
Derives a freshly initialized report data factory, which is independend of the original data factory.
protected ClassLoadergetClassLoader()
voidopen()
ReportDataqueryData(String query, DataSet parameters)
Queries a datasource.

Constructor Detail

StaticReportDataFactory

public StaticReportDataFactory()

Method Detail

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:

getClassLoader

protected ClassLoader getClassLoader()

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: