java.lang.AutoCloseable
, java.sql.Connection
, java.sql.Wrapper
, PoolableConnectionMXBean
, org.apache.commons.pool2.TrackedUse
public class PoolableManagedConnection extends PoolableConnection
PoolableConnection
Constructor | Description |
---|---|
PoolableManagedConnection(TransactionRegistry transactionRegistry,
java.sql.Connection conn,
org.apache.commons.pool2.ObjectPool<PoolableConnection> pool) |
Create a PoolableManagedConnection.
|
Modifier and Type | Method | Description |
---|---|---|
void |
reallyClose() |
Actually close the underlying connection.
|
getLastUsed
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
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, unwrap
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, getToString, isClosed, validate
clearCachedState, clearWarnings, getAutoCommit, getCacheState, getCatalog, getHoldability, getSchema, getTransactionIsolation, isReadOnly, setAutoCommit, setCacheState, setCatalog, setHoldability, setReadOnly, setSchema, setTransactionIsolation
public PoolableManagedConnection(TransactionRegistry transactionRegistry, java.sql.Connection conn, org.apache.commons.pool2.ObjectPool<PoolableConnection> pool)
transactionRegistry
- transaction registryconn
- underlying connectionpool
- connection poolpublic void reallyClose() throws java.sql.SQLException
reallyClose
in interface PoolableConnectionMXBean
reallyClose
in class PoolableConnection
java.sql.SQLException
Copyright © 2001-2015 Apache Software Foundation. Documenation generated October 31 2016.