title: BatchSqlUpdate - how to get auto generated keys
body: <p>I am using spring BatchSqlUpdate to insert a set of rows.  How do I get the auto generated keys for all of the rows inserted?</p>
  
  <p>When doing a single insert I get the keys like this - </p>
  
  <pre><code>SqlUpdate sqlUpdate = new SqlUpdate(dataSource, sqlTemplate.toString());
  sqlUpdate.setReturnGeneratedKeys(true);
  KeyHolder keyHolder = new GeneratedKeyHolder();
  sqlUpdate.update(new Object[] {}, keyHolder);
  return keyHolder.getKey().longValue();
  </code></pre>
  
  <p>Thanks!</p>