Name

Package javax.sql

Synopsis

The javax.sql package contains what was originally the JDBC 2.0 optional packages; these are now a part of the J2SE 1.4. The classes and interfaces in this package provide new functionality, such as connection pooling, that does not fall under the scope of the original JDBC API and can therefore be safely packaged separately. The DataSource interface serves as a factory for Connection objects; DataSource objects can be registered with a JNDI server, making it possible to get the name of a database from a name service. PooledConnection supports connection pooling, which allows an application to handle multiple database connections in a fairly transparent manner. RowSet extends the ResultSet interface into a JavaBeans component that can be manipulated at design-time and used with non-SQL data sources.

Interfaces

  • ConnectionPoolDataSource

  • DataSource

  • PooledConnection

  • RowSet

  • RowSetInternal

  • RowSetMetaData

  • RowSetReader

  • RowSetWriter

  • XAConnection

  • XADataSource

Events

  • ConnectionEvent

  • RowSetEvent

Event Listeners

  • ConnectionEventListener

  • RowSetListener

Get Java Enterprise in a Nutshell, Second Edition 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.