• 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: NSDictionary keys to be all lowercase ALL THE TIME...??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDictionary keys to be all lowercase ALL THE TIME...??


  • Subject: Re: NSDictionary keys to be all lowercase ALL THE TIME...??
  • From: Robert Walker <email@hidden>
  • Date: Tue, 5 Apr 2005 16:00:17 -0400

Clint,

EOUtilities.rawRowsForSQL(myEC, MyEOModel,"select count(*) as totalrows from pattspec");

First off you will notice that you are using a deprecated method. You should use the new version of EOUtilities.rawRowsForSQL(). The new method takes a fourth argument to do exactly what you want. You will provide an NSArray of the keys to use in the resulting array of dictionaries. Just make sure the number of elements in your NSArray match the number of elements returned in the dictionaries and the order in the arrays match. The intent of this new method is to use the internal names that you specified in your model so that you have more consistency on the Java side.


On Apr 5, 2005, at 12:25 PM, Clint Fleetwood wrote:

I am using the latest MySQL 5.0.2 and having to use rawRowsForSQL almost exclusively due to the large amount of datasets that i'm dealing with and would like for all database column names to show up in ALL lowercase so when I issue:

EOUtilities.rawRowsForSQL(myEC, MyEOModel,"select count(*) as totalrows from pattspec");

- That I get back an NSArray of NSDictionaries that contain ALL lowercase key names....

Even from the above statement I get an NSDictionary containing a key "TOTALROWS" and not "totalrows" even though I specify it as all lowercase in the statement. Is there a setting I can put in the Application constructor that will command that EOF to force all lowercase column(key) names ????

It seems it capitalizes all key names by default ??

Thanks,
nathan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

--
Robert Walker
Bennett Technology Group
(770) 957-1866 Ext: 790

_______________________________________________
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: NSDictionary keys to be all lowercase ALL THE TIME...??
      • From: Sacha Mallais <email@hidden>
References: 
 >NSDictionary keys to be all lowercase ALL THE TIME...?? (From: Clint Fleetwood <email@hidden>)

  • Prev by Date: Re: NSDictionary keys to be all lowercase ALL THE TIME...??
  • Next by Date: Re: NSDictionary keys to be all lowercase ALL THE TIME...??
  • Previous by thread: Re: NSDictionary keys to be all lowercase ALL THE TIME...??
  • Next by thread: Re: NSDictionary keys to be all lowercase ALL THE TIME...??
  • Index(es):
    • Date
    • Thread