Package com.caucho.db.xa

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


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

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


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

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

  /**
   * Rebuilds the indexes
View Full Code Here

      }
    } finally {
      if (iter != null)
        iter.free();
     
      xa.commit();
     
    }
  }

  private void writeTableHeader(WriteStream os)
View Full Code Here

    DbTransaction xa = _xa;
    _xa = null;
   
    // db/0a10
    if (xa != null && xa.isAutoCommit())
      xa.commit();
  }

  public static void free(QueryContext cxt)
  {
    _freeList.free(cxt);
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.