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 void
addListener(Listener listener)
Add a data import event listener.void
clearListener()
Clear listeners.CSVLogger
getLoggerManager()
void
run()
Run the data import task.void
run(ImportTask task)
Run the task from the configured readersvoid
setContext(Map<String,Object> context)
Set global context.
-
-
-
Method Detail
-
addListener
public void addListener(Listener listener)
Description copied from interface:Importer
Add a data import event listener.- Specified by:
addListener
in interfaceImporter
- Parameters:
listener
- the listener
-
clearListener
public void clearListener()
Description copied from interface:Importer
Clear listeners.- Specified by:
clearListener
in interfaceImporter
-
setContext
public void setContext(Map<String,Object> context)
Description copied from interface:Importer
Set global context.- Specified by:
setContext
in interfaceImporter
- Parameters:
context
- the global context
-
getLoggerManager
public CSVLogger getLoggerManager()
-
run
public void run(ImportTask task)
Run the task from the configured readers
-
-