public interface ConnectionPoolDataSource extends CommonDataSource
ConnectionPoolDataSource objects.
Used internally within the package.
A class which implements the ConnectionPoolDataSource interface is
typically registered with a JNDI naming service directory and is retrieved
from there by name.
| Modifier and Type | Method and Description |
|---|---|
PooledConnection |
getPooledConnection()
Creates a connection to a database which can then be used as a pooled
connection.
|
PooledConnection |
getPooledConnection(String theUser,
String thePassword)
Creates a connection to a database, using the supplied user name and
password, which can then be used as a pooled connection.
|
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriterPooledConnection getPooledConnection() throws SQLException
PooledConnection which represents the connection to the
database.SQLException - if there is a problem accessing the database.PooledConnection getPooledConnection(String theUser, String thePassword) throws SQLException
theUser - the a user name for the database login.thePassword - the password associated with the user identified by theUser.PooledConnection object which represents the connection
to the database.SQLException - if there is a problem accessing the database.