Hi Ron,The m2e plug-in usually respects the order of your dependencies. Always add ERExtensions as your first dependency to avoid problems.Cheers, HenriqueOn 17/04/2012, at 12:30, Ron X wrote:i use maven 17 апреля 2012 г. 17:17 пользователь Johann Werner <email@hidden> написал: Am 17.04.2012 um 15:52 schrieb Ron X:compilation error:The constructor NSArray<String>(String, String) is undefined Then something with your class path is wrong, the Wonder version of NSArray has the constructor NSArray(E, E...).Check if ERExtensions comes before the Java* frameworks. 17 апреля 2012 г. 11:53 пользователь Johann Werner <email@hidden> написал: Am 17.04.2012 um 09:22 schrieb Ron X: NSArray<String> keys = new NSArray<String>(new String[]{"chart_count", "chart_size_sum"});don't make it more complicated than necessary: keys = new NSArray<String>("chart_count", "chart_size_sum"); NSArray<NSDictionary> result = EOUtilities.rawRowsForSQL(editingContext, "legalsounds", "SELECT count(*), sum(songFileSize) FROM `Song`", keys);works fine17 апреля 2012 г. 10:20 пользователь Ron X <email@hidden> написал: 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 <email@hidden> написал: 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(EOEditingContext ec, String modelName, String sqlString, NSArray keys) rawRowsForSQLpublic static NSArray rawRowsForSQL(EOEditingContext ec, String modelName, String sqlString, NSArray 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 (email@hidden) This email sent to email@hidden
i use maven 17 апреля 2012 г. 17:17 пользователь Johann Werner <email@hidden> написал: Am 17.04.2012 um 15:52 schrieb Ron X:compilation error:The constructor NSArray<String>(String, String) is undefined Then something with your class path is wrong, the Wonder version of NSArray has the constructor NSArray(E, E...).Check if ERExtensions comes before the Java* frameworks. 17 апреля 2012 г. 11:53 пользователь Johann Werner <email@hidden> написал: Am 17.04.2012 um 09:22 schrieb Ron X: NSArray<String> keys = new NSArray<String>(new String[]{"chart_count", "chart_size_sum"});don't make it more complicated than necessary: keys = new NSArray<String>("chart_count", "chart_size_sum"); NSArray<NSDictionary> result = EOUtilities.rawRowsForSQL(editingContext, "legalsounds", "SELECT count(*), sum(songFileSize) FROM `Song`", keys);works fine17 апреля 2012 г. 10:20 пользователь Ron X <email@hidden> написал: 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 <email@hidden> написал: 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(EOEditingContext ec, String modelName, String sqlString, NSArray keys) rawRowsForSQLpublic static NSArray rawRowsForSQL(EOEditingContext ec, String modelName, String sqlString, NSArray 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 (email@hidden) This email sent to email@hidden
Am 17.04.2012 um 15:52 schrieb Ron X:compilation error:The constructor NSArray<String>(String, String) is undefined Then something with your class path is wrong, the Wonder version of NSArray has the constructor NSArray(E, E...).Check if ERExtensions comes before the Java* frameworks. 17 апреля 2012 г. 11:53 пользователь Johann Werner <email@hidden> написал: Am 17.04.2012 um 09:22 schrieb Ron X: NSArray<String> keys = new NSArray<String>(new String[]{"chart_count", "chart_size_sum"});don't make it more complicated than necessary: keys = new NSArray<String>("chart_count", "chart_size_sum"); NSArray<NSDictionary> result = EOUtilities.rawRowsForSQL(editingContext, "legalsounds", "SELECT count(*), sum(songFileSize) FROM `Song`", keys);works fine17 апреля 2012 г. 10:20 пользователь Ron X <email@hidden> написал: 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 <email@hidden> написал: 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(EOEditingContext ec, String modelName, String sqlString, NSArray keys) rawRowsForSQLpublic static NSArray rawRowsForSQL(EOEditingContext ec, String modelName, String sqlString, NSArray 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
compilation error:The constructor NSArray<String>(String, String) is undefined
17 апреля 2012 г. 11:53 пользователь Johann Werner <email@hidden> написал: Am 17.04.2012 um 09:22 schrieb Ron X: NSArray<String> keys = new NSArray<String>(new String[]{"chart_count", "chart_size_sum"});don't make it more complicated than necessary: keys = new NSArray<String>("chart_count", "chart_size_sum"); NSArray<NSDictionary> result = EOUtilities.rawRowsForSQL(editingContext, "legalsounds", "SELECT count(*), sum(songFileSize) FROM `Song`", keys);works fine17 апреля 2012 г. 10:20 пользователь Ron X <email@hidden> написал: 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 <email@hidden> написал: 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(EOEditingContext ec, String modelName, String sqlString, NSArray keys) rawRowsForSQLpublic static NSArray rawRowsForSQL(EOEditingContext ec, String modelName, String sqlString, NSArray 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
Am 17.04.2012 um 09:22 schrieb Ron X: NSArray<String> keys = new NSArray<String>(new String[]{"chart_count", "chart_size_sum"});don't make it more complicated than necessary: keys = new NSArray<String>("chart_count", "chart_size_sum"); NSArray<NSDictionary> result = EOUtilities.rawRowsForSQL(editingContext, "legalsounds", "SELECT count(*), sum(songFileSize) FROM `Song`", keys);works fine17 апреля 2012 г. 10:20 пользователь Ron X <email@hidden> написал: 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 <email@hidden> написал: 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(EOEditingContext ec, String modelName, String sqlString, NSArray keys) rawRowsForSQLpublic static NSArray rawRowsForSQL(EOEditingContext ec, String modelName, String sqlString, NSArray 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
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 fine17 апреля 2012 г. 10:20 пользователь Ron X <email@hidden> написал: 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 <email@hidden> написал: 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(EOEditingContext ec, String modelName, String sqlString, NSArray keys) rawRowsForSQLpublic static NSArray rawRowsForSQL(EOEditingContext ec, String modelName, String sqlString, NSArray 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
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 <email@hidden> написал: 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(EOEditingContext ec, String modelName, String sqlString, NSArray keys) rawRowsForSQLpublic static NSArray rawRowsForSQL(EOEditingContext ec, String modelName, String sqlString, NSArray 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
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(EOEditingContext ec, String modelName, String sqlString, NSArray keys) rawRowsForSQLpublic static NSArray rawRowsForSQL(EOEditingContext ec, String modelName, String sqlString, NSArray 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
thank you very much! very good! this method considered deprecated - is there non-deprecated method?
EOUtilities.rawRowsForSQL(EOEditingContext ec, String modelName, String sqlString, NSArray keys)
public static NSArray rawRowsForSQL(EOEditingContext ec, String modelName, String sqlString, NSArray keys)
ec
modelName
sqlString
keys
_______________________________________________ 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