public final class ConnectionHolder extends Object
构造器和说明 |
---|
ConnectionHolder(DruidAbstractDataSource dataSource,
Connection conn) |
限定符和类型 | 方法和说明 |
---|---|
void |
addTrace(DruidPooledStatement stmt) |
Connection |
getConnection() |
List<ConnectionEventListener> |
getConnectionEventListeners() |
DruidAbstractDataSource |
getDataSource() |
long |
getLastActiveTimeMillis() |
int |
getModCount() |
List<StatementEventListener> |
getStatementEventListeners() |
PreparedStatementPool |
getStatementPool() |
long |
getTimeMillis() |
int |
getUnderlyingHoldability() |
int |
getUnderlyingTransactionIsolation() |
long |
getUseCount() |
void |
incrementUseCount() |
boolean |
isPoolPreparedStatements() |
boolean |
isUnderlyingAutoCommit() |
boolean |
isUnderlyingReadOnly() |
void |
removeTrace(DruidPooledStatement stmt) |
void |
reset() |
void |
setLastActiveTimeMillis(long lastActiveMillis) |
void |
setUnderlyingAutoCommit(boolean underlyingAutoCommit) |
void |
setUnderlyingHoldability(int underlyingHoldability) |
void |
setUnderlyingReadOnly(boolean underlyingReadOnly) |
void |
setUnderlyingTransactionIsolation(int underlyingTransactionIsolation) |
String |
toString() |
public ConnectionHolder(DruidAbstractDataSource dataSource, Connection conn) throws SQLException
SQLException
public int getModCount()
public boolean isUnderlyingReadOnly()
public void setUnderlyingReadOnly(boolean underlyingReadOnly)
public int getUnderlyingHoldability()
public void setUnderlyingHoldability(int underlyingHoldability)
public int getUnderlyingTransactionIsolation()
public void setUnderlyingTransactionIsolation(int underlyingTransactionIsolation)
public boolean isUnderlyingAutoCommit()
public void setUnderlyingAutoCommit(boolean underlyingAutoCommit)
public long getLastActiveTimeMillis()
public void setLastActiveTimeMillis(long lastActiveMillis)
public void addTrace(DruidPooledStatement stmt)
public void removeTrace(DruidPooledStatement stmt)
public List<ConnectionEventListener> getConnectionEventListeners()
public List<StatementEventListener> getStatementEventListeners()
public PreparedStatementPool getStatementPool()
public DruidAbstractDataSource getDataSource()
public boolean isPoolPreparedStatements()
public Connection getConnection()
public long getTimeMillis()
public long getUseCount()
public void incrementUseCount()
public void reset() throws SQLException
SQLException
Copyright © 2012 Alibaba Group. All Rights Reserved.