org.jfree.report.modules.data.sql
public class SimpleSQLReportDataFactory extends java.lang.Object implements ReportDataFactory, java.lang.Cloneable
Constructor and Description |
---|
SimpleSQLReportDataFactory(java.sql.Connection connection) |
SimpleSQLReportDataFactory(ConnectionProvider connectionProvider) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
close()
Closes the report data factory and all report data instances that have
been returned by this instance.
|
ReportDataFactory |
derive()
Derives a freshly initialized report data factory, which is independend of
the original data factory.
|
boolean |
isLabelMapping() |
void |
open() |
ReportData |
queryData(java.lang.String query,
DataSet parameters)
Queries a datasource.
|
void |
setLabelMapping(boolean labelMapping) |
public SimpleSQLReportDataFactory(java.sql.Connection connection)
public SimpleSQLReportDataFactory(ConnectionProvider connectionProvider)
public boolean isLabelMapping()
public void setLabelMapping(boolean labelMapping)
public ReportData queryData(java.lang.String query, DataSet parameters) throws ReportDataFactoryException
queryData
in interface ReportDataFactory
query
- parameters
- ReportDataFactoryException
public void open()
open
in interface ReportDataFactory
public void close()
ReportDataFactory
close
in interface ReportDataFactory
public ReportDataFactory derive()
derive
in interface ReportDataFactory
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException