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 SummaryFields inherited from class org.apache.ibatis.logging.jdbc.BaseJdbcLoggerEXECUTE_METHODS, queryStack, SET_METHODS, statementLog
- 
Method SummaryModifier and TypeMethodDescriptionreturn the wrapped connection.static ConnectionnewInstance(Connection conn, Log statementLog, int queryStack) Creates a logging version of a connection.Methods inherited from class org.apache.ibatis.logging.jdbc.BaseJdbcLoggerclearColumnInfo, debug, getColumn, getColumnString, getParameterValueString, isDebugEnabled, isTraceEnabled, objectValueString, removeExtraWhitespace, setColumn, trace
- 
Method Details- 
invoke- Specified by:
- invokein interface- InvocationHandler
- Throws:
- Throwable
 
- 
newInstanceCreates a logging version of a connection.- Parameters:
- conn- the original connection
- statementLog- the statement log
- queryStack- the query stack
- Returns:
- the connection with logging
 
- 
getConnectionreturn the wrapped connection.- Returns:
- the connection
 
 
-