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

All Implemented Interfaces:
    Driver

A Driver implementation that obtains Connection s from a registered ObjectPool .
Field Summary
protected static  HashMap _pools    The map of registered pools. 
protected static  String URL_PREFIX    My URL prefix 
protected static  int URL_PREFIX_LEN     
protected static  int MAJOR_VERSION     
protected static  int MINOR_VERSION     
Constructor:
 public PoolingDriver() 
Method from org.apache.commons.dbcp.PoolingDriver Summary:
acceptsURL,   closePool,   connect,   getConnectionPool,   getMajorVersion,   getMinorVersion,   getPool,   getPoolNames,   getPropertyInfo,   invalidateConnection,   isAccessToUnderlyingConnectionAllowed,   jdbcCompliant,   registerPool,   setAccessToUnderlyingConnectionAllowed
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.dbcp.PoolingDriver Detail:
 public boolean acceptsURL(String url) throws SQLException 
 public synchronized  void closePool(String name) throws SQLException 
 public Connection connect(String url,
    Properties info) throws SQLException 
 public synchronized ObjectPool getConnectionPool(String name) throws SQLException 
 public int getMajorVersion() 
 public int getMinorVersion() 
 public synchronized ObjectPool getPool(String name) 
Deprecated! This - will be removed in a future version of DBCP.

    WARNING: This method throws DbcpExceptions (RuntimeExceptions) and will be replaced by the protected getConnectionPool method.
 public synchronized String[] getPoolNames() throws SQLException 
 public DriverPropertyInfo[] getPropertyInfo(String url,
    Properties info) 
 public  void invalidateConnection(Connection conn) throws SQLException 
    Invalidates the given connection.
 public static synchronized boolean isAccessToUnderlyingConnectionAllowed() 
    Returns the value of the accessToUnderlyingConnectionAllowed property.
 public boolean jdbcCompliant() 
 public synchronized  void registerPool(String name,
    ObjectPool pool) 
 public static synchronized  void setAccessToUnderlyingConnectionAllowed(boolean allow) 
    Sets the value of the accessToUnderlyingConnectionAllowed property. It controls if the PoolGuard allows access to the underlying connection. (Default: false)