Package org.apache.commons.dbcp2.managed
Class PoolableManagedConnection
java.lang.Object
org.apache.commons.dbcp2.AbandonedTrace
org.apache.commons.dbcp2.DelegatingConnection<Connection>
org.apache.commons.dbcp2.PoolableConnection
org.apache.commons.dbcp2.managed.PoolableManagedConnection
- All Implemented Interfaces:
AutoCloseable,Connection,Wrapper,PoolableConnectionMXBean,org.apache.commons.pool2.TrackedUse
PoolableConnection that unregisters from TransactionRegistry on Connection real destroy.
- Since:
- 2.0
- Version:
- $Id: PoolableManagedConnection.java 1649430 2015-01-04 21:29:32Z tn $
- See Also:
-
Field Summary
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE -
Constructor Summary
ConstructorsConstructorDescriptionPoolableManagedConnection(TransactionRegistry transactionRegistry, Connection conn, org.apache.commons.pool2.ObjectPool<PoolableConnection> pool) Create a PoolableManagedConnection. -
Method Summary
Methods inherited from class org.apache.commons.dbcp2.PoolableConnection
close, getToString, isClosed, validateMethods inherited from class org.apache.commons.dbcp2.DelegatingConnection
abort, clearCachedState, clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCacheState, getCatalog, getClientInfo, getClientInfo, getDefaultQueryTimeout, getDelegate, getHoldability, getInnermostDelegate, getInnermostDelegateInternal, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, innermostDelegateEquals, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCacheState, setCatalog, setClientInfo, setClientInfo, setDefaultQueryTimeout, setDelegate, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, toString, unwrapMethods inherited from class org.apache.commons.dbcp2.AbandonedTrace
getLastUsedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.sql.Connection
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValidMethods inherited from interface org.apache.commons.dbcp2.PoolableConnectionMXBean
clearCachedState, clearWarnings, getAutoCommit, getCacheState, getCatalog, getHoldability, getSchema, getTransactionIsolation, isReadOnly, setAutoCommit, setCacheState, setCatalog, setHoldability, setReadOnly, setSchema, setTransactionIsolation
-
Constructor Details
-
PoolableManagedConnection
public PoolableManagedConnection(TransactionRegistry transactionRegistry, Connection conn, org.apache.commons.pool2.ObjectPool<PoolableConnection> pool) Create a PoolableManagedConnection.- Parameters:
transactionRegistry- transaction registryconn- underlying connectionpool- connection pool
-
-
Method Details
-
reallyClose
Actually close the underlying connection.- Specified by:
reallyClosein interfacePoolableConnectionMXBean- Overrides:
reallyClosein classPoolableConnection- Throws:
SQLException
-