public final class ConnectionLogger extends BaseJdbcLogger implements InvocationHandler
EXECUTE_METHODS, queryStack, SET_METHODS, statementLog
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection()
return the wrapped connection.
|
Object |
invoke(Object proxy,
Method method,
Object[] params) |
static Connection |
newInstance(Connection conn,
Log statementLog,
int queryStack)
Creates a logging version of a connection.
|
clearColumnInfo, debug, getColumn, getColumnString, getParameterValueString, isDebugEnabled, isTraceEnabled, objectValueString, removeExtraWhitespace, setColumn, trace
public Object invoke(Object proxy, Method method, Object[] params) throws Throwable
invoke
in interface InvocationHandler
Throwable
public static Connection newInstance(Connection conn, Log statementLog, int queryStack)
conn
- the original connectionstatementLog
- the statement logqueryStack
- the query stackpublic Connection getConnection()
Copyright © 2009–2020 MyBatis.org. All rights reserved.