The javax.sql Package

The javax.sql package was originally introduced as part of the JDBC 2.0 Standard Extensions, an optional package that was not part of the JDBC core package. In JDBC 3.0, it is considered part of the core JDBC API, though drivers are not required to support all of the features to be compliant. The java.sql package includes the methods listed in Table 5-3.

The javax.sql package does not replace the JDBC API but instead supplements the API. For the javax.sql package to be used, an existing JDBC implementation must be in place.

The DataSource Class

The DataSource class, the implementation of javax.sql.DataSource, provides an abstraction for a connection to a database. The DataSource encapsulates the details of the database connection, ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software 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.