You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Nathan Maves <Na...@Sun.COM> on 2005/08/05 17:14:09 UTC

Two new wiki entries!

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

Re: Two new wiki entries!

Posted by Nathan Maves <Na...@Sun.COM>.
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 <Na...@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
>


Re: Two new wiki entries!

Posted by Mark Bennett <ma...@gmail.com>.
How do I get an Array of Integers or an Array of Strings instead of a List?


 On 8/5/05, Nathan Maves <Na...@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
>