Package org.apache.ibatis.logging.jdbc
Class PreparedStatementLogger
java.lang.Object
org.apache.ibatis.logging.jdbc.BaseJdbcLogger
org.apache.ibatis.logging.jdbc.PreparedStatementLogger
- All Implemented Interfaces:
InvocationHandler
PreparedStatement 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 prepared statement.static PreparedStatement
newInstance
(PreparedStatement stmt, Log statementLog, int queryStack) Creates a logging version of a PreparedStatement.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
public static PreparedStatement newInstance(PreparedStatement stmt, Log statementLog, int queryStack) Creates a logging version of a PreparedStatement.- Parameters:
stmt
- - the statementstatementLog
- - the statement logqueryStack
- - the query stack- Returns:
- - the proxy
-
getPreparedStatement
Return the wrapped prepared statement.- Returns:
- the PreparedStatement
-