public class XmlImportProvider
extends java.lang.Object
XmlImportProvider
provides methods to import XML data into Nuclos.Constructor and Description |
---|
XmlImportProvider() |
Modifier and Type | Method and Description |
---|---|
static ImportResult |
run(NuclosFile importFile,
boolean isTransactional,
java.lang.Class<? extends XmlImportStructureDefinition>... 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 |
setXmlImportService(XmlImportService repService) |
public void setXmlImportService(XmlImportService repService)
public static ImportResult run(NuclosFile importFile, boolean isTransactional, java.lang.Class<? extends XmlImportStructureDefinition>... 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.