• 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: FetchSpec seems to ignore qualifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FetchSpec seems to ignore qualifier


  • Subject: Re: FetchSpec seems to ignore qualifier
  • From: Art Isbell <email@hidden>
  • Date: Wed, 3 Mar 2004 14:49:44 -1000

On Mar 3, 2004, at 1:23 PM, David Griffith wrote:

       EOFetchSpecification fs = new EOFetchSpecification();
        fs = fs.fetchSpecificationNamed("getLanguageFromString",
"Language");

Does the compiler not complain about the above statement? The WO 5.2.2 docs state that EOFetchSpecification's fetchSpecificationNamed() method is a static, not an instance method. So the above two statements should be:


EOFetchSpecification fs = EOFetchSpecification.fetchSpecificationNamed("getLanguageFromString", "Language");

        NSMutableDictionary dictionary = new NSMutableDictionary();
        dictionary.takeValueForKey(languageName, "langName");
        fs = fs.fetchSpecificationWithQualifierBindings(dictionary);

        NSMutableArray languages= new
NSMutableArray(ec.objectsWithFetchSpecification(fs));

I don't see anything obviously wrong with the above statements, but they can be condensed to the following:


NSDictionary dictionary = new NSDictionary(languageName, "langName");
NSMutableArray languages = new NSMutableArray(EOUtilities.objectsWithFetchSpecificationAndBindings(ec, "Language", "getLanguageFromString", dictionary));


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.


  • Follow-Ups:
    • Re: FetchSpec seems to ignore qualifier
      • From: David Griffith <email@hidden>
References: 
 >FetchSpec seems to ignore qualifier (From: David Griffith <email@hidden>)

  • Prev by Date: Document Root on Win 2 K Box
  • Next by Date: relationship problem with validation
  • Previous by thread: Re: FetchSpec seems to ignore qualifier
  • Next by thread: Re: FetchSpec seems to ignore qualifier
  • Index(es):
    • Date
    • Thread