Abstract
The previous chapter introduced the Spring Framework’s integration with Java data-access frameworks. This chapter provides more detailed insight into Spring’s support for persistence using JDBC, covering the following topics:
-
How the JdbcTemplate class takes care of the boilerplate code you usually encounter and simplifies working with the JDBC API.
-
How to use the JdbcTemplate class to perform common database tasks, such as selecting, inserting, updating, and deleting data.
-
How to use a convenient base class for your data access objects (DAOs) that builds on the JdbcTemplate class.
-
How to use callbacks, which make performing more complex tasks easier.
-
How to use executable query objects, which allow you to work with database operations in a more object-oriented manner.
-
How to perform batch operations, working with large chunks of data in the form of large objects (LOBs), and obtaining native JDBC objects, while still leveraging the power of Spring’s data abstraction framework.
-
The features that are new in Spring 2.0, including the SimpleJdbcTemplate class, an even more lightweight template class for performing JDBC operations.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Editor information
Rights and permissions
Copyright information
© 2007 Interface 21, Bram Smeets, Seth Ladd
About this chapter
Cite this chapter
(2007). Persistence with JDBC. In: Smeets, B., Ladd, S. (eds) Building Spring 2 Enterprise Applications. Apress. https://doi.org/10.1007/978-1-4302-0500-5_6
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0500-5_6
Publisher Name: Apress
Print ISBN: 978-1-59059-918-1
Online ISBN: 978-1-4302-0500-5
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)