13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 15Accessing the Data:An Introducti<strong>on</strong> to JDBCJava provides a back-end-independent interface to databases called JavaDataBase C<strong>on</strong>nectivity classes, or JDBC. We introduce the basics of the systemhere, and illustrate portability that makes it possible for our applicati<strong>on</strong> toswitch between two different database back ends.15.1WHAT YOU WILL LEARNWe will cover the basics of interacti<strong>on</strong> with a database in Java. This involves• Establishing and tearing down c<strong>on</strong>necti<strong>on</strong>s to a database• Querying data in the database and reading the results• Performing other database operati<strong>on</strong>s that modify data, but do not returndata resultsWe assume that you are familiar with simple SQL c<strong>on</strong>structs.327

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!