ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris.Go...@gtservicing.com
Subject Re: [jira] Commented: (IBATIS-28) Support multiple results from Stored Procedures
Date Thu, 16 Dec 2004 18:36:23 GMT
I think it should return a List of resultMap-created objects.  The 
resultMap options themselves could be a list if that result returned 
multiple rows.  Can INOUT parameters also be grabbed by a resultMap, or do 
they just update the original parameterClass?





"Clinton Begin (JIRA)" <ibatis-dev@incubator.apache.org>
12/16/2004 08:38 AM

 
To:     chris.gores@gtservicing.com
cc: 
Subject:        [jira] Commented: (IBATIS-28) Support multiple results from Stored 
Procedures


[ http://nagoya.apache.org/jira/browse/IBATIS-28?page=comments#action_56777 ]

Clinton Begin commented on IBATIS-28:
-------------------------------------

A fair suggestion.  It's been talked about before.

In your opinion, what would be returned from queryForObject() and/or 
queryForList()??

A collection of objects and/or collections and/or a combination of both?

Cheers,
Clinton

> Support multiple results from Stored Procedures
> -----------------------------------------------
>
>          Key: IBATIS-28
>          URL: http://nagoya.apache.org/jira/browse/IBATIS-28
>      Project: iBatis for Java
>         Type: Improvement
>   Components: SQL Maps
>     Versions: 2.0.8
>  Environment: All
>     Reporter: Christopher John Gores

>
> It seems there is no support for multiple results being returned by a 
stored procedure (i.e. statement.getMoreResults()).  Unfortunately, that's 
a showstopper for my new project that needs to call legacy procedures.
> Suggested solution:  Allow a statement to use an ordered collection of 
resultMaps, either by creating a new <resultMapSet> tag, allowing 
<resultMap> to nest, or by allowing the statement's resultMap attribute to 
hold a comma-separated list of resultMaps.  The resulting object would 
have to be a List of mapped result objects.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira



Mime
View raw message