public class PooledConnection extends ConnectionWraper
raw
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
Constructor and Description |
---|
PooledConnection(PooledDataSource ds)
构造
|
PooledConnection(PooledDataSource ds,
Connection conn) |
Modifier and Type | Method and Description |
---|---|
void |
close()
重写关闭连接,实际操作是归还到连接池中
|
boolean |
isClosed()
连接是否关闭,关闭条件:
1、被归还到池中 2、实际连接已关闭 |
protected PooledConnection |
open()
打开连接
|
protected PooledConnection |
release()
释放连接
|
abort, clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getRaw, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, unwrap
public PooledConnection(PooledDataSource ds) throws SQLException
ds
- 数据源SQLException
- SQL异常public PooledConnection(PooledDataSource ds, Connection conn)
public void close()
public boolean isClosed() throws SQLException
SQLException
protected PooledConnection open()
protected PooledConnection release()
Copyright © 2024. All rights reserved.