Java Interfaces to Databases

Database access from Java applications and applets can be achieved with either JDBC or the more recent SQLJ. Each is outlined in the following section.

JDBC

The best-known method of accessing databases from a Java program is with the JDBC API. JDBC provides a vendor-neutral way of accessing relational databases. JDBC permits a Java applet or application to do the following things:

  • Connect to a database.

  • Send SQL statements to the database.

  • Receive the results after they have been processed.

The features provided by JDBC classes include simultaneous connections to several databases, cursor support (scrollable result set), large-object support, batch updates, calls to stored procedures, and database dictionary access. ...

Get Configuring and Tuning Databases on the Solaris™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.