软件包 | 描述 |
---|---|
java.sql |
提供的API来访问和处理的数据存储在数据源(通常是一个关系数据库)使用java编程语言
TM。
|
javax.sql |
提供了对服务器端数据源的访问和处理来自
TM java编程语言的API。
|
javax.sql.rowset |
JDBC
RowSet 实现标准接口和基类。
|
Modifier and Type | Method and Description |
---|---|
Connection |
Driver.connect(String url, Properties info)
试图使一个数据库连接到给定的网址。
|
Connection |
DatabaseMetaData.getConnection()
检索产生此元数据对象的连接。
|
Connection |
Statement.getConnection()
产生这一
Statement 检索对象的
Connection 对象。
|
static Connection |
DriverManager.getConnection(String url)
试图建立一个连接到给定的数据库的网址。
|
static Connection |
DriverManager.getConnection(String url, Properties info)
试图建立一个连接到给定的数据库的网址。
|
static Connection |
DriverManager.getConnection(String url, String user, String password)
试图建立一个连接到给定的数据库的网址。
|
Modifier and Type | Method and Description |
---|---|
Connection |
RowSetInternal.getConnection()
检索
Connection 对象被传递给这个
RowSet 对象。
|
Connection |
DataSource.getConnection()
试图建立这种
DataSource 对象代表数据源连接。
|
Connection |
PooledConnection.getConnection()
创建并返回一个
Connection 对象,这个对象代表一个
PooledConnection 物理连接句柄。
|
Connection |
DataSource.getConnection(String username, String password)
试图建立这种
DataSource 对象代表数据源连接。
|
Modifier and Type | Method and Description |
---|---|
void |
CachedRowSet.acceptChanges(Connection con)
在所有行更新、插入和删除修改数据源支持这
CachedRowSet 对象使用指定的
Connection 对象建立到数据源的连接。
|
void |
CachedRowSet.execute(Connection conn)
这
CachedRowSet 对象填充数据,使用给定的连接产生的结果集从数据将被读取。
|
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.