Re: simple EOKeyValueQualifier question
Re: simple EOKeyValueQualifier question
- Subject: Re: simple EOKeyValueQualifier question
- From: Art Isbell <email@hidden>
- Date: Wed, 27 Nov 2002 17:56:20 -1000
On Wednesday, November 27, 2002, at 05:39 PM, Tom Carstensen wrote:
The follow qualifier when used in a fetch will never return
partial matches, and the "contains" should do. ONly exact
matches get returned.
searchQual = new EOKeyValueQualifier("title",
EOQualifier.QualifierOperatorContains, title;
I believe you have misunderstood the semantics of
EOQualifier.QualifierOperatorContains. This operator should be used
when qualifying in-memory arrays; i.e., the qualifier is true when the
array "contains" the value.
Instead, you need to use the EOQualifier.QualifierOperatorLike
operator plus appropriate wildcard characters in your value string: '?'
matches a single character, '*' matches zero or more characters.
Art
_______________________________________________
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.