public class ImportProvider
extends java.lang.Object
ImportProvider
provides methods to import data into NuclosConstructor and Description |
---|
ImportProvider() |
Modifier and Type | Method and Description |
---|---|
static ImportResult |
run(NuclosFile importFile,
boolean isTransactional,
java.lang.Class<? extends ImportStructureDefinition>... structureDefClasses)
This method executes an import process by which the content of a
NuclosFile is parsed using the given structure definitions
and stored in the database afterwards. |
void |
setImportService(ImportService repService) |
public void setImportService(ImportService repService)
public static ImportResult run(NuclosFile importFile, boolean isTransactional, java.lang.Class<? extends ImportStructureDefinition>... structureDefClasses) throws BusinessException
NuclosFile
is parsed using the given structure definitions
and stored in the database afterwards.
The import can be handled as one atomic transaction with a complete rollback for one occurring error by setting argument 'isTransactional' to trueimportFile
- isTransactional
- structureDefClasses
- BusinessException
Copyright © 2024. All rights reserved.