lumis.report.dailyvisitors
Class DailyVisitorsJRDataSourceProvider

Package class diagram package DailyVisitorsJRDataSourceProvider
java.lang.Object
  extended by lumis.report.dailyvisitors.DailyVisitorsJRDataSourceProvider
All Implemented Interfaces:
IJRDataSourceProvider

public class DailyVisitorsJRDataSourceProvider
extends Object
implements IJRDataSourceProvider

Data source provider used for the daily visitors report.

Since:
4.2.1

Constructor Summary
DailyVisitorsJRDataSourceProvider()
           
 
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 IJRDataSourceProvider.create(JasperReport, Map) is no longer used.
static net.sf.jasperreports.engine.JRDataSource getDataForChart(Date startDate, Date endDate, String rootChannelPath)
          Returns the data source to be used in the chart of the report.
static net.sf.jasperreports.engine.JRDataSource getDataForTable(Date startDate, Date endDate, String rootChannelPath)
          Returns the data source to be used in the table of the report.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DailyVisitorsJRDataSourceProvider

public DailyVisitorsJRDataSourceProvider()
Method Detail

getDataForTable

public static net.sf.jasperreports.engine.JRDataSource getDataForTable(Date startDate,
                                                                       Date endDate,
                                                                       String rootChannelPath)
                                                                throws net.sf.jasperreports.engine.JRException
Returns the data source to be used in the table of the report.

Parameters:
startDate - the start of the period to be read from. If null 30 days previous to the current day will be used. The time part of the date is ignored.
endDate - the end of the period to be read from. If null the current day will be used. The time part of the date is ignored.
rootChannelPath - the path for the root channel of the portal area. Used to filter the data read.
Returns:
the data source.
Throws:
net.sf.jasperreports.engine.JRException
Since:
4.2.1

getDataForChart

public static net.sf.jasperreports.engine.JRDataSource getDataForChart(Date startDate,
                                                                       Date endDate,
                                                                       String rootChannelPath)
                                                                throws net.sf.jasperreports.engine.JRException
Returns the data source to be used in the chart of the report.

Parameters:
startDate - the start of the period to be read from. If null 30 days previous to the current day will be used. The time part of the date is ignored.
endDate - the end of the period to be read from. If null the current day will be used. The time part of the date is ignored.
rootChannelPath - the path for the root channel of the portal area. Used to filter the data read.
Returns:
the data source.
Throws:
net.sf.jasperreports.engine.JRException
Since:
4.2.1

create

public net.sf.jasperreports.engine.JRDataSource create(net.sf.jasperreports.engine.JasperReport jasperreport,
                                                       Map<String,Object> parameters)
                                                throws net.sf.jasperreports.engine.JRException
Description copied from interface: IJRDataSourceProvider
Creates a data source for the given report.

Specified by:
create in interface IJRDataSourceProvider
Parameters:
jasperreport - the report.
parameters - the parameters that are provided for the report.
Returns:
the data source.
Throws:
net.sf.jasperreports.engine.JRException

dispose

public void dispose(net.sf.jasperreports.engine.JRDataSource jrdatasource)
             throws net.sf.jasperreports.engine.JRException
Description copied from interface: IJRDataSourceProvider
Called when a data source created by IJRDataSourceProvider.create(JasperReport, Map) is no longer used.

Specified by:
dispose in interface IJRDataSourceProvider
Parameters:
jrdatasource - the data source object.
Throws:
net.sf.jasperreports.engine.JRException


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.