NSArray<String> keys = new NSArray<String>(new
String[]{"chart_count", "chart_size_sum"});
        NSArray<NSDictionary> result =
EOUtilities.rawRowsForSQL(editingContext,
                "legalsounds",
                "SELECT count(*), sum(songFileSize) FROM `Song`", keys);

works fine

17 апреля 2012 г. 10:20 пользователь Ron X <ron.x.by...@gmail.com> написал:

> Error!
> The method rawRowsForSQL(EOEditingContext, String, String, NSArray) in the
> type EOUtilities is not applicable for the arguments (EOEditingContext,
> String, String, String[])
>
> 13 апреля 2012 г. 21:47 пользователь Larry Mills-Gahl 
> <l...@webfarm.com>написал:
>
>
>>
>> On Apr 13, 2012, at 7:07 AM, Ron X wrote:
>>
>> thank you very much! very good!
>> this method considered deprecated - is there non-deprecated method?
>>
>>
>> *EOUtilities.rawRowsForSQL<http://api.webobjects.me/wo542/com/webobjects/eoaccess/EOUtilities.html#rawRowsForSQL%28com.webobjects.eocontrol.EOEditingContext,%20java.lang.String,%20java.lang.String,%20com.webobjects.foundation.NSArray%29>
>> *(EOEditingContext<http://api.webobjects.me/wo542/com/webobjects/eocontrol/EOEditingContext.html>
>>  ec, String<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html>
>>  modelName, 
>> String<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html>
>>  sqlString, 
>> NSArray<http://api.webobjects.me/wo542/com/webobjects/foundation/NSArray.html>
>>  keys)
>>
>>
>>  rawRowsForSQL
>>
>> public static NSArray 
>> <http://api.webobjects.me/wo542/com/webobjects/foundation/NSArray.html> 
>> *rawRowsForSQL*(EOEditingContext 
>> <http://api.webobjects.me/wo542/com/webobjects/eocontrol/EOEditingContext.html>
>>  ec,
>>                                     String 
>> <http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html> modelName,
>>                                     String 
>> <http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html> sqlString,
>>                                     NSArray 
>> <http://api.webobjects.me/wo542/com/webobjects/foundation/NSArray.html> keys)
>>
>> Evaluates the specified SQL and returns the resulting raw rows.
>>
>>
>> *Parameters:*ec - an EOEditingContext modelName - name of the EOModel to
>> usesqlString - the query string in SQL syntaxkeys - array of Strings
>> corresponding to the SELECT list; these will be used as the keys in the
>> result dictionaries; use null for default naming *Returns:*matching raw
>> rows (an NSArray of NSDictionaries)
>> *Since:*5.2.2
>>
>>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to