Query executer interface.
An implementation of this interface is created when the input data of a report/dataset
is specified by a query.
The implementation will run the query and create a
net.sf.jasperreports.engine.JRDataSource JRDataSource from the result.
The query executers would usually be initialized by a
net.sf.jasperreports.engine.query.JRQueryExecuterFactory JRQueryExecuterFactory with the query and the parameter values.
author: Lucian Chirita (lucianc@users.sourceforge.net) version: $Id: JRQueryExecuter.java 1229 2006-04-19 10:27:35Z teodord $ See Also:net.sf.jasperreports.engine.query.JRQueryExecuterFactory
Method Summary
public boolean
cancelQuery() Cancels the query if it's currently running.
public void
close() Closes resources kept open during the data source iteration.
Cancels the query if it's currently running.
This method will be called from a different thread if the client decides to
cancel the filling process.
true iff the query was running and it has been cancelled throws: JRException -
Closes resources kept open during the data source iteration.
This method is called after the report is filled or the dataset is iterated.
If a resource is not needed after the data source has been created, it should be
released at the end of
JRQueryExecuter.createDatasource() createDatasource .
Executes the query and creates a
JRDataSource JRDataSource out of the result.
a JRDataSource JRDataSource wrapping the query execution result. throws: JRException -