Class SimpleSQLReportDataFactory
java.lang.Object
org.jfree.report.modules.data.sql.SimpleSQLReportDataFactory
- All Implemented Interfaces:
Cloneable,ReportDataFactory
- Direct Known Subclasses:
SQLReportDataFactory
Creation-Date: 19.02.2006, 17:37:33
- Author:
- Thomas Morgner
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleSQLReportDataFactory(Connection connection) SimpleSQLReportDataFactory(ConnectionProvider connectionProvider) -
Method Summary
Modifier and TypeMethodDescriptionclone()voidclose()Closes the report data factory and all report data instances that have been returned by this instance.derive()Derives a freshly initialized report data factory, which is independend of the original data factory.booleanvoidopen()Queries a datasource.voidsetLabelMapping(boolean labelMapping)
-
Constructor Details
-
SimpleSQLReportDataFactory
-
SimpleSQLReportDataFactory
-
-
Method Details
-
isLabelMapping
public boolean isLabelMapping() -
setLabelMapping
public void setLabelMapping(boolean labelMapping) -
queryData
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!- Specified by:
queryDatain interfaceReportDataFactory- Parameters:
query-parameters-- Returns:
- Throws:
ReportDataFactoryException
-
open
public void open()- Specified by:
openin interfaceReportDataFactory
-
close
public void close()Description copied from interface:ReportDataFactoryCloses the report data factory and all report data instances that have been returned by this instance.- Specified by:
closein interfaceReportDataFactory
-
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.- Specified by:
derivein interfaceReportDataFactory- Returns:
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-