| Package | Description |
|---|---|
| java.sql |
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java
TM programming language.
|
| javax.sql |
Provides the API for server side data source access and processing from the Java
TM programming language.
|
| javax.sql.rowset |
Standard interfaces and base classes for JDBC
RowSet implementations.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
Driver.connect(String
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
Connection object that produced this
Statement object.
|
static Connection |
DriverManager.getConnection(String
Attempts to establish a connection to the given database URL.
|
static Connection |
DriverManager.getConnection(String
Attempts to establish a connection to the given database URL.
|
static Connection |
DriverManager.getConnection(String
Attempts to establish a connection to the given database URL.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
RowSetInternal.getConnection()
Retrieves the
Connection object that was passed to this
RowSet object.
|
Connection |
DataSource.getConnection()
Attempts to establish a connection with the data source that this
DataSource object represents.
|
Connection |
PooledConnection.getConnection()
Creates and returns a
Connection object that is a handle for the physical connection that this
PooledConnection object represents.
|
Connection |
DataSource.getConnection(String
Attempts to establish a connection with the data source that this
DataSource object represents.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CachedRowSet.acceptChanges(Connection
Propagates all row update, insert and delete changes to the data source backing this
CachedRowSet object using the specified
Connection object to establish a connection to the data source.
|
void |
CachedRowSet.execute(Connection
Populates this
CachedRowSet object with data, using the given connection to produce the result set from which the data will be read.
|