public class DruidPooledConnection extends Object implements PooledConnection, Connection
| 构造器和说明 |
|---|
DruidPooledConnection(ConnectionHolder holder) |
public DruidPooledConnection(ConnectionHolder holder)
public Thread getOwnerThread()
public long getConnectedTimeNano()
public void setConnectedTimeNano(long connectedTimeNano)
public boolean isTraceEnable()
public void setTraceEnable(boolean traceEnable)
public SQLException handleException(Throwable t) throws SQLException
SQLExceptionpublic boolean isOracle()
public ConnectionHolder getConnectionHolder()
public Connection getConnection()
getConnection 在接口中 PooledConnectionpublic boolean isDiable()
public void close()
throws SQLException
close 在接口中 AutoCloseableclose 在接口中 Connectionclose 在接口中 PooledConnectionSQLExceptionpublic void recycle()
throws SQLException
SQLExceptionpublic PreparedStatement prepareStatement(String sql) throws SQLException
prepareStatement 在接口中 ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareStatement 在接口中 ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareStatement 在接口中 ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
prepareStatement 在接口中 ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
prepareStatement 在接口中 ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
prepareStatement 在接口中 ConnectionSQLExceptionpublic CallableStatement prepareCall(String sql) throws SQLException
prepareCall 在接口中 ConnectionSQLExceptionpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareCall 在接口中 ConnectionSQLExceptionpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareCall 在接口中 ConnectionSQLExceptionpublic Statement createStatement() throws SQLException
createStatement 在接口中 ConnectionSQLExceptionpublic Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
createStatement 在接口中 ConnectionSQLExceptionpublic Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
createStatement 在接口中 ConnectionSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap 在接口中 WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor 在接口中 WrapperSQLExceptionpublic String nativeSQL(String sql) throws SQLException
nativeSQL 在接口中 ConnectionSQLExceptionpublic void setAutoCommit(boolean autoCommit)
throws SQLException
setAutoCommit 在接口中 ConnectionSQLExceptionpublic boolean getAutoCommit()
throws SQLException
getAutoCommit 在接口中 ConnectionSQLExceptionpublic void commit()
throws SQLException
commit 在接口中 ConnectionSQLExceptionpublic TransactionInfo getTransactionInfo()
public void rollback()
throws SQLException
rollback 在接口中 ConnectionSQLExceptionpublic Savepoint setSavepoint(String name) throws SQLException
setSavepoint 在接口中 ConnectionSQLExceptionpublic void rollback(Savepoint savepoint) throws SQLException
rollback 在接口中 ConnectionSQLExceptionpublic void releaseSavepoint(Savepoint savepoint) throws SQLException
releaseSavepoint 在接口中 ConnectionSQLExceptionpublic Clob createClob() throws SQLException
createClob 在接口中 ConnectionSQLExceptionpublic boolean isClosed()
throws SQLException
isClosed 在接口中 ConnectionSQLExceptionpublic DatabaseMetaData getMetaData() throws SQLException
getMetaData 在接口中 ConnectionSQLExceptionpublic void setReadOnly(boolean readOnly)
throws SQLException
setReadOnly 在接口中 ConnectionSQLExceptionpublic boolean isReadOnly()
throws SQLException
isReadOnly 在接口中 ConnectionSQLExceptionpublic void setCatalog(String catalog) throws SQLException
setCatalog 在接口中 ConnectionSQLExceptionpublic String getCatalog() throws SQLException
getCatalog 在接口中 ConnectionSQLExceptionpublic void setTransactionIsolation(int level)
throws SQLException
setTransactionIsolation 在接口中 ConnectionSQLExceptionpublic int getTransactionIsolation()
throws SQLException
getTransactionIsolation 在接口中 ConnectionSQLExceptionpublic SQLWarning getWarnings() throws SQLException
getWarnings 在接口中 ConnectionSQLExceptionpublic void clearWarnings()
throws SQLException
clearWarnings 在接口中 ConnectionSQLExceptionpublic Map<String,Class<?>> getTypeMap() throws SQLException
getTypeMap 在接口中 ConnectionSQLExceptionpublic void setTypeMap(Map<String,Class<?>> map) throws SQLException
setTypeMap 在接口中 ConnectionSQLExceptionpublic void setHoldability(int holdability)
throws SQLException
setHoldability 在接口中 ConnectionSQLExceptionpublic int getHoldability()
throws SQLException
getHoldability 在接口中 ConnectionSQLExceptionpublic Savepoint setSavepoint() throws SQLException
setSavepoint 在接口中 ConnectionSQLExceptionpublic Blob createBlob() throws SQLException
createBlob 在接口中 ConnectionSQLExceptionpublic NClob createNClob() throws SQLException
createNClob 在接口中 ConnectionSQLExceptionpublic SQLXML createSQLXML() throws SQLException
createSQLXML 在接口中 ConnectionSQLExceptionpublic boolean isValid(int timeout)
throws SQLException
isValid 在接口中 ConnectionSQLExceptionpublic void setClientInfo(String name, String value) throws SQLClientInfoException
setClientInfo 在接口中 ConnectionSQLClientInfoExceptionpublic void setClientInfo(Properties properties) throws SQLClientInfoException
setClientInfo 在接口中 ConnectionSQLClientInfoExceptionpublic String getClientInfo(String name) throws SQLException
getClientInfo 在接口中 ConnectionSQLExceptionpublic Properties getClientInfo() throws SQLException
getClientInfo 在接口中 ConnectionSQLExceptionpublic Array createArrayOf(String typeName, Object[] elements) throws SQLException
createArrayOf 在接口中 ConnectionSQLExceptionpublic Struct createStruct(String typeName, Object[] attributes) throws SQLException
createStruct 在接口中 ConnectionSQLExceptionpublic void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener 在接口中 PooledConnectionpublic void removeConnectionEventListener(ConnectionEventListener listener)
public void addStatementEventListener(StatementEventListener listener)
addStatementEventListener 在接口中 PooledConnectionpublic void removeStatementEventListener(StatementEventListener listener)
removeStatementEventListener 在接口中 PooledConnectionpublic void checkState()
throws SQLException
SQLExceptionpublic void setSchema(String schema) throws SQLException
setSchema 在接口中 ConnectionSQLExceptionpublic String getSchema() throws SQLException
getSchema 在接口中 ConnectionSQLExceptionpublic void abort(Executor executor) throws SQLException
abort 在接口中 ConnectionSQLExceptionpublic void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException
setNetworkTimeout 在接口中 ConnectionSQLExceptionpublic int getNetworkTimeout()
throws SQLException
getNetworkTimeout 在接口中 ConnectionSQLExceptionCopyright © 2012 Alibaba Group. All Rights Reserved.