fullRuntime/src/sc/db/DBTransaction.java
public void rollback() {
      while (operationList != null) {
         ArrayList<TxOperation> toCancel = operationList;

         operationList = null;
         operationIndex = null;

         for (TxOperation op:toCancel) {
            op.cancel();
         }
      }
      if (connections != null) {
         TreeMap<String,Connection> toRollback = connections;
         if (!autoCommit) {
            for (Connection conn:toRollback.values()) {
               try {
                  conn.rollback();
               }
               catch (SQLException exc) {
                  System.err.println("Rollback transaction failed: " + exc);
               }
            }
         }
      }
   }
/** Cancels any pending operations that have been queued and rolls back any uncommitted connections */
Cancels any pending operations that have been queued and rolls back any uncommitted connections
Cancels any pending operations that have been queued and rolls back any uncommitted connections
public void rollback() {
      while (operationList != null) {
         ArrayList<TxOperation> toCancel = operationList;
         operationList = null;
         operationIndex = null;
         for (TxOperation op:toCancel) {
            op.cancel();
         }
      }
      if (connections != null) {
         TreeMap<String,Connection> toRollback = connections;
         if (!autoCommit) {
            for (Connection conn:toRollback.values()) {
               try {
                  conn.rollback();
               }
               catch (SQLException exc) {
                  System.err.println("Rollback transaction failed: " + exc);
               }
            }
         }
      }
   }
public void rollback ( ) { while ( operationList != null ) { ArrayList < TxOperation > toCancel = operationList ; operationList = null ; operationIndex = null ; for ( TxOperation op : toCancel ) { op . cancel ( ) ; } } if ( connections != null ) { TreeMap < String , Connection > toRollback = connections ; if ( ! autoCommit ) { for ( Connection conn : toRollback . values ( ) ) { try { conn . rollback ( ) ; } catch ( SQLException exc ) { System . err . println ( "Rollback transaction failed: " + exc ) ; } } } } }
Cancels any pending operations that have been queued and rolls back any uncommitted connections
Cancels any pending operations that have been queued and rolls back any uncommitted connections