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 TypeMethodDescriptionvoidaddListener(Listener listener) Add a data import event listener.voidClear listeners.voidrun()Run the data import task.voidrun(ImportTask task) Run the task from the configured readersvoidsetContext(Map<String, Object> context) Set global context.
-
Constructor Details
-
CSVImporter
-
CSVImporter
-
CSVImporter
-
CSVImporter
-
CSVImporter
-
CSVImporter
-
-
Method Details
-
addListener
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
Description copied from interface:ImporterSet global context.- Specified by:
setContextin interfaceImporter- Parameters:
context- the global context
-
getLoggerManager
-
run
Run the task from the configured readers -
run
public void run()Description copied from interface:ImporterRun the data import task.
-