defaultAdapters
Constructor and 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) |
Modifier and Type | Method and 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 readers
|
void |
setContext(Map<String,Object> context)
Set global context.
|
public CSVImporter(String configFile)
@Inject public CSVImporter(@Named(value="axelor.data.config") String config, @Named(value="axelor.data.dir") String dataDir, @Nullable @Named(value="axelor.error.dir") String errorDir)
public CSVImporter(CSVConfig config)
public void addListener(Listener listener)
Importer
addListener
in interface Importer
listener
- the listenerpublic void clearListener()
Importer
clearListener
in interface Importer
public void setContext(Map<String,Object> context)
Importer
setContext
in interface Importer
context
- the global contextpublic CSVLogger getLoggerManager()
public void run(ImportTask task)