Package com.ibatis.common.jdbc.logging
Class ConnectionLogProxy
java.lang.Object
com.ibatis.common.jdbc.logging.BaseLogProxy
com.ibatis.common.jdbc.logging.ConnectionLogProxy
- All Implemented Interfaces:
InvocationHandler
Connection proxy to add logging.
-
Field Summary
Fields inherited from class com.ibatis.common.jdbc.logging.BaseLogProxy
EXECUTE_METHODS, GET_METHODS, id, SET_METHODS
-
Method Summary
Modifier and TypeMethodDescriptionreturn the wrapped connection.static Connection
newInstance
(Connection conn) Creates a logging version of a connection.Methods inherited from class com.ibatis.common.jdbc.logging.BaseLogProxy
clearColumnInfo, getColumn, getColumnString, getNextId, getTypeString, getValueString, removeBreakingWhitespace, setColumn
-
Method Details
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
newInstance
Creates a logging version of a connection.- Parameters:
conn
- - the original connection- Returns:
- - the connection with logging
-
getConnection
return the wrapped connection.- Returns:
- the connection
-