jet.datasource
Interface JRUserDataSource

All Known Subinterfaces:
JRSecurityUserDataSource, JRUserInstanceDataSource

public interface JRUserDataSource

A JRUserDataSource provides data for JReport for generating reports. JRUserDataSource class is developed by user of JReport, and it can provide data from flat file, non-relational database, or application data. The data returned by this class is in ResultSet object, so user need create ResultSet instance and JReport will use the instance to fetch data. User can also creating their own ResultSet class.


Method Summary
 java.sql.ResultSet getResultSet(java.lang.String param)
          Gets the data in ResultSet according to parameters.
 void releaseResultSet()
          Release the data and related resources.
 

Method Detail

getResultSet

java.sql.ResultSet getResultSet(java.lang.String param)
                                throws JRUserDataSourceException
Gets the data in ResultSet according to parameters.

Parameters:
param, - the parameter as input to specify the data.
Returns:
the ResultSet object
Throws:
JRUserDataSourceException - if a data access error occurs

releaseResultSet

void releaseResultSet()
                      throws JRUserDataSourceException
Release the data and related resources.

Throws:
JRUserDataSourceException - if a data access error occurs