You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by GitBox <gi...@apache.org> on 2019/02/21 05:40:49 UTC

[GitHub] visruth opened a new pull request #7: get generated keys from queryRunner.insertBatch

visruth opened a new pull request #7: get generated keys from queryRunner.insertBatch
URL: https://github.com/apache/commons-dbutils/pull/7
 
 
   This class will be useful to get generated keys from the queryRunner.insertBatch operation.
   
   Eg:-
   ```
      ResultSetHandler<List<Long>> rsh = new ScalarListHandler<Long>();
      Object[][] params = {{"col1row1", "col2row1"}, {"col1row2", "col2row2"}};
      List<Long> ids = queryRunner.insertBatch("INSERT INTO testtable (col1, col2) VALUES (?,?)", rsh, 
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org