ContactUs

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

JDBC : How to get the list of student objects ?

String query = "select SNO,SNAME from STUDENT";
In JDBC, its not possible to get a row in the form of object. We can get the ResultSet, process it and prepare the object.
In Spring JDBC also its not possible to get a row in the form of object.Here also we need to process the ResultSet and prepare the object.
In Spring JDBC, we no need to create the Connection, Statement, ResultSet, closing the resources and Exception Handling etc....Spring will create the ResultSet and just we need to process the ResultSet...We no need to create the List also because spring creates list object and it will add the objects to the list.
Related Posts Plugin for WordPress, Blogger...
Flag Counter