Interface ReportType<T,R,P>

Type Parameters:
T - the report type
R - the report result type
P - the report parameters type
All Known Subinterfaces:
JRReportType

public interface ReportType<T,R,P>
Identifies a report. A factory for ReportType instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    fill(Report<T,R,P> report, Connection connection, P parameters)
    Fills the given report.
     
    static <T, R, P> ReportType<T,R,P>
    Instantiates a new Report instance with the given name.
  • Method Details

    • name

      String name()
      Returns:
      the report name
    • fill

      R fill(Report<T,R,P> report, Connection connection, P parameters) throws ReportException
      Fills the given report.
      Parameters:
      report - the report to fill
      connection - the connection to use
      parameters - the report parameters
      Returns:
      a report result
      Throws:
      ReportException - in case of an exception
    • reportType

      static <T, R, P> ReportType<T,R,P> reportType(String name)
      Instantiates a new Report instance with the given name.
      Type Parameters:
      T - the report type
      R - the report result type
      P - the report parameters type
      Parameters:
      name - the report name
      Returns:
      a report