SQL: Want to update multiple rows, but roll back if any of the updates fails.
Let's say i want to do 3 updates. The second update is not valid(the key doesn't exist in the db).
So i want to roll back all 3 updates.
connection.setAutoCommit(false);
3 updates
connection.commit()