ConnectionPoolDataSource
public interface ConnectionPoolDataSource
implements CommonDataSource
javax.sql.ConnectionPoolDataSource |
PooledConnection
对象的工厂。 实现此接口的对象通常会注册一个基于Java TM命名和目录接口(JNDI)的命名服务。
摘要(Summary)
公共方法(Public methods)
getPooledConnection
PooledConnection getPooledConnection ()
尝试建立可用作池连接的物理数据库连接。
返回(Returns) |
PooledConnection |
a PooledConnection object that is a physical connection to the database that this ConnectionPoolDataSource object represents |
抛出异常(Throws) |
SQLException |
if a database access error occurs |
|
if the JDBC driver does not support this method |
getPooledConnection
PooledConnection getPooledConnection (String user,
String password)
尝试建立可用作池连接的物理数据库连接。
参数(Parameters) |
user |
String : the database user on whose behalf the connection is being made |
password |
String : the user's password |
返回(Returns) |
PooledConnection |
a PooledConnection object that is a physical connection to the database that this ConnectionPoolDataSource object represents |
抛出异常(Throws) |
SQLException |
if a database access error occurs |
|
if the JDBC driver does not support this method |