Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
06 Spring Jdbc2

06 Spring Jdbc2

Ratings: (0)|Views: 1|Likes:
Published by Prashant Shirsath

More info:

Published by: Prashant Shirsath on Oct 31, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/04/2012

pdf

text

original

 
© 2008 coreservlets.com
 Part 2
Originals of Slides and Source Code for Examples:http://courses.coreservlets.com/Course-Materials/spring.html
Customized Java EE Training: http://courses.coreservlets.com/
Servlets, JSP, Struts, JSF/MyFaces/Facelets, Ajax, GWT, Spring, Hibernate/JPA, Java 5 & 6.Developed and taught by well-known author and developer. At public venues or onsite at
 your 
location.
© 2008 coreservlets.com
For live Spring & Hibernate training, seecourses a p:courses.coreserves.com.
Taught by the experts that brought you this tutorial.,can be held on-site at yourorganization.
 
Customized Java EE Training: http://courses.coreservlets.com/
Servlets, JSP, Struts, JSF/MyFaces/Facelets, Ajax, GWT, Spring, Hibernate/JPA, Java 5 & 6.Developed and taught by well-known author and developer. At public venues or onsite at
 your 
location.
 
ourses eveope an aug y ary a
 –Java 5, Java 6, intermediate/beginning servlets/JSP, advanced servlets/JSP, Struts, JSF, Ajax, GWT, custom mix of topics
Courses developed and taught by coreservlets.com experts (edited by Marty)
 –Spring, Hibernate/JPA, EJB3, Ruby/Rails
Contact hall@coreservlets.com for details
 
Topics in This Section
Introduction to Spring JDBC APIs
Result transformations
Parametermapping
Updatingtables
Java EE trainin: htt://courses.coreservlets.com
4
© 2008 coreservlets.com
anng
Customized Java EE Training: http://courses.coreservlets.com/
Servlets, JSP, Struts, JSF/MyFaces/Facelets, Ajax, GWT, Spring, Hibernate/JPA, Java 5 & 6.Developed and taught by well-known author and developer. At public venues or onsite at
 your 
location.
 
Spring JDBC ResultSet Support
Transforms information from JDBC
ResultSet
objects into domain types
 – Hard-coded mapping information
aaase canges resus n coe canges
 –  No reflection overhead –  
Spring API offers numerous mapping
 – Row to object mapping – Ted Row to obect main
Java EE trainin: htt://courses.coreservlets.com
 – Result to object collection mapping
6
Row to Object Mapping
 
Implemented as a Spring callback interface
Method signature is simple and intuitive
 – Single method requirement
: , :
 – Only handles rows – Stateless callback 
 
 
implementations
Method signature throws
SQLException
 –  
Design is simple but limited
 – Limited utility without JDBC template
Java EE trainin: htt://courses.coreservlets.com
 –   – Only supported by
JdbcTemplate
7

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->