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 Detail

      • name

        String name()
        Returns:
        the report name
      • fillReport

        R fillReport​(Connection connection,
                     Report<T,​R,​P> report,
                     P parameters)
              throws ReportException
        Fills the given report.
        Parameters:
        connection - the connection
        report - the report to fill
        parameters - the 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