Most visited

Recently visited

Added in API level 1

ConnectionPoolDataSource

public interface ConnectionPoolDataSource
implements CommonDataSource

javax.sql.ConnectionPoolDataSource


PooledConnection对象的工厂。 实现此接口的对象通常会注册一个基于Java TM命名和目录接口(JNDI)的命名服务。

Summary

Public methods

abstract PooledConnection getPooledConnection()

尝试建立可用作池连接的物理数据库连接。

abstract PooledConnection getPooledConnection(String user, String password)

尝试建立可用作池连接的物理数据库连接。

Inherited methods

From interface javax.sql.CommonDataSource

Public methods

getPooledConnection

Added in API level 1
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

Added in API level 1
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

Hooray!