implement resultset methods in com.ibatis.sqlmap.client.SqlMapClient:
---------------------------------------------------------------------
Key: IBATIS-290
URL: http://issues.apache.org/jira/browse/IBATIS-290
Project: iBatis for Java
Type: New Feature
Components: SQL Maps
Versions: 2.2.5, 2.2.0
Reporter: Peter Köhler
Hello to the ibatis community,
her is my wish list for a new release:
Implement new methods in com.ibatis.sqlmap.client.SqlMapClient:
public java.sql.ResultSet queryForResultSet(String mappedStatement, Object
parameter);
public java.util.List getListForResultSet(String resultMap,
java.sql.ResultSet resultSet);
public java.util.List getListForResultSet(String resultMap,
java.sql.ResultSet resultSet, int maxRows);
public java.util.List getListForResultSet(java.lang.Class, java.sql.ResultSet
resultSet);
public java.util.List getListForResultSet(java.lang.Class, java.sql.ResultSet
resultSet, int maxRows);
So that one could retrieve a ResultSet (first method) and then map it to
Objects in a List via
ResultMaps or via automapping.
My motivation behind this is that developers sometimes have to deal with
resultsets which are
required by other API´s.
It would be great to leverage Ibatis even in this low level environment.
Another use case is to avoid OutOfMemoryErrors in huge and expensive resultsets
by stepping through one resultset,
instead of repeating the query multiple times with different step sizes.
Thanks in advance and happy discussing ;)
Greetings from Frankfurt, Germany
Peter Köhler
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira