lumis.report
Interface IJRDataSourceProvider

Package class diagram package IJRDataSourceProvider
All Known Implementing Classes:
DailyVisitorsJRDataSourceProvider, HourlyVisitorsJRDataSourceProvider

public interface IJRDataSourceProvider

Provides JRDataSource objects for reports. A custom data source provider, that implements this interface, may be specified for a report.

Since:
4.2.0

Method Summary
 net.sf.jasperreports.engine.JRDataSource create(net.sf.jasperreports.engine.JasperReport jasperreport, Map<String,Object> parameters)
          Creates a data source for the given report.
 void dispose(net.sf.jasperreports.engine.JRDataSource jrDataSource)
          Called when a data source created by create(JasperReport, Map) is no longer used.
 

Method Detail

create

net.sf.jasperreports.engine.JRDataSource create(net.sf.jasperreports.engine.JasperReport jasperreport,
                                                Map<String,Object> parameters)
                                                throws net.sf.jasperreports.engine.JRException,
                                                       PortalException
Creates a data source for the given report.

Parameters:
jasperreport - the report.
parameters - the parameters that are provided for the report.
Returns:
the data source.
Throws:
net.sf.jasperreports.engine.JRException
PortalException
Since:
4.2.0

dispose

void dispose(net.sf.jasperreports.engine.JRDataSource jrDataSource)
             throws net.sf.jasperreports.engine.JRException,
                    PortalException
Called when a data source created by create(JasperReport, Map) is no longer used.

Parameters:
jrDataSource - the data source object.
Throws:
net.sf.jasperreports.engine.JRException
PortalException
Since:
4.2.0


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.