• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: simple EOKeyValueQualifier question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >simple EOKeyValueQualifier question (From: email@hidden (Tom Carstensen))

  • Prev by Date: simple EOKeyValueQualifier question
  • Next by Date: Can't build 5.2 projects on Windows XP
  • Previous by thread: simple EOKeyValueQualifier question
  • Next by thread: Can't build 5.2 projects on Windows XP
  • Index(es):
    • Date
    • Thread