| Modifier and Type | Field and Description |
|---|---|
protected static HashMap<String,ObjectPool<? extends Connection>> |
_pools
The map of registered pools.
|
protected static int |
MAJOR_VERSION |
protected static int |
MINOR_VERSION |
protected static String |
URL_PREFIX
My URL prefix
|
protected static int |
URL_PREFIX_LEN |
| Constructor and Description |
|---|
PoolingDriver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsURL(String url) |
void |
closePool(String name) |
Connection |
connect(String url,
Properties info) |
ObjectPool<? extends Connection> |
getConnectionPool(String name) |
int |
getMajorVersion() |
int |
getMinorVersion() |
Logger |
getParentLogger() |
ObjectPool<? extends Connection> |
getPool(String name)
Deprecated.
This will be removed in a future version of DBCP.
|
String[] |
getPoolNames() |
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info) |
void |
invalidateConnection(Connection conn)
Invalidates the given connection.
|
static boolean |
isAccessToUnderlyingConnectionAllowed()
Returns the value of the accessToUnderlyingConnectionAllowed property.
|
boolean |
jdbcCompliant() |
void |
registerPool(String name,
ObjectPool<? extends Connection> pool) |
static void |
setAccessToUnderlyingConnectionAllowed(boolean allow)
Sets the value of the accessToUnderlyingConnectionAllowed property.
|
protected static final HashMap<String,ObjectPool<? extends Connection>> _pools
protected static final String URL_PREFIX
protected static final int URL_PREFIX_LEN
protected static final int MAJOR_VERSION
protected static final int MINOR_VERSION
public static boolean isAccessToUnderlyingConnectionAllowed()
public static void setAccessToUnderlyingConnectionAllowed(boolean allow)
allow - Access to the underlying connection is granted when true.@Deprecated public ObjectPool<? extends Connection> getPool(String name)
public ObjectPool<? extends Connection> getConnectionPool(String name) throws SQLException
SQLExceptionpublic void registerPool(String name, ObjectPool<? extends Connection> pool)
public void closePool(String name) throws SQLException
SQLExceptionpublic String[] getPoolNames()
public boolean acceptsURL(String url) throws SQLException
acceptsURL in interface DriverSQLExceptionpublic Connection connect(String url, Properties info) throws SQLException
connect in interface DriverSQLExceptionpublic void invalidateConnection(Connection conn) throws SQLException
conn - connection to invalidateSQLException - if the connection is not a
PoolGuardConnectionWrapper or an error occurs invalidating
the connectionpublic int getMajorVersion()
getMajorVersion in interface Driverpublic int getMinorVersion()
getMinorVersion in interface Driverpublic boolean jdbcCompliant()
jdbcCompliant in interface Driverpublic DriverPropertyInfo[] getPropertyInfo(String url, Properties info)
getPropertyInfo in interface Driverpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface DriverSQLFeatureNotSupportedExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.