optimistic locking recovery
optimistic locking recovery
- Subject: optimistic locking recovery
- From: email@hidden
- Date: Tue, 21 Oct 2003 11:44:12 CDT
- Priority: 3 (Normal)
[demime could not interpret encoding binary - treating as plain text]
I try to update an EO. I get an optimistic locking exception. By
examining the exception, I'm able to determine that the EO in question
has been DELETED from the db by another process.
What's the proper way to recover from this? Sure, I can give the user a
message saying such. But meanwhile, there are potentially other
references to the EO in my app, including as the destination of various
to-one and to-many relationships.
Ideally, I'd like to somehow fix my object graph so it realizes this EO
has been deleted. It should be as if I did a deleteObject() on the EO,
and all the various notifications are sent all around so the object graph
behaves as if the EO has been deleted. Except I can't actually call
deleteObject, because this will just raise another exception, since the
object does not in fact exist.
Any ideas?
--Jonathan
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.