Class CSVImporter

java.lang.Object
com.axelor.data.csv.CSVImporter
All Implemented Interfaces:
Importer

public class CSVImporter extends Object implements Importer
  • Constructor Details

    • CSVImporter

      public CSVImporter(String configFile)
    • CSVImporter

      public CSVImporter(String config, String dataDir)
    • CSVImporter

      @Inject public CSVImporter(@Named("axelor.data.config") String config, @Named("axelor.data.dir") String dataDir, @Nullable @Named("axelor.error.dir") String errorDir)
    • CSVImporter

      public CSVImporter(CSVConfig config)
    • CSVImporter

      public CSVImporter(CSVConfig config, String dataDir)
    • CSVImporter

      public CSVImporter(CSVConfig config, String dataDir, String errorDir)
  • Method Details

    • addListener

      public void addListener(Listener listener)
      Description copied from interface: Importer
      Add a data import event listener.
      Specified by:
      addListener in interface Importer
      Parameters:
      listener - the listener
    • clearListener

      public void clearListener()
      Description copied from interface: Importer
      Clear listeners.
      Specified by:
      clearListener in interface Importer
    • setContext

      public void setContext(Map<String,Object> context)
      Description copied from interface: Importer
      Set global context.
      Specified by:
      setContext in interface Importer
      Parameters:
      context - the global context
    • getLoggerManager

      public CSVLogger getLoggerManager()
    • run

      public void run(ImportTask task)
      Run the task from the configured readers
      Specified by:
      run in interface Importer
      Parameters:
      task - the task to run
    • run

      public void run()
      Description copied from interface: Importer
      Run the data import task.
      Specified by:
      run in interface Importer