org.jminor.framework.client.model.reporting
Class EntityReportUtil

java.lang.Object
  extended by org.jminor.framework.client.model.reporting.EntityReportUtil

public final class EntityReportUtil
extends Object

A static utility class for working with reports.


Method Summary
static
<T,D> ReportResult<T>
fillReport(ReportWrapper<T,D> reportWrapper, EntityConnectionProvider connectionProvider)
          Takes a ReportWrapper which uses a JDBC datasource and returns an initialized ReportResult object
static
<T,D> ReportResult<T>
fillReport(ReportWrapper<T,D> reportWrapper, ReportDataWrapper<D> dataSource)
          Takes a ReportWrapper object and returns an initialized ReportResult object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fillReport

public static <T,D> ReportResult<T> fillReport(ReportWrapper<T,D> reportWrapper,
                                               EntityConnectionProvider connectionProvider)
                                  throws ReportException
Takes a ReportWrapper which uses a JDBC datasource and returns an initialized ReportResult object

Parameters:
reportWrapper - the report wrapper
connectionProvider - the EntityConnectionProvider instance to use when filling the report
Returns:
an initialized ReportResult object
Throws:
ReportException - in case of a report exception

fillReport

public static <T,D> ReportResult<T> fillReport(ReportWrapper<T,D> reportWrapper,
                                               ReportDataWrapper<D> dataSource)
                                  throws ReportException
Takes a ReportWrapper object and returns an initialized ReportResult object

Parameters:
reportWrapper - the report wrapper
dataSource - the ReportDataWrapper to use
Returns:
an initialized ReportResult object
Throws:
ReportException - in case of a report exception