Package org.apache.commons.dbcp2
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 TypeMethodDescriptionboolean
acceptsURL
(String url) void
connect
(String url, Properties info) org.apache.commons.pool2.ObjectPool
<? extends Connection> getConnectionPool
(String name) int
int
String[]
getPropertyInfo
(String url, Properties info) void
Invalidates the given connection.boolean
void
registerPool
(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:
acceptsURL
in interfaceDriver
- Throws:
SQLException
-
connect
- Specified by:
connect
in interfaceDriver
- Throws:
SQLException
-
getParentLogger
- Specified by:
getParentLogger
in interfaceDriver
- Throws:
SQLFeatureNotSupportedException
-
invalidateConnection
Invalidates the given connection.- Parameters:
conn
- connection to invalidate- Throws:
SQLException
- if the connection is not aPoolGuardConnectionWrapper
or an error occurs invalidating the connection
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersion
in interfaceDriver
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersion
in interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()- Specified by:
jdbcCompliant
in interfaceDriver
-
getPropertyInfo
- Specified by:
getPropertyInfo
in interfaceDriver
-