public final boolean beginAtomicTransaction(Connection connection) throws AdeException {
  this.connection=connection;
  createdStatements=new ArrayList<Statement>();
  final boolean result=performAtomicTransaction();
  for (  Statement s : createdStatements) {
    try {
      s.close();
    }
 catch (    SQLException e) {
      logger.error("Error encountered while closing the Statement.",e);
    }
  }
  this.connection=null;
  return result;
}

public final boolean beginAtomicTransaction ( Connection connection ) throws AdeException { this . connection = connection ; createdStatements = new ArrayList < Statement > ( ) ; final boolean result = performAtomicTransaction ( ) ; for ( Statement s : createdStatements ) { try { s . close ( ) ; } catch ( SQLException e ) { logger . error ( "Error encountered while closing the Statement." , e ) ; } } this . connection = null ; return result ; }
starts the atomic transaction with the specified connection which should have auto - commit already toggled off .
