Java Reference
In-Depth Information
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.
15.1
W HAT Y OU W ILL L EARN
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.
327
Search WWH ::




Custom Search