DEFAULT_BATCH_SIZE, 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)
ImporteraddListener in interface Importerlistener - the listenerpublic void clearListener()
ImporterclearListener in interface Importerpublic void setContext(Map<String,Object> context)
ImportersetContext in interface Importercontext - the global contextpublic CSVLogger getLoggerManager()
public void run(ImportTask task)