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, tracepublic Object invoke(Object proxy, Method method, Object[] params) throws Throwable
invoke in interface InvocationHandlerThrowablepublic static Connection newInstance(Connection conn, Log statementLog, int queryStack)
conn - the original connectionstatementLog - the statement logqueryStack - the query stackpublic Connection getConnection()
Copyright © 2009–2021 MyBatis.org. All rights reserved.