|
Mag
Mag
Regards, Rene Larsen
Mag
Originally posted by Rene Larsen:
If you are using a Oracle database, you can use 'select xx from yy where xx=tt FOR UPDATE' for locking the selected rows. You release it again by calling commit() (or rollback() if error) on the connection.
Originally posted by Reinhold Gruber:
Could you please bring to light pessimistic locking with JDBC. How can I achieve the locking of a record before/after I have read it without using proprietary sql-extensions? I am still wondering wheter a database transaction with the appropriate isolation level would do the job.
Thank you my well lotioned goddess! Here, have my favorite tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|