• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: RAW ROWS solved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RAW ROWS solved


  • Subject: Re: RAW ROWS solved
  • From: Art Isbell <email@hidden>
  • Date: Fri, 25 Apr 2003 11:08:26 -1000

On Friday, April 25, 2003, at 10:29  AM, Jevon Hills wrote:

Is there a way which I can apply a sort to this fetch,

Create an EOFetchSpecification, send it setFetchesRawRows(true), setSortOrderings(sortOrderings), and possibly other configuration messages, and send the editing context an objectsWithFetchSpecification() message with your fetch specification as its argument.


or can I sort
the resulting dictionary by one of the fields?

The result will actually be an array of dictionaries, not a dictionary. You should be able to sort it in memory (i.e., after fetching) using EOSortOrdering.sortedArrayUsingKeyOrderArray(). But sorting such a huge array in memory will likely use even more memory, so sorting on the DB prior to fetching may be preferable.


Can I access the data in the dictionaries, or do I have to instantiate
each row as an EO to retrieve the information?

You can access the data in each dictionary as usual by sending the dictionary an objectForKey() message.


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.

References: 
 >RAW ROWS solved (From: Jevon Hills <email@hidden>)

  • Prev by Date: Re: Fetching Raw Rows
  • Next by Date: Re: IllegalStateException: undo: undo manager is in invalid state - Huh?
  • Previous by thread: RAW ROWS solved
  • Next by thread: Re: IllegalStateException: undo: undo manager is in invalid state - Huh?
  • Index(es):
    • Date
    • Thread