Class CSVImportTemplateSpec

All Implemented Interfaces:
com.orchestranetworks.addon.dint.dataconnector.spec.InvalidDataFileCSVFileValidator

public final class CSVImportTemplateSpec extends ImportExportTemplateSpec<CSVSourceTable,EBXTargetTable> implements com.orchestranetworks.addon.dint.dataconnector.spec.InvalidDataFileCSVFileValidator
Template specification for CSV import.
Since:
4.1.0
  • Constructor Details

    • CSVImportTemplateSpec

      public CSVImportTemplateSpec(String templateId, File sourceFile, com.orchestranetworks.service.Session session)
      Constructs a new CSVImportTemplateSpec instance.
      Parameters:
      templateId - The unique template id.
      sourceFile - The source CSV file for import on table, or the archive file for import on dataset.
      session - The session.
      Throws:
      IllegalArgumentException - If any parameter is null or source file does not exist.
    • CSVImportTemplateSpec

      public CSVImportTemplateSpec(TemplateConfig<CSVSourceTable,EBXTargetTable> templateConfig, File sourceFile, com.orchestranetworks.service.Session session)
      Constructs a new CSVImportTemplateSpec instance.
      Parameters:
      templateConfig - The template configuration.
      sourceFile - The source CSV file when importing a table, or the archive file when importing a dataset.
      session - The session.
      Throws:
      IllegalArgumentException - If any parameter is null or source file does not exist.
      Since:
      4.5.0
  • Method Details

    • getCSVFile

      @Deprecated public File getCSVFile()
      Deprecated.
      Since v4.3.2, use getSourceFile() instead.
      Returns the source file.
    • getSourceFile

      public File getSourceFile()
      Returns the source file.
      Since:
      4.3.2
    • configureProcedure

      public void configureProcedure(Consumer<com.orchestranetworks.service.ProcedureContext> config)
      Configures the ProcedureContext instance when writing in EBX.
      Since:
      4.5.0
      See Also:
      • Procedure.execute(ProcedureContext)
    • getProcedureConfig

      public Consumer<com.orchestranetworks.service.ProcedureContext> getProcedureConfig()
      Returns the ProcedureContext configuration or null.
      Since:
      4.5.0
      See Also:
      • Procedure.execute(ProcedureContext)
    • getInvalidDataFolder

      public File getInvalidDataFolder()
      Returns the folder where the files that contain invalid records are stored.
      Since:
      4.5.0
    • setInvalidDataFolder

      public void setInvalidDataFolder(File folder)
      Sets the folder where the files that contain invalid records are stored.

      The file names have no prefix nor suffix.

      Since:
      4.5.0
    • setInvalidDataFolder

      public void setInvalidDataFolder(File invalidDataFolder, String invalidFilePrefix, String invalidFileSuffix)
      Sets the folder where the files that contain invalid records are stored.
      Since:
      4.5.0
    • getInvalidFileNamePrefix

      public String getInvalidFileNamePrefix()
      Returns the common prefix for the file name.
      Since:
      4.5.0
    • getInvalidFileNameSuffix

      public String getInvalidFileNameSuffix()
      Returns the common suffix for the file name.
      Since:
      4.5.0