com.alibaba.druid.proxy.jdbc
类 ConnectionProxyImpl

java.lang.Object
  继承者 com.alibaba.druid.proxy.jdbc.WrapperProxyImpl
      继承者 com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl
所有已实现的接口:
ConnectionProxy, WrapperProxy, Connection, Wrapper

public class ConnectionProxyImpl
extends WrapperProxyImpl
implements ConnectionProxy

作者:
wenshao

字段摘要
 
从接口 java.sql.Connection 继承的字段
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
构造方法摘要
ConnectionProxyImpl(DataSourceProxy dataSource, Connection connection, Properties properties, long id)
           
 
方法摘要
 void abort(Executor executor)
           
 void clearWarnings()
           
 void close()
           
 void commit()
           
 Array createArrayOf(String typeName, Object[] elements)
           
 Blob createBlob()
           
 FilterChainImpl createChain()
           
 Clob createClob()
           
 NClob createNClob()
           
 SQLXML createSQLXML()
           
 Statement createStatement()
           
 Statement createStatement(int resultSetType, int resultSetConcurrency)
           
 Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
           
 Struct createStruct(String typeName, Object[] attributes)
           
 boolean getAutoCommit()
           
 String getCatalog()
           
 Properties getClientInfo()
           
 String getClientInfo(String name)
           
 int getCloseCount()
           
 Date getConnectedTime()
           
 Connection getConnectionRaw()
           
 DataSourceProxy getDirectDataSource()
           
 int getHoldability()
           
 DatabaseMetaData getMetaData()
           
 int getNetworkTimeout()
           
 Properties getProperties()
           
 Connection getRawObject()
           
 String getSchema()
           
 TransactionInfo getTransactionInfo()
           
 int getTransactionIsolation()
           
 Map<String,Class<?>> getTypeMap()
           
 SQLWarning getWarnings()
           
 boolean isClosed()
           
 boolean isReadOnly()
           
 boolean isValid(int timeout)
           
 String nativeSQL(String sql)
           
 CallableStatement prepareCall(String sql)
           
 CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency)
           
 CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
           
 PreparedStatement prepareStatement(String sql)
           
 PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
           
 PreparedStatement prepareStatement(String sql, int[] columnIndexes)
           
 PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency)
           
 PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
           
 PreparedStatement prepareStatement(String sql, String[] columnNames)
           
 void recycleFilterChain(FilterChainImpl chain)
           
 void releaseSavepoint(Savepoint savepoint)
           
 void rollback()
           
 void rollback(Savepoint savepoint)
           
 void setAutoCommit(boolean autoCommit)
           
 void setCatalog(String catalog)
           
 void setClientInfo(Properties properties)
           
 void setClientInfo(String name, String value)
           
 void setHoldability(int holdability)
           
 void setNetworkTimeout(Executor executor, int milliseconds)
           
 void setReadOnly(boolean readOnly)
           
 Savepoint setSavepoint()
           
 Savepoint setSavepoint(String name)
           
 void setSchema(String schema)
           
 void setTransactionIsolation(int level)
           
 void setTypeMap(Map<String,Class<?>> map)
           
<T> T
unwrap(Class<T> iface)
           
 
从类 com.alibaba.druid.proxy.jdbc.WrapperProxyImpl 继承的方法
clearAttributes, getAttribute, getAttributes, getAttributesSize, getId, isWrapperFor, putAttribute
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 com.alibaba.druid.proxy.jdbc.WrapperProxy 继承的方法
clearAttributes, getAttribute, getAttributes, getAttributesSize, getId, putAttribute
 
从接口 java.sql.Wrapper 继承的方法
isWrapperFor
 

构造方法详细信息

ConnectionProxyImpl

public ConnectionProxyImpl(DataSourceProxy dataSource,
                           Connection connection,
                           Properties properties,
                           long id)
方法详细信息

getConnectedTime

public Date getConnectedTime()
指定者:
接口 ConnectionProxy 中的 getConnectedTime

getProperties

public Properties getProperties()
指定者:
接口 ConnectionProxy 中的 getProperties

getConnectionRaw

public Connection getConnectionRaw()

getRawObject

public Connection getRawObject()
指定者:
接口 ConnectionProxy 中的 getRawObject
指定者:
接口 WrapperProxy 中的 getRawObject
覆盖:
WrapperProxyImpl 中的 getRawObject

getDirectDataSource

public DataSourceProxy getDirectDataSource()
指定者:
接口 ConnectionProxy 中的 getDirectDataSource

createChain

