batch fetching faults
batch fetching faults
- Subject: batch fetching faults
- From: email@hidden
- Date: Mon, 29 Sep 2003 17:52:43 CDT
- Priority: 3 (Normal)
[demime could not interpret encoding binary - treating as plain text]
I have a bunch of EOs. Some of them may still be faults; others of them
may be cleared.
I want to clear all of them, in ONE fetch. I can't use the
EODatabaseContext.batchFetchRelationsihp method, because there isn't a
relationship involved, at least not in a way that this section of code is
aware of. It's just a bunch of EOs.
There doesn't seem to be any method built in to do what I need. I suppose
I could step through them all, look at their primary key values (without
tripping the fault; I know how to do that), and then compose my own
EOQualifier, and fetch for all of them. Due to EC uniquing, when they are
returned, those faults won't be faults anymore, they'll be the full EOs
that were returned from the fetch.
However, if any of those faults referenced 'missing' rows, referenced a
pk that doens't exist anymore---those rows will still be faults. And I'll
have to trip them, causing another round trip to the db, in order to get
them on the EODatabaseContext's missingGlobalIDs list, and recognize them
as missing. There ought to be a way to do this such that a single trip
to the db resolves all faults, and registers all 'missing' faults as
missing... but I'm not sure there is.
Any suggestions?
_______________________________________________
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.