I have a batch that inserts more than one record at a time. After the batch call I call getGeneratedKeys on the preparedStatement, but it only returns the last record inserted (MySQL database)...
/* code to delare preparedStatement and code to set values and add to batch */
int updateCounts = object.executeBatch();
ResultSet rs = object.getGeneratedKeys ();