Re: EOQualifier from object array
Re: EOQualifier from object array
- Subject: Re: EOQualifier from object array
- From: Chuck Hill <email@hidden>
- Date: Wed, 13 Jul 2011 15:59:49 -0500
On 2011-07-13, at 3:19 PM, Steve Peery wrote:
> Does anybody talk code on this list anymore ;-)
No, but there might be a committee for that. :-P
> I have an array of EO objects and I want to fetch an array with all EO objects that are not in the array.
> If I were using SQL, it would look something like this:
>
> SELECT oid FROM MyEOObject WHERE oid != 1 AND oid != 3 AND oid != 5;
>
> I can do it using EOQualifier.qualifierWithQualifierFormat and a format string or I can fetch them all and make the array by comparing them. Is there a better way?
Using Wonder, right? Right?
See the classes in package er.extensions.eof.qualifiers. Specifically ERXInQualifier, ERXPrimaryKeyListQualifier, and ERXQualifierInSubquery. Along with the standard EONotQualifier.
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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