| Package | Description |
|---|---|
| org.apache.commons.dbcp |
Database Connection Pool API.
|
| org.apache.commons.dbcp.cpdsadapter |
This package contains one public class which is a
ConnectionPoolDataSource (CPDS) implementation that can be used to
adapt older Driver based jdbc implementations. |
| org.apache.commons.dbcp.managed |
This package provides support for pooling of ManagedConnections.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PoolableConnection
A delegating connection that, rather than closing the underlying
connection, returns itself to an
ObjectPool when
closed. |
class |
PoolingConnection
A
DelegatingConnection that pools PreparedStatements. |
private class |
PoolingDataSource.PoolGuardConnectionWrapper
PoolGuardConnectionWrapper is a Connection wrapper that makes sure a
closed connection cannot be used anymore.
|
private static class |
PoolingDriver.PoolGuardConnectionWrapper
PoolGuardConnectionWrapper is a Connection wrapper that makes sure a
closed connection cannot be used anymore.
|
| Modifier and Type | Field and Description |
|---|---|
protected DelegatingConnection |
DelegatingDatabaseMetaData._conn
The connection that created me.
|
protected DelegatingConnection |
DelegatingStatement._conn
The connection that created me.
|
| Constructor and Description |
|---|
DelegatingCallableStatement(DelegatingConnection c,
java.sql.CallableStatement s)
Create a wrapper for the Statement which traces this
Statement to the Connection which created it and the
code which created it.
|
DelegatingDatabaseMetaData(DelegatingConnection c,
java.sql.DatabaseMetaData m) |
DelegatingPreparedStatement(DelegatingConnection c,
java.sql.PreparedStatement s)
Create a wrapper for the Statement which traces this
Statement to the Connection which created it and the
code which created it.
|
DelegatingStatement(DelegatingConnection c,
java.sql.Statement s)
Create a wrapper for the Statement which traces this
Statement to the Connection which created it and the
code which created it.
|
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
ConnectionImpl
This class is the
Connection that will be returned
from PooledConnectionImpl.getConnection(). |
| Modifier and Type | Field and Description |
|---|---|
private DelegatingConnection |
PooledConnectionImpl.delegatingConnection
A DelegatingConnection used to create a PoolablePreparedStatementStub
|
| Modifier and Type | Class and Description |
|---|---|
class |
ManagedConnection
ManagedConnection is responsible for managing a database connection in a transactional environment
(typically called "Container Managed").
|
class |
PoolableManagedConnection
PoolableConnection that unregisters from TransactionRegistry on Connection real destroy.
|