I need to execute a select and then update some of the rows in the ResultSet in an atomic way.
ResultSet
The code I am using looks like (simplified):
Use transactions.