Chapter 15. Accessing the Data: An Introduction to JDBC

Java provides a back-end-independent interface to databases called Java DataBase Connectivity classes, or JDBC. We introduce the basics of the system here, and illustrate portability that makes it possible for our application to switch between two different database back ends.

What You Will Learn

We will cover the basics of interaction with a database in Java. This involves

  • Establishing and tearing down connections to a database

  • Querying data in the database and reading the results

  • Performing other database operations that modify data, but do not return data results

We assume that you are familiar with simple SQL constructs.

Introducing JDBC

For many real-world applications, there are copious amounts ...

Get Java™ Application Development on Linux® now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.