ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Maves <Nathan.Ma...@Sun.COM>
Subject Re: Two new wiki entries!
Date Fri, 05 Aug 2005 17:28:17 GMT
You have to do it after you have the List.

List list = quesrtyForList(......)

String[] stingArray = (String[])list.toArray(new String[0]);

I think that should work.  But you had better make sure you have a  
List of java.lang.String or you will get a runtime ClassCastException

Nathan

On Aug 5, 2005, at 11:20 AM, Mark Bennett wrote:

> How do I get an Array of Integers or an Array of Strings instead of  
> a List?
>
>
>
> On 8/5/05, Nathan Maves <Nathan.Maves@sun.com> wrote:
>
>
> Where can I get more information about Data Access Objects?
> http://opensource.atlassian.com/confluence/oss/display/IBATIS/Where 
> +can+I+get+more+information+about+Data+Access+Objects%3F
>
>
> How do I get a Map of results instead of a List?
> http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do 
> +I+get+a+Map+of+results+instead+of+a+List%3F
>


Mime
View raw message