public class PoolableManagedConnection extends PoolableConnection
PoolableConnection
TRANSACTION_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, validate
abort, 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, unwrap
addTrace, clearTrace, getLastUsed, getTrace, removeThisTrace, removeTrace, setLastUsed, setLastUsed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clearCachedState, clearWarnings, getAutoCommit, getCacheState, getCatalog, getHoldability, getSchema, getTransactionIsolation, isReadOnly, setAutoCommit, setCacheState, setCatalog, setHoldability, setReadOnly, setSchema, setTransactionIsolation
public 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 PoolableConnectionMXBean
reallyClose
in class PoolableConnection
SQLException
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.