Re: SQL Query from EOFetchspecification
Re: SQL Query from EOFetchspecification
- Subject: Re: SQL Query from EOFetchspecification
- From: Alexander Spohr <email@hidden>
- Date: Thu, 27 Mar 2008 11:37:34 +0100
Hey Rohit,
1. Don't use qualifierWithQualifierFormat, build the EOKey- and
EOAndQualifier yourself.
2. Do you want the SQL as a String? Sorry, never need that, so no idea.
3. Do you want to execute the Query? Use EOEditingContexts
objectsForFetchSpecification()
atze
Am 27.03.2008 um 11:15 schrieb <email@hidden> <email@hidden
>:
Hello All,
Could some one assist me in generating the sql query from the
EOFetchSpecification object?
For Example:
NSArray arrTemp;
NSMutableArray args = new NSMutableArray();
args.addObject("USA");
args.addObject("New york");
EOQualifier qual =
EOQualifier.qualifierWithQualifierFormat("country = %@ and city = %@",
args);
NSMutableArray sort = new NSMutableArray();
EOSortOrdering ordering1 = new EOSortOrdering ("name",
EOSortOrdering.CompareAscending);
sort.addObject(ordering1);
EOFetchSpecification spec = new EOFetchSpecification("Address",
qual, sort);
Here I want the SQL query of the "spec"
Regards,
Rohit Goel
_______________________________________________
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