Package org.apache.ibatis.logging.jdbc
Class ConnectionLogger
java.lang.Object
org.apache.ibatis.logging.jdbc.BaseJdbcLogger
org.apache.ibatis.logging.jdbc.ConnectionLogger
- All Implemented Interfaces:
InvocationHandler
Connection proxy to add logging.
- Author:
- Clinton Begin, Eduardo Macarron
-
Field Summary
Fields inherited from class org.apache.ibatis.logging.jdbc.BaseJdbcLogger
EXECUTE_METHODS, queryStack, SET_METHODS, statementLog
-
Method Summary
Modifier and TypeMethodDescriptionreturn the wrapped connection.static Connection
newInstance
(Connection conn, Log statementLog, int queryStack) Creates a logging version of a connection.Methods inherited from class org.apache.ibatis.logging.jdbc.BaseJdbcLogger
clearColumnInfo, debug, getColumn, getColumnString, getParameterValueString, isDebugEnabled, isTraceEnabled, objectValueString, removeExtraWhitespace, setColumn, trace
-
Method Details
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
newInstance
Creates a logging version of a connection.- Parameters:
conn
- the original connectionstatementLog
- the statement logqueryStack
- the query stack- Returns:
- the connection with logging
-
getConnection
return the wrapped connection.- Returns:
- the connection
-