Skip to main content

Persistence with JDBC

  • Chapter
  • 375 Accesses

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

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   29.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   42.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Editor information

Bram Smeets Seth Ladd

Rights and permissions

Reprints 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

Publish with us

Policies and ethics