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.
-
Field Summary
FieldsFields inherited from class BaseJdbcLogger
EXECUTE_METHODS, queryStack, SET_METHODS, statementLog -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConnectionLogger(Connection conn, Log statementLog, int queryStack) -
Method Summary
Modifier and TypeMethodDescriptionreturn the wrapped connection.static ConnectionnewInstance(Connection conn, Log statementLog, int queryStack) Creates a logging version of a connection.Methods inherited from class BaseJdbcLogger
clearColumnInfo, debug, getColumn, getColumnString, getParameterValueString, isDebugEnabled, isTraceEnabled, objectValueString, removeExtraWhitespace, setColumn, trace
-
Field Details
-
connection
-
-
Constructor Details
-
ConnectionLogger
-
-
Method Details
-
invoke
-
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
-