• 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
casting in qualifier format strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

casting in qualifier format strings


  • Subject: casting in qualifier format strings
  • From: Mike Schrag <email@hidden>
  • Date: Wed, 17 Dec 2008 23:12:30 -0500

I very rarely use qualifier format strings, but i have a special case where I needed one, but i needed a timestamp literal in it ... turns out you can cast inside of a qualifier format string:

EOQualifier q = EOQualifier.qualifierWithQualifierFormat("date = (NSTimestamp)'2008-10-01 05:37:01 EST'", null);

You can actually cast to ANY object here, and if it's not a known type, it looks like it will call a string constructor, passing it the value. Fancy.

ms


_______________________________________________ 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: casting in qualifier format strings
      • From: Florijan Stamenkovic <email@hidden>
  • Prev by Date: Re: computeQueryDictionaryInContext error
  • Next by Date: Re: Weird sql generation problem running migration from WO5.4 (Oracle)
  • Previous by thread: Re: computeQueryDictionaryInContext error
  • Next by thread: Re: casting in qualifier format strings
  • Index(es):
    • Date
    • Thread