• 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: Fetch Specifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fetch Specifications


  • Subject: Re: Fetch Specifications
  • From: Naden Franciscus <email@hidden>
  • Date: Tue, 28 Jan 2003 14:28:23 +0800

Heh Riaz,

Easy once you know how :)

NSMutableDictionary bindings = new NSMutableDictionary();
bindings.setObjectForKey(myVarValue, "myVar");

NSArray results = EOUtilities.objectsWithFetchSpecificationAndBindings
	(ec, "TheEntityName", "TheFetchSpecName", bindings);


HTH,

Naden

On Tuesday, January 28, 2003, at 02:01  PM, Riaz Lalehzari wrote:

Hello all,

I have started using the fetch specifications you can make from within the EOModeller, but when I use for example a variable in the query (myField = $myVar), I don't exactly know how to assign anything to this value of 'myVar' from my java code and so I always get an error during runtime because in the sql there's only a '?' in place of the myVar.

As usual, all your comments are appreciated.

Cheers,

Riaz
_______________________________________________
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: 
 >Fetch Specifications (From: "Riaz Lalehzari" <email@hidden>)

  • Prev by Date: Re: Fetch Specifications
  • Next by Date: WO5.2 how to find out the bindings takeValuesFrom.....
  • Previous by thread: Re: Fetch Specifications
  • Next by thread: WO5.2 how to find out the bindings takeValuesFrom.....
  • Index(es):
    • Date
    • Thread