Package com.ibatis.common.jdbc.logging
Class PreparedStatementLogProxy
java.lang.Object
com.ibatis.common.jdbc.logging.BaseLogProxy
com.ibatis.common.jdbc.logging.PreparedStatementLogProxy
- All Implemented Interfaces:
InvocationHandler
PreparedStatement 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 prepared statement.static PreparedStatementnewInstance(PreparedStatement stmt, String sql) Creates a logging version of a PreparedStatement.Methods inherited from class com.ibatis.common.jdbc.logging.BaseLogProxy
clearColumnInfo, getColumn, getColumnString, getNextId, getTypeString, getValueString, removeBreakingWhitespace, setColumn
-
Method Details
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
newInstance
Creates a logging version of a PreparedStatement.- Parameters:
stmt- - the statementsql- - the sql statement- Returns:
- - the proxy
-
getPreparedStatement
Return the wrapped prepared statement.- Returns:
- the PreparedStatement
-