|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionPoolDataSource
An interface for the creation of PooledConnection 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.
| Method Summary | |
|---|---|
int |
getLoginTimeout()
Gets the Login Timeout value for this ConnectionPoolDataSource. |
PrintWriter |
getLogWriter()
Gets the Log Writer for this ConnectionPoolDataSource. |
PooledConnection |
getPooledConnection()
Create a connection to a database which can then be used as a pooled connection. |
PooledConnection |
getPooledConnection(String theUser,
String thePassword)
Create a connection to a database, using a supplied Username and Password, which can then be used as a pooled connection. |
void |
setLoginTimeout(int theTimeout)
Sets the Login Timeout value for this ConnectionPoolDataSource. |
void |
setLogWriter(PrintWriter theWriter)
Sets the Log Writer for this ConnectionPoolDataSource. |
| Method Detail |
|---|
int getLoginTimeout()
throws SQLException
SQLException - if there is a problem accessing the database.
PrintWriter getLogWriter()
throws SQLException
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 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.
SQLException - if there is a problem accessing the database.
PooledConnection getPooledConnection()
throws SQLException
SQLException - if there is a problem accessing the database.
PooledConnection getPooledConnection(String theUser,
String thePassword)
throws SQLException
theUser - a String containing a User Name for the databasethePassword - a String containing the Password for the user identified by
theUser
SQLException - if there is a problem accessing the database.
void setLoginTimeout(int theTimeout)
throws SQLException
theTimeout - the new Login Timeout value in seconds.
SQLException - if there is a problem accessing the database.
void setLogWriter(PrintWriter theWriter)
throws SQLException
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 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.
theWriter - a PrintWriter to use as the Log Writer for this
ConnectionPoolDataSource.
SQLException - if there is a problem accessing the database.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||