public interface ConnectionPoolDataSource extends CommonDataSource
PooledConnection
对象的工厂。一个实现这个接口的对象通常会注册一个命名服务是基于java™命名和目录接口(JNDI)。
Modifier and Type | Method and Description |
---|---|
PooledConnection |
getPooledConnection()
试图建立一个可用于作为合并连接的物理数据库连接。
|
PooledConnection |
getPooledConnection(String user, String password)
试图建立一个可用于作为合并连接的物理数据库连接。
|
getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
PooledConnection getPooledConnection() throws SQLException
PooledConnection
对象,这种
ConnectionPoolDataSource
对象代表一个物理数据库连接
SQLException
-如果一个数据库访问错误发生
SQLFeatureNotSupportedException
如果JDBC驱动程序不支持此方法
PooledConnection getPooledConnection(String user, String password) throws SQLException
user
-数据库用户的连接是其代表
password
-用户的密码
PooledConnection
对象,这种
ConnectionPoolDataSource
对象代表一个物理数据库连接
SQLException
-如果一个数据库访问错误发生
SQLFeatureNotSupportedException
如果JDBC驱动程序不支持此方法
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.