ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Wilson <mw9...@yahoo.com>
Subject RE: need help - custom result set with no mapping
Date Wed, 29 Mar 2006 08:32:10 GMT
You don't want to know

"Lingala, Sadasiva" <Sadasiva.Lingala@FMR.com> wrote:  Thanks Larry.

1. I still think there is a benefit using ibatis (if I can) in this case
as I can use all the parameter mapping and externalizing the SQL etc..
2. Solution for not just accessing DAOs but also for developers writing
DAOs. There is really not much in DAO pattern as such, just a method
call. But ibatis or Hibernate makes huge difference in terms of learning
and implementing it.
3. ibatis already exposes JDBC result set in a type handler. To handle a
Oracle Ref cursor in ibatis we write a type handler. Similarly a
resultset handler (similar to type handler) is also meaningful for
situations where someone needs metadata or special handling at resultset
level instead of just one type.

I would like to hear what others also think about this.

Thanks again

-----Original Message-----
From: larry.meadors@gmail.com [mailto:larry.meadors@gmail.com] On Behalf
Of Larry Meadors
Sent: Monday, March 27, 2006 11:17 AM
To: Lingala, Sadasiva; user-java@ibatis.apache.org
Subject: Re: need help - custom result set with no mapping

On 3/27/06, Lingala, Sadasiva wrote:

A few things to note here.

> Is this difficult or not possible?

Either way, iBATIS or JDBC, you'll be writing the exact same code,
because you are wanting to work with the JDBC metadata.

> I like to find a solution as it provides uniform approach for entire
DAO layer.

The purpose of a DAO layer is to make the API that the application
sees consistent, regardless of the underlying technology used to
implement it. It is not to make the underlying technology used to
implement it consistent.

> I can write some code if you can provide some pointers as to
> how I can setup a Resultset handler.

I am not sure that this interface is ever exposed. You can write a
Typehandler...but I am still not sure that you will be able to get the
data you need.


Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min
or less.
View raw message