title: does my batch really execute as expected if autocommit is set to true?
body: <p>I am making a request SQL to commit some updates. The updates are done and good, but I would like to know if the batch is executed properly , ie are the statements commited in one go or do the statement excute one after the other ? 
  This is because the autocommit is set implicitly to true, and I wonder if, for the batch to execute as a real "batch", I have to set it to false.</p>
  
  <p>this is a question in relation with this one:</p>
  
  <p><a href="https://stackoverflow.com/questions/26888272/do-i-need-a-connection-commit-after-executebatch">do I need a connection.commit() after executeBatch()?</a></p>
  
  <p>The code is:</p>
  
  <pre><code>private void pdate(JdbcTemplate jdbcTemplate, List&lt;Long&gt; saisineIdsToUpdate,Connection connection) throws SQLException {
     String sqlUpdate = "UPDATE SAISINES SAI WHERE SAI.IDSAISINE = ?"; //request simplified
  
     PreparedStatement psUpdate = connection.prepareStatement(sqlUpdate);
  
     for (Long saisineId : saisineIdsToUpdate) {
        psUpdate.setLong(1, saisineId );
        psUpdate.addBatch();
     }
  
     psUpdate.executeBatch();
     psUpdate.close();
  
  }
  </code></pre>