• 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: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK)


  • Subject: Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK)
  • From: Paul Hoadley <email@hidden>
  • Date: Fri, 16 Mar 2012 09:13:18 +1030

On 16/03/2012, at 4:24 AM, Kieran Kelleher wrote:

(2) You *can* use a non-attribute PK named "id" (or whatever) as a sort *key* in a EOFetchSpecification .... you just can't use it for "in-memory" sort.

EOSortOrdering s = new EOSortOrdering("id", EOSortOrdering.CompareAscending);

BTW, you can even use "id" for EOQualifiers, again only in a EOFetchSpecification that will generate SQL and fetch, but not in an EOQualifier that will be used for in-memory qualification.

Oh good point.  If you use "primaryKey" as I suggested yesterday, you'll have the opposite problem.  You won't be able to use it to sort directly on fetch, but you would be able to sort in-memory afterwards.


-- 
Paul Hoadley
http://logicsquad.net/



 _______________________________________________
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

References: 
 >ERXRestFetchSpecification defaultSortOrderings ordered by id (PK) (From: Rich <email@hidden>)
 >Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK) (From: Rich <email@hidden>)
 >Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK) (From: Rich <email@hidden>)
 >Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK) (From: Paul Hoadley <email@hidden>)
 >Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK) (From: Rich <email@hidden>)
 >Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK) (From: David Avendasora <email@hidden>)
 >Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK) (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: Eclipse builds - force custom framework selections to be packaged
  • Next by Date: Re: WOCommunity Apple Developer Account
  • Previous by thread: Re: ERXRestFetchSpecification defaultSortOrderings ordered by id (PK)
  • Next by thread: merging databases
  • Index(es):
    • Date
    • Thread