• 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: EOQualifier wildcard problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOQualifier wildcard problem


  • Subject: Re: EOQualifier wildcard problem
  • From: Lachlan Deck <email@hidden>
  • Date: Tue, 11 Nov 2008 10:11:14 +1100

On 11/11/2008, at 9:16 AM, Awbrey Hughlett wrote:

On Nov 10, 2008, at 3:58 PM, Chuck Hill wrote:

On Nov 10, 2008, at 1:31 PM, Awbrey Hughlett wrote:

Why does this work for matching the word "Lubbock":

EOQualifier.qualifierWithFormat("city caseInsensitiveLike 'lub*'", null);


and not this:

String cityWildcard = "lub";
NSArray args = new NSArray(cityWildcard + "*");
EOQualifier.qualifierWithFormat("city caseInsensitiveLike %@", args);

This is not just doing string catenation. Try this:

NSArray args = new NSArray(cityWildcard);
EOQualifier.qualifierWithFormat("city caseInsensitiveLike %@*", args);

You could of course avoid qualifierWithFormat:
new EOKeyValueQualifier(YourEntity.CITY_KEY, EOQualifier.QualifierOperatorCaseInsensitiveLike, string + "*");


Am I missing something? I read the webobjects reference documents on this and they didn't point out the problem. If it makes any difference, I am using webobjects 5.3 and
Wonder. Can anyone help please?

As you're using Wonder: YourEntity.CITY.caseInsensitive(string + "*");


with regards, --

Lachlan Deck



_______________________________________________
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


  • Follow-Ups:
    • Re: EOQualifier wildcard problem
      • From: Richard Stephens <email@hidden>
References: 
 >EOQualifier wildcard problem (From: Awbrey Hughlett <email@hidden>)
 >Re: EOQualifier wildcard problem (From: Chuck Hill <email@hidden>)
 >Re: EOQualifier wildcard problem (From: Awbrey Hughlett <email@hidden>)

  • Prev by Date: JNDI Datasource vs JDBC (Tomcat deployment)
  • Next by Date: Re: EOQualifier wildcard problem
  • Previous by thread: Re: EOQualifier wildcard problem
  • Next by thread: Re: EOQualifier wildcard problem
  • Index(es):
    • Date
    • Thread