示例#1
0
 /**
  * Roll back to the given savepoint. This is only allowed if the transaction is open.
  *
  * @param savepointId the savepoint id
  */
 public void rollbackToSavepoint(long savepointId) {
   checkOpen();
   store.rollbackTo(this, this.logId, savepointId);
   this.logId = savepointId;
 }
示例#2
0
 /**
  * Roll a transaction back.
  *
  * @param t the transaction
  * @param maxLogId the last log id
  */
 void rollback(Transaction t, long maxLogId) {
   rollbackTo(t, maxLogId, 0);
   endTransaction(t);
 }