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:
- $Id: PoolingDriver.java,v 1.7 2003/10/09 21:04:44 rdonkin Exp $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_pools
protected static HashMap _pools
- The map of registered pools.
URL_PREFIX
protected static String URL_PREFIX
- My URL prefix
URL_PREFIX_LEN
protected static int URL_PREFIX_LEN
MAJOR_VERSION
protected static int MAJOR_VERSION
MINOR_VERSION
protected static int MINOR_VERSION
PoolingDriver
public PoolingDriver()
getPool
public 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.
getConnectionPool
protected ObjectPool getConnectionPool(String name)
throws SQLException
SQLException
registerPool
public void registerPool(String name,
ObjectPool pool)
acceptsURL
public boolean acceptsURL(String url)
throws SQLException
- Specified by:
acceptsURL
in interface Driver
SQLException
connect
public Connection connect(String url,
Properties info)
throws SQLException
- Specified by:
connect
in interface Driver
SQLException
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersion
in interface Driver
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersion
in interface Driver
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliant
in interface Driver
getPropertyInfo
public DriverPropertyInfo[] getPropertyInfo(String url,
Properties info)
- Specified by:
getPropertyInfo
in interface Driver
Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.