title: Verifying success for spring JDBC batch update
body: <p>I am using Spring JDBCTemplate batchUpdate to insert data in a batch. I want to verify if the data is successfully inserted. JDBCTemplate batchUpdate returns an int[][], so which is the right way to verify that the data is inserted? </p>
  
  <p>This <a href="http://docs.spring.io/spring/docs/3.0.0.M3/reference/html/ch13s04.html" rel="noreferrer">link</a> says "All batch update methods return an int array containing the number of affected rows for each batch entry. This count is reported by the JDBC driver and it's not always available in which case the JDBC driver simply returns a -2 value". I am unable to understand the significance of returning -2 value here. Does it means the insert was unsuccessful?</p>