public class PoolableManagedConnection extends PoolableConnection
PoolableConnectionTRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Constructor and Description |
|---|
PoolableManagedConnection(TransactionRegistry transactionRegistry,
Connection conn,
ObjectPool<PoolableConnection> pool)
Create a PoolableManagedConnection.
|
PoolableManagedConnection(TransactionRegistry transactionRegistry,
Connection conn,
ObjectPool<PoolableConnection> pool,
Collection<String> disconnectSqlCodes,
boolean fastFailValidation)
Create a PoolableManagedConnection.
|
| Modifier and Type | Method and Description |
|---|---|
TransactionRegistry |
getTransactionRegistry() |
void |
reallyClose()
Actually close the underlying connection.
|
close, getDisconnectionSqlCodes, getToString, handleException, isClosed, isFastFailValidation, passivate, validateabort, activate, checkOpen, clearCachedState, clearWarnings, closeInternal, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCacheState, getCatalog, getClientInfo, getClientInfo, getDefaultQueryTimeout, getDelegate, getDelegateInternal, getHoldability, getInnermostDelegate, getInnermostDelegateInternal, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, handleExceptionNoThrow, innermostDelegateEquals, isClosedInternal, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCacheState, setCatalog, setClientInfo, setClientInfo, setClosedInternal, setDefaultQueryTimeout, setDelegate, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, toString, unwrapaddTrace, clearTrace, getLastUsed, getTrace, removeThisTrace, removeTrace, setLastUsed, setLastUsedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearCachedState, clearWarnings, getAutoCommit, getCacheState, getCatalog, getHoldability, getSchema, getTransactionIsolation, isReadOnly, setAutoCommit, setCacheState, setCatalog, setHoldability, setReadOnly, setSchema, setTransactionIsolationpublic PoolableManagedConnection(TransactionRegistry transactionRegistry, Connection conn, ObjectPool<PoolableConnection> pool)
transactionRegistry - transaction registryconn - underlying connectionpool - connection poolpublic PoolableManagedConnection(TransactionRegistry transactionRegistry, Connection conn, ObjectPool<PoolableConnection> pool, Collection<String> disconnectSqlCodes, boolean fastFailValidation)
transactionRegistry - transaction registryconn - underlying connectionpool - connection pooldisconnectSqlCodes - SQL_STATE codes considered fatal disconnection errorsfastFailValidation - true means fatal disconnection errors cause subsequent validations to fail immediately (no attempt to
run query or isValid)public TransactionRegistry getTransactionRegistry()
public void reallyClose()
throws SQLException
reallyClose in interface PoolableConnectionMXBeanreallyClose in class PoolableConnectionSQLExceptionCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.