类 DruidPooledConnection
java.lang.Object
com.alibaba.druid.pool.PoolableWrapper
com.alibaba.druid.pool.DruidPooledConnection
- 所有已实现的接口:
AutoCloseable,Connection,Wrapper,PooledConnection
- 作者:
- wenshao [szujobs@hotmail.com]
-
字段概要
字段修饰符和类型字段说明protected booleanprotected intprotected Connectionprotected StackTraceElement[]protected booleanprotected Throwableprotected FilterChainprotected DruidConnectionHolderstatic final intprotected final Threadprotected booleanprotected TransactionInfo -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidabandond()voidvoidvoidvoidvoidvoidclose()voidvoidcommit()createArrayOf(String typeName, Object[] elements) createStatement(int resultSetType, int resultSetConcurrency) createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) createStruct(String typeName, Object[] attributes) protected voidvoiddisable()voidbooleangetClientInfo(String name) longlonglongintintlonglonginthandleException(Throwable t, String sql) booleanbooleanisClosed()booleanbooleanisOracle()booleanbooleanbooleanisValid(int timeout) prepareCall(String sql) prepareCall(String sql, int resultSetType, int resultSetConcurrency) prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) prepareStatement(String sql) prepareStatement(String sql, int autoGeneratedKeys) prepareStatement(String sql, int[] columnIndexes) prepareStatement(String sql, int resultSetType, int resultSetConcurrency) prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) prepareStatement(String sql, String[] columnNames) voidrecycle()voidreleaseSavepoint(Savepoint savepoint) voidvoidvoidrollback()voidvoidsetAutoCommit(boolean autoCommit) voidsetCatalog(String catalog) voidsetClientInfo(String name, String value) voidsetClientInfo(Properties properties) voidvoidsetConnectedTimeNano(long connectedTimeNano) voidsetConnectStackTrace(StackTraceElement[] connectStackTrace) voidsetHoldability(int holdability) voidsetNetworkTimeout(Executor executor, int milliseconds) voidsetReadOnly(boolean readOnly) setSavepoint(String name) voidvoidsetTraceEnable(boolean traceEnable) voidsetTransactionIsolation(int level) voidsetTypeMap(Map<String, Class<?>> map) voidtoString()protected voidtransactionRecord(String sql) 从类继承的方法 com.alibaba.druid.pool.PoolableWrapper
isWrapperFor, unwrap从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 java.sql.Connection
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid从接口继承的方法 java.sql.Wrapper
isWrapperFor, unwrap
-
字段详细资料
-
MAX_RECORD_SQL_COUNT
public static final int MAX_RECORD_SQL_COUNT- 另请参阅:
-
conn
-
holder
-
transactionInfo
-
traceEnable
protected volatile boolean traceEnable -
disable
protected volatile boolean disable -
closed
protected volatile boolean closed -
ownerThread
-
connectStackTrace
-
disableError
-
closing
protected volatile int closing -
filterChain
-
-
构造器详细资料
-
DruidPooledConnection
-
-
方法详细资料
-
getConnectedTimeMillis
public long getConnectedTimeMillis() -
getOwnerThread
-
getConnectStackTrace
-
setConnectStackTrace
-
getConnectedTimeNano
public long getConnectedTimeNano() -
setConnectedTimeNano
public void setConnectedTimeNano() -
setConnectedTimeNano
public void setConnectedTimeNano(long connectedTimeNano) -
isTraceEnable
public boolean isTraceEnable() -
setTraceEnable
public void setTraceEnable(boolean traceEnable) -
handleException
- 抛出:
SQLException
-
handleException
- 抛出:
SQLException
-
isOracle
public boolean isOracle() -
closePoolableStatement
- 抛出:
SQLException
-
getConnectionHolder
-
getConnection
- 指定者:
getConnection在接口中PooledConnection
-
disable
public void disable() -
disable
-
isDisable
public boolean isDisable() -
close
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Connection- 指定者:
close在接口中PooledConnection- 抛出:
SQLException
-
syncClose
- 抛出:
SQLException
-
recycle
- 抛出:
SQLException
-
prepareStatement
- 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareStatement
- 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareStatement
- 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareStatement
- 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareCall
- 指定者:
prepareCall在接口中Connection- 抛出:
SQLException
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - 指定者:
prepareCall在接口中Connection- 抛出:
SQLException
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - 指定者:
prepareCall在接口中Connection- 抛出:
SQLException
-
createStatement
- 指定者:
createStatement在接口中Connection- 抛出:
SQLException
-
createStatement
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - 指定者:
createStatement在接口中Connection- 抛出:
SQLException
-
createStatement
- 指定者:
createStatement在接口中Connection- 抛出:
SQLException
-
nativeSQL
- 指定者:
nativeSQL在接口中Connection- 抛出:
SQLException
-
setAutoCommit
- 指定者:
setAutoCommit在接口中Connection- 抛出:
SQLException
-
transactionRecord
- 抛出:
SQLException
-
getAutoCommit
- 指定者:
getAutoCommit在接口中Connection- 抛出:
SQLException
-
commit
- 指定者:
commit在接口中Connection- 抛出:
SQLException
-
getTransactionInfo
-
createTransactionInfo
protected void createTransactionInfo() -
rollback
- 指定者:
rollback在接口中Connection- 抛出:
SQLException
-
setSavepoint
- 指定者:
setSavepoint在接口中Connection- 抛出:
SQLException
-
rollback
- 指定者:
rollback在接口中Connection- 抛出:
SQLException
-
releaseSavepoint
- 指定者:
releaseSavepoint在接口中Connection- 抛出:
SQLException
-
createClob
- 指定者:
createClob在接口中Connection- 抛出:
SQLException
-
isClosed
- 指定者:
isClosed在接口中Connection- 抛出:
SQLException
-
isAbandonded
public boolean isAbandonded() -
getMetaData
- 指定者:
getMetaData在接口中Connection- 抛出:
SQLException
-
setReadOnly
- 指定者:
setReadOnly在接口中Connection- 抛出:
SQLException
-
isReadOnly
- 指定者:
isReadOnly在接口中Connection- 抛出:
SQLException
-
setCatalog
- 指定者:
setCatalog在接口中Connection- 抛出:
SQLException
-
getCatalog
- 指定者:
getCatalog在接口中Connection- 抛出:
SQLException
-
setTransactionIsolation
- 指定者:
setTransactionIsolation在接口中Connection- 抛出:
SQLException
-
getTransactionIsolation
- 指定者:
getTransactionIsolation在接口中Connection- 抛出:
SQLException
-
getWarnings
- 指定者:
getWarnings在接口中Connection- 抛出:
SQLException
-
clearWarnings
- 指定者:
clearWarnings在接口中Connection- 抛出:
SQLException
-
getTypeMap
- 指定者:
getTypeMap在接口中Connection- 抛出:
SQLException
-
setTypeMap
- 指定者:
setTypeMap在接口中Connection- 抛出:
SQLException
-
setHoldability
- 指定者:
setHoldability在接口中Connection- 抛出:
SQLException
-
getHoldability
- 指定者:
getHoldability在接口中Connection- 抛出:
SQLException
-
setSavepoint
- 指定者:
setSavepoint在接口中Connection- 抛出:
SQLException
-
createBlob
- 指定者:
createBlob在接口中Connection- 抛出:
SQLException
-
createNClob
- 指定者:
createNClob在接口中Connection- 抛出:
SQLException
-
createSQLXML
- 指定者:
createSQLXML在接口中Connection- 抛出:
SQLException
-
isValid
- 指定者:
isValid在接口中Connection- 抛出:
SQLException
-
setClientInfo
- 指定者:
setClientInfo在接口中Connection- 抛出:
SQLClientInfoException
-
setClientInfo
- 指定者:
setClientInfo在接口中Connection- 抛出:
SQLClientInfoException
-
getClientInfo
- 指定者:
getClientInfo在接口中Connection- 抛出:
SQLException
-
getClientInfo
- 指定者:
getClientInfo在接口中Connection- 抛出:
SQLException
-
createArrayOf
- 指定者:
createArrayOf在接口中Connection- 抛出:
SQLException
-
createStruct
- 指定者:
createStruct在接口中Connection- 抛出:
SQLException
-
addConnectionEventListener
- 指定者:
addConnectionEventListener在接口中PooledConnection
-
removeConnectionEventListener
-
addStatementEventListener
- 指定者:
addStatementEventListener在接口中PooledConnection
-
removeStatementEventListener
- 指定者:
removeStatementEventListener在接口中PooledConnection
-
getDisableError
-
checkState
- 抛出:
SQLException
-
toString
-
setSchema
- 指定者:
setSchema在接口中Connection- 抛出:
SQLException
-
getSchema
- 指定者:
getSchema在接口中Connection- 抛出:
SQLException
-
abort
- 指定者:
abort在接口中Connection- 抛出:
SQLException
-
setNetworkTimeout
- 指定者:
setNetworkTimeout在接口中Connection- 抛出:
SQLException
-
getNetworkTimeout
- 指定者:
getNetworkTimeout在接口中Connection- 抛出:
SQLException
-
abandond
public void abandond() -
getPhysicalConnectNanoSpan
public long getPhysicalConnectNanoSpan()- 从以下版本开始:
- 1.0.17
-
getPhysicalConnectionUsedCount
public long getPhysicalConnectionUsedCount()- 从以下版本开始:
- 1.0.17
-
getConnectNotEmptyWaitNanos
public long getConnectNotEmptyWaitNanos()- 从以下版本开始:
- 1.0.17
-
getVariables
- 从以下版本开始:
- 1.0.28
-
getGloablVariables
- 从以下版本开始:
- 1.0.28
-