Package com.axelor.data.csv
Class CSVImporter
- java.lang.Object
-
- com.axelor.data.csv.CSVImporter
-
-
Field Summary
-
Fields inherited from interface com.axelor.data.Importer
defaultAdapters
-
-
Constructor Summary
Constructors Constructor Description CSVImporter(CSVConfig config)CSVImporter(CSVConfig config, String dataDir)CSVImporter(CSVConfig config, String dataDir, String errorDir)CSVImporter(String configFile)CSVImporter(String config, String dataDir)CSVImporter(String config, String dataDir, String errorDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(Listener listener)Add a data import event listener.voidclearListener()Clear listeners.CSVLoggergetLoggerManager()voidrun()Run the data import task.voidrun(ImportTask task)Run the task from the configured readersvoidsetContext(Map<String,Object> context)Set global context.
-
-
-
Method Detail
-
addListener
public void addListener(Listener listener)
Description copied from interface:ImporterAdd a data import event listener.- Specified by:
addListenerin interfaceImporter- Parameters:
listener- the listener
-
clearListener
public void clearListener()
Description copied from interface:ImporterClear listeners.- Specified by:
clearListenerin interfaceImporter
-
setContext
public void setContext(Map<String,Object> context)
Description copied from interface:ImporterSet global context.- Specified by:
setContextin interfaceImporter- Parameters:
context- the global context
-
getLoggerManager
public CSVLogger getLoggerManager()
-
run
public void run(ImportTask task)
Run the task from the configured readers
-
-