Examples of releaseCommitConnection()


Examples of org.openbravo.database.ConnectionProvider.releaseCommitConnection()

      // Get Default Tax Category
      strcTaxcategoryId = ImportProductData.selectTaxCategory(conn, getAD_Client_ID());
      if (log4j.isDebugEnabled())
        log4j.debug("ImportProduct C_TaxCategory_ID =" + strcTaxcategoryId);
      conn.releaseCommitConnection(con);
      if (strcTaxcategoryId == null || strcTaxcategoryId.equals("")) {
        // Default Tax category doesn't exist
        addLog(Utility.messageBD(conn, "MarkDefaultTaxCategory", vars.getLanguage()));
        myError.setType("Error");
        myError.setTitle(Utility.messageBD(conn, "Error", vars.getLanguage()));
View Full Code Here

Examples of org.openbravo.database.ConnectionProvider.releaseCommitConnection()

            ImportProductData.insertProductPOError(conn, ex.toString(), I_Product_ID);
            conn.releaseRollbackConnection(con);
            continue;
          }
        } // C_BPartner_ID != 0
        conn.releaseCommitConnection(con);
        // Update I_Product
        if (log4j.isDebugEnabled())
          log4j.debug("before update: " + M_Product_ID + " -- " + I_Product_ID);
        no = ImportProductData.updateProductSetImportY(conn, M_Product_ID, I_Product_ID);
        if (log4j.isDebugEnabled())
View Full Code Here

Examples of org.openbravo.database.ConnectionProvider.releaseCommitConnection()

      // Location
      no = ImportBPartnerData.updateLocationId(con, conn, getAD_Client_ID());
      if (log4j.isDebugEnabled())
        log4j.debug("ImportBPartner LocationId = " + no);

      conn.releaseCommitConnection(con);
    } catch (Exception se) {
      try {
        conn.releaseRollbackConnection(con);
      } catch (Exception ignored) {
      }
View Full Code Here

Examples of org.openbravo.database.ConnectionProvider.releaseCommitConnection()

        // Update I_BPARTNER
        try {
          no = ImportBPartnerData.setImported(con, conn, C_BPartner_ID, (C_BPartner_Location_ID
              .equals("0")) ? "" : C_BPartner_Location_ID, (AD_User_ID.equals("0")) ? ""
              : AD_User_ID, I_BPartner_ID);
          conn.releaseCommitConnection(con);
        } catch (ServletException ex) {
          if (log4j.isDebugEnabled())
            log4j.debug("Update Imported - " + ex.toString());
          noInsert--;
          conn.releaseRollbackConnection(con);
View Full Code Here

Examples of org.openbravo.database.ConnectionProvider.releaseCommitConnection()

      addLog(Utility.messageBD(conn, "ProcessRunError", vars.getLanguage()));
      myError.setType("Error");
      myError.setTitle(Utility.messageBD(conn, "Error", vars.getLanguage()));
      myError.setMessage(Utility.messageBD(conn, "ProcessRunError", vars.getLanguage()));
      try {
        conn.releaseCommitConnection(con);
      } catch (Exception e) {
      }
      return myError;
    }
    addLog(Utility.messageBD(conn, "Business partners not imported", vars.getLanguage()) + ": "
View Full Code Here

Examples of org.openbravo.database.ConnectionProvider.releaseCommitConnection()

      if (log4j.isDebugEnabled())
        log4j.debug("Invalid Region To =" + no);

      //

      conn.releaseCommitConnection(con);
    } catch (Exception se) {
      try {
        conn.releaseRollbackConnection(con);
      } catch (Exception ignored) {
      }
View Full Code Here

Examples of org.openbravo.database.ConnectionProvider.releaseCommitConnection()

        } // tax

        // Update I_Tax
        try {
          no = ImportTaxData.setImported(con, conn, C_TaxCategory_ID, I_Tax_ID);
          conn.releaseCommitConnection(con);
        } catch (Exception ex) {
          if (log4j.isDebugEnabled())
            log4j.debug("Update Imported - " + ex.toString());
          noTCInsert--;
          no = ImportTaxData.updateSetImportedError(conn, I_Tax_ID);
View Full Code Here

Examples of org.openbravo.database.ConnectionProvider.releaseCommitConnection()

      // Disable triggers
      ImportAccountData.disableTriggers(con, conn);
      if (log4j.isDebugEnabled())
        log4j.debug("Triggers in C_ValidCombination disabled");

      conn.releaseCommitConnection(con);
      // Default accounts
      String[][] defaults = null;
      defaults = new String[73][2];

      defaults[0][0] = "PPVOFFSET_ACCT";
View Full Code Here

Examples of org.openbravo.database.ConnectionProvider.releaseCommitConnection()

        myError.setType("Error");
        myError.setTitle(Utility.messageBD(conn, " No elements could be imported", vars
            .getLanguage()));
      }

      conn.releaseCommitConnection(con);

      con = conn.getTransactionConnection();
      // Set parent
      no = ImportAccountData.setParent(con, conn, getAD_Client_ID());
      if (log4j.isDebugEnabled())
View Full Code Here

Examples of org.openbravo.database.ConnectionProvider.releaseCommitConnection()

      // Update Description
      no = ImportAccountData.updateDescription(con, conn, getAD_Client_ID());
      if (log4j.isDebugEnabled())
        log4j.debug("ImportAccount updated description = " + no);

      conn.releaseCommitConnection(con);
    } catch (NoConnectionAvailableException ex) {
      throw new ServletException("@CODE=NoConnectionAvailable");
    } catch (SQLException ex2) {
      try {
        conn.releaseRollbackConnection(con);
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.