Package cdc.impex.imports
Interface SheetImporter
- All Known Subinterfaces:
WorkbookImporter
- All Known Implementing Classes:
BatchSheetImporter,CheckedSheetImporter,CheckedWorkbookImporter,VerboseSheetImporter,VerboseWorkbookImporter
public interface SheetImporter
Interface implemented by classes that can import data from memory to storage device.
[File] → Importer → [Memory] → SheetImporter → [Storage Device].
Typically, it will consist in executing actions and propagate them to a database.
An implementation can support one one several templates.
As Importer uses one WorkbookImporter, use, for example,
WorkbookImporter.fromDelegates(WorkbookImporter, Function)
or WorkbookImporter.fromDelegates(WorkbookImporter, Map) to compose several SheetImporters into one.
- Author:
- Damien Carbonne
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidbeginSheetImport(String systemId, String sheetName, SheetTemplate template, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler) Invoked to notify the beginning of the import of a sheet.default voidendSheetImport(String systemId, String sheetName, SheetTemplateInstance templateInstance, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler) Invoked to notify the end of the import of a sheet.default voidimportHeader(SheetTemplateInstance templateInstance, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler) voidInvoked to notify the import a row.
-
Field Details
-
QUIET_VOID
-
VERBOSE_VOID
-
-
Method Details
-
beginSheetImport
default void beginSheetImport(String systemId, String sheetName, SheetTemplate template, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler) Invoked to notify the beginning of the import of a sheet.- Parameters:
systemId- The system if of the imported data.sheetName- The sheet name.template- The sheet template associated to this import.issuesHandler- The issues handler that should be used by the application to generate new issues.
-
importHeader
default void importHeader(SheetTemplateInstance templateInstance, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler) -
importRow
Invoked to notify the import a row.- Parameters:
row- The imported row.issuesHandler- The issues handler that should be used by the application to generate new issues.
-
endSheetImport
default void endSheetImport(String systemId, String sheetName, SheetTemplateInstance templateInstance, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler) Invoked to notify the end of the import of a sheet.- Parameters:
systemId- The system if of the imported data.sheetName- The sheet name.templateInstance- The sheet template instance associated to this import.issuesHandler- The issues handler that should be used by the application to generate new issues.
-