| javax.sql.ConnectionPoolDataSource |
An interface for the creation of 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.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the log writer for this
ConnectionPoolDataSource. | |||||||||||
Gets the login timeout value for this
ConnectionPoolDataSource. | |||||||||||
Creates a connection to a database, using the supplied user name and
password, which can then be used as a pooled connection.
| |||||||||||
Creates a connection to a database which can then be used as a pooled
connection.
| |||||||||||
Sets the log writer for this
ConnectionPoolDataSource. | |||||||||||
Sets the login timeout value for this
ConnectionPoolDataSource. | |||||||||||
Gets the log writer for this ConnectionPoolDataSource.
The log writer is a stream to which all log and trace messages are sent
from this ConnectionPoolDataSource. The log writer can be null, in which case the log and trace capture is disabled. The default
value for the log writer when an ConnectionPoolDataSource is
created is null. Note that the log writer for an ConnectionPoolDataSource is not the same as the log writer used by a
DriverManager.
PrintWriter which is the log writer for this ConnectionPoolDataSource. Can be null, in which case log
writing is disabled for this ConnectionPoolDataSource.| SQLException | if there is a problem accessing the database. |
|---|
Gets the login timeout value for this ConnectionPoolDataSource.
The login timeout is the maximum time in seconds that the ConnectionPoolDataSource will wait when opening a connection to a
database. A timeout value of 0 implies either the system default timeout
value (if there is one) or that there is no timeout. The default value
for the login timeout is 0.
| SQLException | if there is a problem accessing the database. |
|---|
Creates a connection to a database, using the supplied user name and password, which can then be used as a pooled connection.
| 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. |
|---|
Creates a connection to a database which can then be used as a pooled connection.
PooledConnection which represents the connection to the
database.| SQLException | if there is a problem accessing the database. |
|---|
Sets the log writer for this ConnectionPoolDataSource.
The log writer is a stream to which all log and trace messages are sent
from this ConnectionPoolDataSource. The log writer can be null, in which case log and trace capture is disabled. The default value
for the log writer, when a ConnectionPoolDataSource is created,
is null. Note that the log writer for a ConnectionPoolDataSource is not the same as the log writer used by a
DriverManager.
| theWriter | is the log writer for this ConnectionPoolDataSource. |
|---|
| SQLException | if there is a problem accessing the database. |
|---|
Sets the login timeout value for this ConnectionPoolDataSource.
The login timeout is the maximum time in seconds that the ConnectionPoolDataSource will wait when opening a connection to a
database. A timeout value of 0 implies either the system default timeout
value (if there is one) or that there is no timeout. The default value
for the login timeout is 0.
| theTimeout | the new login timeout value in seconds. |
|---|
| SQLException | if there is a problem accessing the database. |
|---|