org.apache.commons.dbcp
public class PoolingDataSource extends Object implements DataSource
Version: $Revision: 1.13 $ $Date: 2004/02/28 12:18:17 $
| Constructor Summary | |
|---|---|
| PoolingDataSource() | |
| PoolingDataSource(ObjectPool pool) | |
| Method Summary | |
|---|---|
| Connection | getConnection()
Return a java.sql.Connection from my pool,
according to the contract specified by ObjectPool#borrowObject. |
| Connection | getConnection(String uname, String passwd)
Throws |
| int | getLoginTimeout()
Throws UnsupportedOperationException.
|
| PrintWriter | getLogWriter()
Returns my log writer. |
| boolean | isAccessToUnderlyingConnectionAllowed()
Returns the value of the accessToUnderlyingConnectionAllowed property.
|
| void | setAccessToUnderlyingConnectionAllowed(boolean allow)
Sets the value of the accessToUnderlyingConnectionAllowed property.
|
| void | setLoginTimeout(int seconds)
Throws UnsupportedOperationException.
|
| void | setLogWriter(PrintWriter out)
Sets my log writer. |
| void | setPool(ObjectPool pool) |
Throws: UnsupportedOperationException
Throws: UnsupportedOperationException
Returns: my log writer
See Also: DataSource#getLogWriter
Returns: true if access to the underlying is allowed, false otherwise.
Parameters: allow Access to the underlying connection is granted when true.
Throws: UnsupportedOperationException
See Also: DataSource#setLogWriter