ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guy Rouillier <guyr-...@burntmail.com>
Subject Re: read large result set in Ibatis3
Date Thu, 18 Feb 2010 17:44:08 GMT
On 2/18/2010 10:16 AM, Tomáš Procházka wrote:
> Ideal will be possibility to add method to mapper will return object
> on which I can call something like getNext(), hasNext() and close().
> Statement will be open and Ibatis will be read and convert to object
> only one Object for every getNext call.

That is very JDBC-ish.  From my perspective, iBATIS attempts to hide all 
that so that the programmer can just deal with lists of objects. 
ResultHandler lets you change how the list gets built.  What you are 
asking is for JDBC to be exposed again, something like ResultSetHandler. 
  I guess it would be possible to make that pluggable, but then you are 
undoing much of the framework.

Guy Rouillier

To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org

View raw message