On Mar 17, 2008, at 8:29 AM, Alexander Spohr wrote:

Or if you’re not using Wonder stick to the matching qualifiers:
EOKeyValueQualifier, EOAndQualifier, EOOrQualifier...

Forget that there is something like qualifierWithFormat. It is considered evil and only lures the lazy ones into the pit of the queasy qualifier beast of traal!

Sure, go and give away the secret to dependable code.  :-P




Am 17.03.2008 um 16:19 schrieb Mike Schrag:

"part = %@ and lotCodeValue = %@ amd manufacturingSchedule = %@"
This is why I build qualifiers with code. In particular, with ERXKey, this would be:

EOQualifier qualifier = Item .PART .is (part ).and (Item .LOT_CODE_VALUE .is(lotCodeValue)).and(Item.MANUFACTURING_SCHEDULE.is(schedule))

or if you don't want to go all the way to ERXKey:

EOQualifier qualifier = ERXQ.and(ERXQ.equals(Item.PART_KEY, part), ERXQ.equals(Item.LOT_CODE_VALUE_KEY, lotCodeValue), ERXQ.equals(Item.MANUFACTURING_SCHEDULE_KEY, schedule))


--

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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to