@Override public void addBatch(String sql) throws SQLException {
  try {
    debugCodeCall("addBatch",sql);
    checkClosed();
    sql=JdbcConnection.translateSQL(sql,escapeProcessing);
    if (batchCommands == null) {
      batchCommands=New.arrayList();
    }
    batchCommands.add(sql);
  }
 catch (  Exception e) {
    throw logAndConvert(e);
  }
}

@ Override public void addBatch ( String sql ) throws SQLException { try { debugCodeCall ( "addBatch" , sql ) ; checkClosed ( ) ; sql = JdbcConnection . translateSQL ( sql , escapeProcessing ) ; if ( batchCommands == null ) { batchCommands = New . arrayList ( ) ; } batchCommands . add ( sql ) ; } catch ( Exception e ) { throw logAndConvert ( e ) ; } }
adds a statement to the batch .
