public class XmlImporterImpl extends Object implements XmlImporter
| Constructor and Description |
|---|
XmlImporterImpl(XmlValidator xmlValidator,
ShipmentImporter shipmentImporter,
CategoryImporter categoryImporter,
ItemImporter itemImporter,
SalesImporter salesImporter)
Constructor
|
public XmlImporterImpl(XmlValidator xmlValidator, ShipmentImporter shipmentImporter, CategoryImporter categoryImporter, ItemImporter itemImporter, SalesImporter salesImporter)
xmlValidator - xml validatorshipmentImporter - shipment importercategoryImporter - category importeritemImporter - item importersalesImporter - sales importerpublic void importXml(String xmlFile) throws XmlValidationException, EntityDoesNotExistException, NotEnoughStoredException, ServiceException
XmlImporterimportXml in interface XmlImporterxmlFile - xml file to importXmlValidationException - if something goes wrong during validationEntityDoesNotExistException - if some entity doesn't existNotEnoughStoredException - if there is not enough of certain item storedServiceException - if something unexpected goes wrong while storing in dbCopyright © 2017 Pivotal Software, Inc.. All rights reserved.