O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

The process of accessing a database with JDBC involves first accessing an appropriate database driver and then obtaining a connection to the database. In this chapter we explored the process of connecting to the database by examining the JDBC interface that describes the connection to the database—the Connection interface.

Once a connection has been made, we must present a SQL statement to the database to either extract data (using a select query) or update data (using an update query). This requires an appropriate object. In this chapter we examined the Statement interface, which encapsulates the methods required to execute SQL statements against the relational database. The PreparedStatement interface extends the Statement interface ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required