private static synchronized void endTransaction(Connection C,boolean successful) throws AdeException {
  logger.trace("endTransaction() -->entry");
  try {
    if (successful) {
      C.commit();
    }
 else {
      C.rollback();
    }
    C.setAutoCommit(true);
  }
 catch (  Throwable t) {
    surfaceThrowable("endTransaction() invoked Connection method",t);
    throw adeExceptionOf(t);
  }
  logger.trace("endTransaction() <-- exit");
}

private static synchronized void endTransaction ( Connection C , boolean successful ) throws AdeException { logger . trace ( "endTransaction() -->entry" ) ; try { if ( successful ) { C . commit ( ) ; } else { C . rollback ( ) ; } C . setAutoCommit ( true ) ; } catch ( Throwable t ) { surfaceThrowable ( "endTransaction() invoked Connection method" , t ) ; throw adeExceptionOf ( t ) ; } logger . trace ( "endTransaction() <-- exit" ) ; }
thin wrapper around jdbc connection . setautocommit ( ) to effectively resuming autocommit processing , allowing for multi - statement transactions . it is offered in this way only to ensure consistent error logging .
