Class PoolingDriver
java.lang.Object
org.apache.commons.dbcp2.PoolingDriver
- All Implemented Interfaces:
Driver
- Since:
- 2.0
- Version:
- $Id: PoolingDriver.java 1649430 2015-01-04 21:29:32Z tn $
- Author:
- Rodney Waldhoff, Dirk Verbeeck
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsURL(String url) voidconnect(String url, Properties info) org.apache.commons.pool2.ObjectPool<? extends Connection> getConnectionPool(String name) intintString[]getPropertyInfo(String url, Properties info) voidInvalidates the given connection.booleanvoidregisterPool(String name, org.apache.commons.pool2.ObjectPool<? extends Connection> pool)
-
Constructor Details
-
PoolingDriver
public PoolingDriver()
-
-
Method Details
-
getConnectionPool
public org.apache.commons.pool2.ObjectPool<? extends Connection> getConnectionPool(String name) throws SQLException - Throws:
SQLException
-
registerPool
public void registerPool(String name, org.apache.commons.pool2.ObjectPool<? extends Connection> pool) -
closePool
- Throws:
SQLException
-
getPoolNames
-
acceptsURL
- Specified by:
acceptsURLin interfaceDriver- Throws:
SQLException
-
connect
- Specified by:
connectin interfaceDriver- Throws:
SQLException
-
getParentLogger
- Specified by:
getParentLoggerin interfaceDriver- Throws:
SQLFeatureNotSupportedException
-
invalidateConnection
Invalidates the given connection.- Parameters:
conn- connection to invalidate- Throws:
SQLException- if the connection is not aPoolGuardConnectionWrapperor an error occurs invalidating the connection
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersionin interfaceDriver
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersionin interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()- Specified by:
jdbcCompliantin interfaceDriver
-
getPropertyInfo
- Specified by:
getPropertyInfoin interfaceDriver
-