org.jfree.report.modules.data.sql

Class SimpleSQLReportDataFactory

public class SimpleSQLReportDataFactory extends Object implements ReportDataFactory, Cloneable

Creation-Date: 19.02.2006, 17:37:33

Author: Thomas Morgner

Constructor Summary
SimpleSQLReportDataFactory(Connection connection)
SimpleSQLReportDataFactory(ConnectionProvider connectionProvider)
Method Summary
Objectclone()
voidclose()
ReportDataFactoryderive()
Derives a freshly initialized report data factory, which is independend of the original data factory.
booleanisLabelMapping()
voidopen()
ReportDataqueryData(String query, DataSet parameters)
Queries a datasource.
voidsetLabelMapping(boolean labelMapping)

Constructor Detail

SimpleSQLReportDataFactory

public SimpleSQLReportDataFactory(Connection connection)

SimpleSQLReportDataFactory

public SimpleSQLReportDataFactory(ConnectionProvider connectionProvider)

Method Detail

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:

isLabelMapping

public boolean isLabelMapping()

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:

setLabelMapping

public void setLabelMapping(boolean labelMapping)