Re: optimistic locking recovery
Re: optimistic locking recovery
- Subject: Re: optimistic locking recovery
- From: Art Isbell <email@hidden>
- Date: Tue, 21 Oct 2003 08:56:36 -1000
On Tuesday, October 21, 2003, at 06:44 AM, email@hidden
wrote:
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.
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.
Have you tried refaulting the deleted object? The on-line _Enterprise
Objects_ manual suggests refaulting the object involved in an
optimistic locking failure, but it doesn't seem to address the case in
which the object has actually been deleted. The next time EOF needed
to fire this fault, it would discover that the object doesn't exist, so
hopefully it would delete the snapshot and fix up the object graph
without raising an exception.
Aloha,
Art
_______________________________________________
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.