| Package | Description | 
|---|---|
| java.sql | Provides the API for accessing and processing data stored in a 
data source (usually a relational database) using the 
JavaTM programming language. | 
| javax.sql | Provides the API for server side data source access and processing from
the JavaTM programming language. | 
| javax.sql.rowset | Standard interfaces and base classes for JDBC  RowSetimplementations. | 
| Modifier and Type | Method and Description | 
|---|---|
| Connection | Driver. connect(String url,
       Properties info)Attempts to make a database connection to the given URL. | 
| Connection | DatabaseMetaData. getConnection()Retrieves the connection that produced this metadata object. | 
| Connection | Statement. getConnection()Retrieves the  Connectionobject
 that produced thisStatementobject. | 
| static Connection | DriverManager. getConnection(String url)Attempts to establish a connection to the given database URL. | 
| static Connection | DriverManager. getConnection(String url,
             Properties info)Attempts to establish a connection to the given database URL. | 
| static Connection | DriverManager. getConnection(String url,
             String user,
             String password)Attempts to establish a connection to the given database URL. | 
| Modifier and Type | Method and Description | 
|---|---|
| Connection | PooledConnection. getConnection()Creates and returns a  Connectionobject that is a handle
 for the physical connection that
 thisPooledConnectionobject represents. | 
| Connection | DataSource. getConnection()Attempts to establish a connection with the data source that
 this  DataSourceobject represents. | 
| Connection | RowSetInternal. getConnection()Retrieves the  Connectionobject that was passed to thisRowSetobject. | 
| Connection | DataSource. getConnection(String username,
             String password)Attempts to establish a connection with the data source that
 this  DataSourceobject represents. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | CachedRowSet. acceptChanges(Connection con)Propagates all row update, insert and delete changes to the
 data source backing this  CachedRowSetobject
 using the specifiedConnectionobject to establish a
 connection to the data source. | 
| void | CachedRowSet. execute(Connection conn)Populates this  CachedRowSetobject with data, using the
 given connection to produce the result set from which the data will be read. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates.  All rights reserved.