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 Details

  • 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

      void importRow(ImportRow row, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler)
      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.