|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.dbcp.PoolingDriver
public class PoolingDriver
A Driver
implementation that obtains
Connection
s from a registered
ObjectPool
.
Constructor Summary | |
---|---|
PoolingDriver()
|
Method Summary | |
---|---|
boolean |
acceptsURL(java.lang.String url)
|
void |
closePool(java.lang.String name)
|
java.sql.Connection |
connect(java.lang.String url,
java.util.Properties info)
|
org.apache.commons.pool.ObjectPool |
getConnectionPool(java.lang.String name)
|
int |
getMajorVersion()
|
int |
getMinorVersion()
|
java.lang.String[] |
getPoolNames()
|
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.Properties info)
|
void |
invalidateConnection(java.sql.Connection conn)
Invalidates the given connection. |
static boolean |
isAccessToUnderlyingConnectionAllowed()
Returns the value of the accessToUnderlyingConnectionAllowed property. |
boolean |
jdbcCompliant()
|
void |
registerPool(java.lang.String name,
org.apache.commons.pool.ObjectPool pool)
|
static void |
setAccessToUnderlyingConnectionAllowed(boolean allow)
Sets the value of the accessToUnderlyingConnectionAllowed property. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PoolingDriver()
Method Detail |
---|
public boolean acceptsURL(java.lang.String url) throws java.sql.SQLException
acceptsURL
in interface java.sql.Driver
java.sql.SQLException
public void closePool(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public java.sql.Connection connect(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
connect
in interface java.sql.Driver
java.sql.SQLException
public org.apache.commons.pool.ObjectPool getConnectionPool(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public int getMajorVersion()
getMajorVersion
in interface java.sql.Driver
public int getMinorVersion()
getMinorVersion
in interface java.sql.Driver
public java.lang.String[] getPoolNames() throws java.sql.SQLException
java.sql.SQLException
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info)
getPropertyInfo
in interface java.sql.Driver
public void invalidateConnection(java.sql.Connection conn) throws java.sql.SQLException
conn
- connection to invalidate
java.sql.SQLException
- if the connection is not a
PoolGuardConnectionWrapper
or an error occurs invalidating
the connectionpublic static boolean isAccessToUnderlyingConnectionAllowed()
public boolean jdbcCompliant()
jdbcCompliant
in interface java.sql.Driver
public void registerPool(java.lang.String name, org.apache.commons.pool.ObjectPool pool)
public static void setAccessToUnderlyingConnectionAllowed(boolean allow)
allow
- Access to the underlying connection is granted when true.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |