ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bhaarat Sharma" <bhaara...@gmail.com>
Subject Re: way to get resultSet as a list w/out putting data in class
Date Tue, 18 Dec 2007 21:52:54 GMT
hi,

do you have an example of rowHandler implementation?

will that be more effecient than HashMaps? and how will we retrieve
results in the java code.

w/ hashMap we can just do map.get(\"propertyName\");
On 12/18/07, Brian Parkinson <parki@avaning.com> wrote:
Hi -
>
> One may might be to implement a row handler.
>
> parki...
>
>
> -----Original Message-----
> From:
> Sent: Monday, December 17, 2007 3:44 PM
> To: user-java@ibatis.apache.org
> Subject: way to get resultSet as a list w/out putting data in class
>
> 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