Save This Page
Home » commons-dbcp-1.2.2-src » org.apache.commons » dbcp » [javadoc | source]
org.apache.commons.dbcp
public class: PoolingDataSource [javadoc | source]
java.lang.Object
   org.apache.commons.dbcp.PoolingDataSource

All Implemented Interfaces:
    DataSource

A simple DataSource implementation that obtains Connection s from the specified ObjectPool .
Field Summary
protected  PrintWriter _logWriter    My log writer. 
protected  ObjectPool _pool     
Constructor:
 public PoolingDataSource() 
 public PoolingDataSource(ObjectPool pool) 
Method from org.apache.commons.dbcp.PoolingDataSource Summary:
getConnection,   getConnection,   getLogWriter,   getLoginTimeout,   isAccessToUnderlyingConnectionAllowed,   setAccessToUnderlyingConnectionAllowed,   setLogWriter,   setLoginTimeout,   setPool
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.dbcp.PoolingDataSource Detail:
 public Connection getConnection() throws SQLException 
 public Connection getConnection(String uname,
    String passwd) throws SQLException 
 public PrintWriter getLogWriter() 
    Returns my log writer.
 public int getLoginTimeout() 
 public boolean isAccessToUnderlyingConnectionAllowed() 
    Returns the value of the accessToUnderlyingConnectionAllowed property.
 public  void setAccessToUnderlyingConnectionAllowed(boolean allow) 
    Sets the value of the accessToUnderlyingConnectionAllowed property. It controls if the PoolGuard allows access to the underlying connection. (Default: false)
 public  void setLogWriter(PrintWriter out) 
    Sets my log writer.
 public  void setLoginTimeout(int seconds) 
 public  void setPool(ObjectPool pool) throws IllegalStateException, NullPointerException