ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arie Ozarov (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Created: (IBATIS-481) Bailing out from queryWithRowHandler
Date Thu, 03 Jan 2008 23:03:33 GMT
Bailing out from queryWithRowHandler

                 Key: IBATIS-481
                 URL: https://issues.apache.org/jira/browse/IBATIS-481
             Project: iBatis for Java
          Issue Type: Improvement
          Components: SQL Maps
            Reporter: Arie Ozarov

Is the only way to bail out (exit) while processing queryWithRowHandler is to throw RuntimeException
from RowHandler#handleRow (and is it safe - looking at the code I saw that  sql.cleanup(request);
will not be called in such case [at GeneralStatement line 181])?
If I query for 1M rows but got what I want before completing (or realized that it is useless)
than I would like to avoid the traversal of the rest of the records (and save time/resource
spent on both the client as well as the DB). If not a change in the API than at least in the
Javadoc would be helpful.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message