Re: How can I cast a NSMutableDictionary to a EOEnterpriseObject
"Carl E. Lindberg" <[email protected]> Mon, 17 Nov 2008 19:57:00 -0500
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
On Nov 17, 2008, at 3:53 PM, Mike Schrag wrote: >> But there are times when, for performance reasons, raw-row fetching >> rather than eo fetching makes sense. In that case *if* you need an >> eo from the raw row you'd use eoeditingContext.faultForRawRow(...). > On a related note, w(hy)tf is there not a direct way to turn a raw > row into a snapshot cache entry + fault? EOUtilities.faultWithPrimaryKey() ? Or maybe that refetches the row. Does EOUtilities.objectFromRawRow() ? Otherwise, some combination of: EOEntity.globalIDForRow() EODatabaseContext.recordSnapshotForGlobalID() EOEditingContext.objectForGlobalID() Been a while since I played with this stuff... can't remember if I am missing any details... :-) -Carl Lindberg