org.apache.commons.dbcp
Class PoolingDriver
java.lang.Object
org.apache.commons.dbcp.PoolingDriver
- All Implemented Interfaces:
- Driver
public class PoolingDriver
- extends Object
- implements Driver
A Driver
implementation that obtains
Connection
s from a registered
ObjectPool
.
- Version:
- $Revision: 1.12 $ $Date: 2004/05/17 18:39:44 $
- Author:
- Rodney Waldhoff, Dirk Verbeeck
PoolingDriver
public PoolingDriver()
acceptsURL
public boolean acceptsURL(String url)
throws SQLException
- Specified by:
acceptsURL
in interface Driver
- Throws:
SQLException
closePool
public void closePool(String name)
throws SQLException
- Throws:
SQLException
connect
public Connection connect(String url,
Properties info)
throws SQLException
- Specified by:
connect
in interface Driver
- Throws:
SQLException
getConnectionPool
public ObjectPool getConnectionPool(String name)
throws SQLException
- Throws:
SQLException
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersion
in interface Driver
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersion
in interface Driver
getPoolNames
public String[] getPoolNames()
throws SQLException
- Throws:
SQLException
getPropertyInfo
public DriverPropertyInfo[] getPropertyInfo(String url,
Properties info)
- Specified by:
getPropertyInfo
in interface Driver
isAccessToUnderlyingConnectionAllowed
public static boolean isAccessToUnderlyingConnectionAllowed()
- Returns the value of the accessToUnderlyingConnectionAllowed property.
- Returns:
- true if access to the underlying is allowed, false otherwise.
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliant
in interface Driver
registerPool
public void registerPool(String name,
ObjectPool pool)
setAccessToUnderlyingConnectionAllowed
public static void setAccessToUnderlyingConnectionAllowed(boolean allow)
- Sets the value of the accessToUnderlyingConnectionAllowed property.
It controls if the PoolGuard allows access to the underlying connection.
(Default: false)
- Parameters:
allow
- Access to the underlying connection is granted when true.
Copyright © 2001-2003 Apache Software Foundation. Documenation generated December 23 2011.