Interface ReportGenerator

    • Method Detail

      • getReportName

        java.lang.String getReportName()
        A user-friendly name of the generated report
      • getReportFilename

        java.lang.String getReportFilename()
        Name for the generated report file
      • generateReport

        ReportGenerationResult generateReport​(java.io.File reportFile,
                                              org.springframework.batch.core.StepContribution sc,
                                              org.springframework.batch.core.scope.context.ChunkContext cc)
                                       throws java.lang.Exception
        Generate a report
        Parameters:
        reportFile - The file to write the report to
        sc - The current step contribution
        cc - The current ChunkContext
        Returns:
        A ReportGenerationResult. Typically with the status OK. For certain types of report generators with a notion of "failure", it may make sense to return Failed, to support. See @SqlValidationTasklet
        Throws:
        java.lang.Exception