Examples of importDataFromXML()


Examples of org.openbravo.service.db.DataImportService.importDataFromXML()

          if (!datasetFile.exists()) {
            continue;
          }

          String strXml = Utility.fileToString(datasetFile.getPath());
          ImportResult myResult = myData.importDataFromXML((Client) OBDal.getInstance().get(
              Client.class, strClient), (Organization) OBDal.getInstance().get(Organization.class,
              "0"), strXml, (Module) OBDal.getInstance().get(Module.class, data[j].adModuleId));
          m_info.append(SALTO_LINEA).append("File: ").append(datasetFile.getName()).append(":")
              .append(SALTO_LINEA);
          if (myResult.getLogMessages() != null && !myResult.getLogMessages().equals("")
View Full Code Here

Examples of org.openbravo.service.db.DataImportService.importDataFromXML()

          if (!datasetFile.exists()) {
            continue;
          }

          String strXml = Utility.fileToString(datasetFile.getPath());
          ImportResult myResult = myData.importDataFromXML((Client) OBDal.getInstance().get(
              Client.class, vars.getClient()), (Organization) OBDal.getInstance().get(
              Organization.class, strOrganization), strXml, (Module) OBDal.getInstance().get(
              Module.class, data[j].adModuleId));
          m_info.append(SALTO_LINEA).append("File: ").append(datasetFile.getName()).append(":")
              .append(SALTO_LINEA);
View Full Code Here

Examples of org.openbravo.service.db.DataImportService.importDataFromXML()

              + Utility.wikifiedName(amd.dsName) + ".xml");

          // Import data from the xml file
          final String strXml = Utility.fileToString(datasetFile.getPath());
          final DataImportService importService = DataImportService.getInstance();
          final ImportResult result = importService.importDataFromXML(OBDal.getInstance().get(
              Client.class, "0"), OBDal.getInstance().get(Organization.class, "0"), strXml, OBDal
              .getInstance().get(Module.class, amd.adModuleId));
          if (result.hasErrorOccured()) {
            log4j.error(result.getErrorMessages());
            if (result.getException() != null) {
View Full Code Here

Examples of org.openbravo.service.db.DataImportService.importDataFromXML()

          if (!datasetFile.exists()) {
            continue;
          }

          final String strXml = Utility.fileToString(datasetFile.getPath());
          final ImportResult myResult = myData.importDataFromXML(OBDal.getInstance().get(
              Client.class, strClient), OBDal.getInstance().get(Organization.class, AD_Org_ID),
              strXml, OBDal.getInstance().get(Module.class, data[j].adModuleId));
          m_info.append(SALTO_LINEA).append("File: ").append(datasetFile.getName()).append(":")
              .append(SALTO_LINEA);
          if (myResult.getLogMessages() != null && !myResult.getLogMessages().equals("")
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.