Announcement Announcement Module
Collapse
No announcement yet.
Result Set Object Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Result Set Object

    Hi

    Is there any method which returns a Result Set Object. I use queryForList() whihc returns a List. I am confused on how to get a particular column value from the list of rows returned

    Thanks
    Benno

  • #2
    JdbcTemplate.queryForList() returns a list of Map. The Map for each row has a key of the column name and the value of the actual value. So you get a column value by asking for it by name.

    The ResultSet is not directly exposed by queryForList(). But you could easily implement a ResultSetExtractor or RowCallbackHandler to do custom extraction.

    Comment

    Working...
    X