com.ibatis.common.jdbc.logging
Class ConnectionLogProxy
java.lang.Object
com.ibatis.common.jdbc.logging.BaseLogProxy
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
方法摘要 |
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 |
类方法继承: 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