org.apache.commons.dbcp
public class PoolingDriver extends Object implements Driver
Version: $Revision: 500687 $ $Date: 2007-01-27 16:33:47 -0700 (Sat, 27 Jan 2007) $
Constructor Summary | |
---|---|
PoolingDriver() |
Method Summary | |
---|---|
boolean | acceptsURL(String url) |
void | closePool(String name) |
Connection | connect(String url, Properties info) |
ObjectPool | getConnectionPool(String name) |
int | getMajorVersion() |
int | getMinorVersion() |
ObjectPool | getPool(String name)
WARNING: This method throws DbcpExceptions (RuntimeExceptions)
and will be replaced by the protected getConnectionPool method.
|
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 pool) |
static void | setAccessToUnderlyingConnectionAllowed(boolean allow)
Sets the value of the accessToUnderlyingConnectionAllowed property.
|
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.Parameters: conn connection to invalidate
Throws: SQLException if the connection is not a
PoolGuardConnectionWrapper
or an error occurs invalidating
the connection
Since: 1.2.2
Returns: true if access to the underlying is allowed, false otherwise.
Parameters: allow Access to the underlying connection is granted when true.