• 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: Fetching a specified Object.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fetching a specified Object.


  • Subject: Re: Fetching a specified Object.
  • From: Art Isbell <email@hidden>
  • Date: Sat, 22 Mar 2008 13:42:36 -1000

On Mar 22, 2008, at 12:59 PM, Gustavo Pizano wrote:
Hello. I have in my db some convocations with a state. (false, true) , I wanna fetch the one-ones which state its true. how to do this.

I was thinking in doing hte following

1 -EOQualifier qual = Convocation.STATE.eq(true), but thtat retunr me a boolean.

// Assumes that "state" is a boolean implemented as an integer.
NSArray convocations = EOUtilities.objectsMatchingKeyAndValue(editingContext, "Convocation", "state", new Integer(1));


EOUtilities.objectsMatchingKeyAndValue() is a short cut for the following:

EOQualifier qual = new EOKeyValueQualifier("state", EOQualifier.QualifierOperatorEqual, new Integer(1));
EOFetchSpecification fetchSpec = new EOFetchSpecification("Convocation", qual, null);
NSArray convocations = editingContext.objectsWithFetchSpecification(fetchSpec);


Aloha,
Art

_______________________________________________
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: Fetching a specified Object.
      • From: David LeBer <email@hidden>
References: 
 >Fetching a specified Object. (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: Using Design Patterns ???
  • Next by Date: Re: Fetching a specified Object.
  • Previous by thread: Fetching a specified Object.
  • Next by thread: Re: Fetching a specified Object.
  • Index(es):
    • Date
    • Thread