Package com.axelor.data.csv
Class CSVImporter
java.lang.Object
com.axelor.data.csv.CSVImporter
- All Implemented Interfaces:
Importer
-
Field Summary
Fields inherited from interface com.axelor.data.Importer
defaultAdapters
-
Constructor Summary
ConstructorsConstructorDescriptionCSVImporter
(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
Modifier and TypeMethodDescriptionvoid
addListener
(Listener listener) Add a data import event listener.void
Clear listeners.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.
-
Constructor Details
-
CSVImporter
-
CSVImporter
-
CSVImporter
-
CSVImporter
-
CSVImporter
-
CSVImporter
-
-
Method Details
-
addListener
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
Description copied from interface:Importer
Set global context.- Specified by:
setContext
in interfaceImporter
- Parameters:
context
- the global context
-
getLoggerManager
-
run
Run the task from the configured readers -
run
public void run()Description copied from interface:Importer
Run the data import task.
-