Package se.ikama.bauta.batch.tasklet
Interface ReportGenerator
-
- All Known Implementing Classes:
CloseDbConnectionsTasklet,MongoQueryReportTasklet,MongoToCsvReportTasklet,SqlQueryReportTasklet,SqlToCsvReportTasklet,SqlValidationTasklet
public interface ReportGeneratorInterface for a report generator. Typically used by a Tasklet or a Tasklet delegate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReportGenerationResultgenerateReport(java.io.File reportFile, org.springframework.batch.core.StepContribution sc, org.springframework.batch.core.scope.context.ChunkContext cc)Generate a reportjava.lang.StringgetReportFilename()Name for the generated report filejava.lang.StringgetReportName()A user-friendly name of the generated report
-
-
-
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 tosc- The current step contributioncc- 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
-
-