Package com.caucho.db.xa

Examples of com.caucho.db.xa.Transaction.commit()


            log.log(Level.WARNING, e.toString(), e);
          }
        }
      }
    } finally {
      xa.commit();
    }
  }

  /**
   * Rebuilds the indexes
View Full Code Here


            log.log(Level.WARNING, e.toString(), e);
          }
        }
      }
    } finally {
      xa.commit();
    }
  }

  private void writeTableHeader(WriteStream os)
    throws IOException
View Full Code Here

      isOkay = true;
    } finally {
      if (! xa.isAutoCommit()) {
      }
      else if (isOkay)
        xa.commit();
      else
        xa.rollback();
    }

    _rs = new ResultSetImpl(this, queryContext.getResult());
View Full Code Here

      isOkay = true;
    } finally {
      if (! xa.isAutoCommit()) {
      }
      else if (isOkay)
        xa.commit();
      else
        xa.rollback();
    }

    return rowUpdateCount;
View Full Code Here

   
    Transaction xa = _xa;
    _xa = null;
   
    if (xa != null)
      xa.commit();
  }

  public void rollback()
    throws SQLException
  {
View Full Code Here

    if (! _isAutoCommit && autoCommit) {
      Transaction xa = _xa;
      _xa = null;
   
      if (xa != null)
  xa.commit();
    }
   
    _isAutoCommit = autoCommit;
  }
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.