public FilterChainImpl createChain()
指定者:
WrapperProxyImpl 中的 createChain

recycleFilterChain

public void recycleFilterChain(FilterChainImpl chain)

clearWarnings

public void clearWarnings()
                   throws SQLException
指定者:
接口 Connection 中的 clearWarnings
抛出:
SQLException

close

public void close()
           throws SQLException
指定者:
接口 Connection 中的 close
抛出:
SQLException

commit

public void commit()
            throws SQLException
指定者:
接口 Connection 中的 commit
抛出:
SQLException

createArrayOf

public Array createArrayOf(String typeName,
                           Object[] elements)
                    throws SQLException
指定者:
接口 Connection 中的 createArrayOf
抛出:
SQLException

createBlob

public Blob createBlob()
                throws SQLException
指定者:
接口 Connection 中的 createBlob
抛出:
SQLException

createClob

public Clob createClob()
                throws SQLException
指定者:
接口 Connection 中的 createClob
抛出:
SQLException

createNClob

public NClob createNClob()
                  throws SQLException
指定者:
接口 Connection 中的 createNClob
抛出:
SQLException

createSQLXML

public SQLXML createSQLXML()
                    throws SQLException
指定者:
接口 Connection 中的 createSQLXML
抛出:
SQLException

createStatement

public Statement createStatement()
                          throws SQLException
指定者:
接口 Connection 中的 createStatement
抛出:
SQLException

createStatement

public Statement createStatement(int resultSetType,
                                 int resultSetConcurrency)
                          throws SQLException
指定者:
接口 Connection 中的 createStatement
抛出:
SQLException

createStatement

public Statement createStatement(int resultSetType,
                                 int resultSetConcurrency,
                                 int resultSetHoldability)
                          throws SQLException
指定者:
接口 Connection 中的 createStatement
抛出:
SQLException

createStruct

public Struct createStruct(String typeName,
                           Object[] attributes)
                    throws SQLException
指定者:
接口 Connection 中的 createStruct
抛出:
SQLException

getAutoCommit

public boolean getAutoCommit()
                      throws SQLException
指定者:
接口 Connection 中的 getAutoCommit
抛出:
SQLException

getCatalog

public String getCatalog()
                  throws SQLException
指定者:
接口 Connection 中的 getCatalog
抛出:
SQLException

getClientInfo

public Properties getClientInfo()
                         throws SQLException
指定者:
接口 Connection 中的 getClientInfo
抛出:
SQLException

getClientInfo

public String getClientInfo(String name)
                     throws SQLException
指定者:
接口 Connection 中的 getClientInfo
抛出:
SQLException

getHoldability

public int getHoldability()
                   throws SQLException
指定者:
接口 Connection 中的 getHoldability
抛出:
SQLException

getMetaData

public DatabaseMetaData getMetaData()
                             throws SQLException
指定者:
接口 Connection 中的 getMetaData
抛出:
SQLException

getTransactionIsolation

public int getTransactionIsolation()
                            throws SQLException
指定者:
接口 Connection 中的 getTransactionIsolation
抛出:
SQLException

getTypeMap

public Map<String,Class<?>> getTypeMap()
                                throws SQLException
指定者:
接口 Connection 中的 getTypeMap
抛出:
SQLException

getWarnings

public SQLWarning getWarnings()
                       throws SQLException
指定者:
接口 Connection 中的 getWarnings
抛出:
SQLException

isClosed

public boolean isClosed()
                 throws SQLException
指定者:
接口 Connection 中的 isClosed
抛出:
SQLException

isReadOnly

public boolean isReadOnly()
                   throws SQLException
指定者:
接口 Connection 中的 isReadOnly
抛出:
SQLException

isValid

public boolean isValid(int timeout)
                throws SQLException
指定者:
接口 Connection 中的 isValid
抛出:
SQLException

nativeSQL

public String nativeSQL(String sql)
                 throws SQLException
指定者:
接口 Connection 中的 nativeSQL
抛出:
SQLException

prepareCall

public CallableStatement prepareCall(String sql)
                              throws SQLException
指定者:
接口 Connection 中的 prepareCall
抛出:
SQLException

prepareCall

public CallableStatement prepareCall(String sql,
                                     int resultSetType,
                                     int resultSetConcurrency)
                              throws SQLException
指定者:
接口 Connection 中的 prepareCall
抛出:
SQLException

prepareCall

public CallableStatement prepareCall(String sql,
                                     int resultSetType,
                                     int resultSetConcurrency,
                                     int resultSetHoldability)
                              throws SQLException
指定者:
接口 Connection 中的 prepareCall
抛出:
SQLException

