Re: recovering from EOF error
Re: recovering from EOF error
- Subject: Re: recovering from EOF error
- From: Ricardo Strausz <email@hidden>
- Date: Wed, 28 May 2003 15:05:29 -0500
I am not sure there is a "hi-level" solution to this,
but if you go "down" in the EOFramework (lower than the EC) you may do,
step by step, what the EC is trying to do. I mean, you may do the
update-loop by hand and avoid the object(s) that the EC is not handling
correctly.
However, this may be dirty work!!
Dino
p.s. do not forget to put the EC in a "stable" state after "jumping it"
On miircoles, mayo 28, 2003, at 13:31 America/Mexico_City, Jonathan
Rochkind wrote:
I've asked this question before, but maybe someone has a new idea.
Let's say I have an editing context which has an object in it's
deletedObjects(). I call saveChanges(). I get an exception thrown.
Let's assume that I DO know how to parse the exception, and figure out
that it was due to the fact that the object to delete didn't exist in
the db---that is, it was probably deleted first by some other instance
or non-WO process.
We're assuming I can figure this out. And I can figure out exactly
which EO it was. Now... how do I recover? How do I get the EC in a
state where I can call saveChanges() again, and it will try to save
it's other changes again, but won't try to commit the delete, because
it somehow knows this object has already been deleted?
Looking at the EOEditingContext references, I see a forgetObject
method? Would I maybe tell the EC to forget this object? But that
doesn't seem quite right, don't neccesarily want the EC to forget it
entirely, and the docs tell you never to call this. We just want the
EC to know somehow that it doesn't need to be deleted, cause it
already doesn't exist, that the EC can consider it already deleted,
and not try to delete it again.
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.
_______________________________________________
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.