ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koka Kiknadze" <226...@gmail.com>
Subject Re: Using an array instead of a List
Date Sat, 03 Mar 2007 19:32:49 GMT
>   I
> realize that Lists and Collections are better but an array is still a
> common data structure.
> Collin

I guess the problem here is that when querying the database you never know
how many rows will be retruned (unless you run separate count query
beforehand), so most natural way is to populate a List with returned rows.
Of course one could add ad hoc convertion to the Array, but seems this is
left for us if we need arrays returned...

View raw message