com.ibatis.common.jdbc.logging
Class ConnectionLogProxy

java.lang.Object
  extended by com.ibatis.common.jdbc.logging.BaseLogProxy
      extended by com.ibatis.common.jdbc.logging.ConnectionLogProxy
所有已实现接口:
java.lang.reflect.InvocationHandler

public class ConnectionLogProxy
extends BaseLogProxy
implements java.lang.reflect.InvocationHandler

Connection proxy to add logging


字段摘要
 
Fields inherited from class com.ibatis.common.jdbc.logging.BaseLogProxy
EXECUTE_METHODS, GET_METHODS, id, SET_METHODS
 
方法摘要
 java.sql.Connection getConnection()
          return the wrapped connection
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] params)
           
static java.sql.Connection newInstance(java.sql.Connection conn)
          Creates a logging version of a connection
 
类方法继承: com.ibatis.common.jdbc.logging.BaseLogProxy
clearColumnInfo, getColumn, getColumnString, getNextId, getTypeString, getValueString, removeBreakingWhitespace, setColumn
 
类方法继承: java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] params)
                        throws java.lang.Throwable
规范说明:
invoke in interface java.lang.reflect.InvocationHandler
抛出异常:
java.lang.Throwable

newInstance

public static java.sql.Connection newInstance(java.sql.Connection conn)
Creates a logging version of a connection

参数:
conn - - the original connection
返回:
- the connection with logging

getConnection

public java.sql.Connection getConnection()
return the wrapped connection

返回:
the connection