i just want the numbers of rows that inserted successfully as in JDBC we something like this:- to get the count of updated records.
try {
// Batch is ready, execute it to insert the data
batchResults = pstmt.executeBatch();
} catch (BatchUpdateException e) {
System.out.println("Error message: " + e.getMessage());
batchResults = e.getUpdateCounts();
}
here with the help of e.getUpdateCounts iam able to get the counts of inserted rows.
but what happen in JOOQ is We get DataAccessException which contains the cause BatchUpdateException. so here What happen i am not able to use e.getUpdateCounts(); which is a feature of BatchUpdateException;
All i want is If we get some error in batch Insertion/Deletion , still we can get the number of inserted/deleted records as in JDBC.