jet.datasource
Interface JRSecurityUserDataSource

All Superinterfaces:
JRUserDataSource

public interface JRSecurityUserDataSource
extends JRUserDataSource

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


Method Summary
 java.sql.ResultSet getResultSet(SecurityContext sc, java.lang.String param)
          Gets the data in the ResultSet according to parameters.
 
Methods inherited from interface jet.datasource.JRUserDataSource
getResultSet, releaseResultSet
 

Method Detail

getResultSet

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

Parameters:
sc - A SecurityContext object, which is implemented by the user. Refer to jet.server.api.SecurityContext.
param - The parameter that the user wants to use for UDS.
Returns:
The ResultSet object.
Throws:
JRUserDataSourceException - if a data access error occurs.