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 |