Class JRResultSetDataSource

java.lang.Object
net.sf.jasperreports.engine.JRResultSetDataSource
All Implemented Interfaces:
JRDataSource

public class JRResultSetDataSource extends Object implements JRDataSource
This is a default implementation of the JRDataSource interface. Since most reports are generated using data from a relational database, JasperReports includes by default this implementation that wraps a java.sql.ResultSet object.

This class can be instantiated intentionally to wrap already loaded result sets before passing them to the report-filling routines, but it is also used by the reporting engine to wrap the data retrieved from the database after having executed the report query (if present) through JDBC.

Author:
Teodor Danciu (teodord@users.sourceforge.net)