ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: way to get resultSet as a list w/out putting data in class
Date Mon, 17 Dec 2007 22:37:53 GMT
Use a HashMap as the result class.  You'll get back a List of HashMaps with
the entire result set.

Jeff Butler



On Dec 17, 2007 3:44 PM, bhaarat Sharma <bhaarat.s@gmail.com> wrote:

> Hello,
>
> I am trying to convert resultSet code to use iBatis.
>
> I know in iBatis the results are put in a class and returned as a
> collection of those classes.  But my code has a lot of logic in which
> we are iterating over the resultset and there are lots of conditional
> (if/else)statements.
>
> I am wondering if there is a way to get the results from iBatis as a
> simple plain list.
> So I can treat the returned list from iBatis as a resultSet basically.
>
> Thanks!
>

Mime
View raw message