camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zemian Deng (JIRA)" <>
Subject [jira] [Commented] (CAMEL-6366) SQL component - Add option to dictate if output is list, object or map
Date Fri, 02 Aug 2013 19:49:49 GMT


Zemian Deng commented on CAMEL-6366:

Hi Claus,

Thanks for the feedback. I added the feature with the assumption that you want something similar
to what Spring's JdbcTemplate.queryForObject provided. Because underneath camel-sql we are
already using JdbcTemplate to query data.

I would think what you proposed will fit more to add in mybatis camel component itself, no?
To me it seems confusing on usage on selectForObject vs Spring queryForObject.

Anyhow, let me read up little more on mybatis impl and then see if I can fully understand
what exactly is that you are asking for here. As of now, I am a bit confused. :)
> SQL component - Add option to dictate if output is list, object or map
> ----------------------------------------------------------------------
>                 Key: CAMEL-6366
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-sql
>            Reporter: Claus Ibsen
>             Fix For: 2.12.0
>         Attachments: CAMEL-6366.patch
> When using the sql component, the output is always a List<Map>.
> It would be nice if you could configure an option to say its a 
> - selectForObject
> - selectForList
> - selectForMap
> Like MyBatis can do.
> Also we can consider having a way to store the output on a header instead of altering
the body. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message