• 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: setting default order of entity fetches
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting default order of entity fetches


  • Subject: Re: setting default order of entity fetches
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 22 Aug 2007 17:46:31 -0700


On Aug 22, 2007, at 5:09 PM, Lachlan Deck wrote:

Hi there,

EOEntity has a restrictingQualifier that's applied to every fetch for the relevant entity.

Is there any similar mechanism for installing a default ordering for fetched objects of each entity (e.g., when following a toMany relationship)? Or any delegate methods somewhere?

No. And don't override the EOF methods to do this or you risk messing with EOF. And we all know how that ends up. :-) The reason for the lack of sorting, as I understand it, is that EOF would then need to keep the list sorted each time something was added to it. And what if you wanted alternate sorts? The standard approach is to have a cover method that sorts the contents of the relationship and returns it.



Chuck


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: setting default order of entity fetches
      • From: Lachlan Deck <email@hidden>
References: 
 >setting default order of entity fetches (From: Lachlan Deck <email@hidden>)

  • Prev by Date: setting default order of entity fetches
  • Next by Date: Re: setting default order of entity fetches
  • Previous by thread: setting default order of entity fetches
  • Next by thread: Re: setting default order of entity fetches
  • Index(es):
    • Date
    • Thread