File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about template.queryForList

 
Higgledy Smith
Ranch Hand
Posts: 192
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am learning Spring and really not seeing the whole picture with jdbctemplate.

Here is my code, which does work:



Where I am stuck is how to test the result that comes back. With the debugger, I can see the results I just don't know how to setup to test for the results.

I have attached the result from the debugger. From what I see, the result object is a list of maps.

Thank you.

Higgledy


results.png
debugger results snapshot
[Thumbnail for results.png]
 
Higgledy Smith
Ranch Hand
Posts: 192
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The API for SimpleJdbcTemplate, shows that the method, queryForList, returns List<Map><String,Object>>.

How do I interept List<Map><String,Object>> ? Is the return a List of Maps with a String for the Key to the Object?

Thank you
Higgledy
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic