I have a classic scenario: two updates to the same record that are based on a previously ready value from this record. I am working under the assumption of optimistic concurrency. It is not hard for me to implement the conditional update by myself- the question is whether I can rely on a certain API from the driver or the DB that will handle it for me?
Naturally, I Googled it, but all I seem to come up with are explanations of WHAT is optimistic concurrency, without mentioning code samples...
I am using JDBC data direct driver.
Thanks!