prepareStatement

public PreparedStatement prepareStatement(String sql)
                                   throws SQLException
指定者:
接口 Connection 中的 prepareStatement
抛出:
SQLException

prepareStatement

public PreparedStatement prepareStatement(String sql,
                                          int autoGeneratedKeys)
                                   throws SQLException
指定者:
接口 Connection 中的 prepareStatement
抛出:
SQLException

prepareStatement

public PreparedStatement prepareStatement(String sql,
                                          int[] columnIndexes)
                                   throws SQLException
指定者:
接口 Connection 中的 prepareStatement
抛出:
SQLException

prepareStatement

public PreparedStatement prepareStatement(String sql,
                                          String[] columnNames)
                                   throws SQLException
指定者:
接口 Connection 中的 prepareStatement
抛出:
SQLException

prepareStatement

public PreparedStatement prepareStatement(String sql,
                                          int resultSetType,
                                          int resultSetConcurrency)
                                   throws SQLException
指定者:
接口 Connection 中的 prepareStatement
抛出:
SQLException

prepareStatement

public PreparedStatement prepareStatement(String sql,
                                          int resultSetType,
                                          int resultSetConcurrency,
                                          int resultSetHoldability)
                                   throws SQLException
指定者:
接口 Connection 中的 prepareStatement
抛出:
SQLException

releaseSavepoint

public void releaseSavepoint(Savepoint savepoint)
                      throws SQLException
指定者:
接口 Connection 中的 releaseSavepoint
抛出:
SQLException

rollback

public void rollback()
              throws SQLException
指定者:
接口 Connection 中的 rollback
抛出:
SQLException

rollback

public void rollback(Savepoint savepoint)
              throws SQLException
指定者:
接口 Connection 中的 rollback
抛出:
SQLException

setAutoCommit

public void setAutoCommit(boolean autoCommit)
                   throws SQLException
指定者:
接口 Connection 中的 setAutoCommit
抛出:
SQLException

setCatalog

public void setCatalog(String catalog)
                throws SQLException
指定者:
接口 Connection 中的 setCatalog
抛出:
SQLException

setClientInfo

public void setClientInfo(Properties properties)
                   throws SQLClientInfoException
指定者:
接口 Connection 中的 setClientInfo
抛出:
SQLClientInfoException

setClientInfo

public void setClientInfo(String name,
                          String value)
                   throws SQLClientInfoException
指定者:
接口 Connection 中的 setClientInfo
抛出:
SQLClientInfoException

setHoldability

public void setHoldability(int holdability)
                    throws SQLException
指定者:
接口 Connection 中的 setHoldability
抛出:
SQLException

setReadOnly

public void setReadOnly(boolean readOnly)
                 throws SQLException
指定者:
接口 Connection 中的 setReadOnly
抛出:
SQLException

setSavepoint

public Savepoint setSavepoint()
                       throws SQLException
指定者:
接口 Connection 中的 setSavepoint
抛出:
SQLException

setSavepoint

public Savepoint setSavepoint(String name)
                       throws SQLException
指定者:
接口 Connection 中的 setSavepoint
抛出:
SQLException

setTransactionIsolation

public void setTransactionIsolation(int level)
                             throws SQLException
指定者:
接口 Connection 中的 setTransactionIsolation
抛出:
SQLException

setTypeMap

public void setTypeMap(Map<String,Class<?>> map)
                throws SQLException
指定者:
接口 Connection 中的 setTypeMap
抛出:
SQLException

setSchema

public void setSchema(String schema)
               throws SQLException
抛出:
SQLException

getSchema

public String getSchema()
                 throws SQLException
抛出:
SQLException

abort

public void abort(Executor executor)
           throws SQLException
抛出:
SQLException

setNetworkTimeout

public void setNetworkTimeout(Executor executor,
                              int milliseconds)
                       throws SQLException
抛出:
SQLException

getNetworkTimeout

public int getNetworkTimeout()
                      throws SQLException
抛出:
SQLException

unwrap

public <T> T unwrap(Class<T> iface)
         throws SQLException
指定者:
接口 Wrapper 中的 unwrap
覆盖:
WrapperProxyImpl 中的 unwrap
抛出:
SQLException

getTransactionInfo

public TransactionInfo getTransactionInfo()
指定者:
接口 ConnectionProxy 中的 getTransactionInfo

getCloseCount

public int getCloseCount()
指定者:
接口 ConnectionProxy 中的 getCloseCount


Copyright © 2013-2014 Alibaba Group. All Rights Reserved.