I am studying how to execute query on a database using JDBC in Spring Framework.
I am following this tutorial: http://www.tutorialspoint.com/spring/spring_jdbc_example.h
So, who call this mapRow method? is it called automatically by the Spring Framework? (because in this example is never called manually...)
This is automatically called by spring framework. All You need is to specify
- Connection parameters,
- SQL statement
- Declare parameters and provide parameter values
- Do the work for each iteration.