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 ReportDataFactoryquery - parameters - ReportDataFactoryExceptionpublic void open()
open in interface ReportDataFactorypublic void close()
ReportDataFactoryclose in interface ReportDataFactorypublic ReportDataFactory derive()
derive in interface ReportDataFactorypublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException