Re: Fetch Specifications
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.