Package org.compiere.util

Examples of org.compiere.util.Trx.rollback()


        if ( DB.executeUpdate(insert.toString(), trxName) < 0 )
        {
          String msg = "No Invoices";     //  not translated!
          info = msg;
          log.config(msg);
          trx.rollback();
          return info;
        }
        insert = new StringBuffer();
        insert.append("INSERT INTO T_SELECTION(AD_PINSTANCE_ID, T_SELECTION_ID) ");
        counter = 0;
View Full Code Here


      if ( DB.executeUpdate(insert.toString(), trxName) < 0 )
      {
        String msg = "No Invoices";     //  not translated!
        info = msg;
        log.config(msg);
        trx.rollback();
        return info;
      }
    }
   
    ProcessInfo pi = new ProcessInfo ("", AD_Process_ID);
View Full Code Here

    if (trx != null)
    {
      if (success)
        trx.commit();
      else
        trx.rollback();
      trx.close();
    }
  }  //  create

View Full Code Here

          else if (fact.save(getTrxName()))
            ;
          else
          {
            log.log(Level.SEVERE, "(fact not saved) ... rolling back");
            trx.rollback();
            trx.close();
            unlock();
            return STATUS_Error;
          }
        }
View Full Code Here

      }
      //  Commit Doc
      if (!save(getTrxName()))     //  contains unlock & document status update
      {
        log.log(Level.SEVERE, "(doc not saved) ... rolling back");
        trx.rollback();
        trx.close();
        unlock();
        return STATUS_Error;
      }
      //  Success
View Full Code Here

    {
      log.log(Level.SEVERE, "... rolling back", e);
      status = STATUS_Error;
      try {
        if (trx != null)
          trx.rollback();
      } catch (Exception e2) {}
      try {
        if (trx != null)
          trx.close();
        trx = null;
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.