spring MappingSqlQuery

I was reading folowing lines and I did not understand clearly.

Querying the database with a MappingSqlQuery
To model a query as an object, we subclass the MappingSqlQuery class.

Any ideas, resources,sample code,links, highly appreciated. thanks in advance
LVL 7
gudii9Asked:
Who is Participating?
 
Sathish David Kumar NConnect With a Mentor ArchitectCommented:
Reusable query in which concrete subclasses must implement the abstract mapRow(ResultSet, int) method to convert each row of the JDBC ResultSet into an object.

Simplifies MappingSqlQueryWithParameters API by dropping parameters and context. Most subclasses won't care about parameters. If you don't use contextual information, subclass this instead of MappingSqlQueryWithParameters.

reffer this .....

http://static.springsource.org/spring/docs/1.2.x/api/org/springframework/jdbc/object/MappingSqlQuery.html
0
 
objectsCommented:
0
 
objectsConnect With a Mentor Commented:
Its useful if you're not using JdbcTemplate. Typically you would use JdbcTemplate with a RowMapper instead
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.