Package org.apache.ibatis.logging.jdbc
Class ResultSetLogger
- java.lang.Object
-
- org.apache.ibatis.logging.jdbc.BaseJdbcLogger
-
- org.apache.ibatis.logging.jdbc.ResultSetLogger
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
public final class ResultSetLogger extends BaseJdbcLogger implements java.lang.reflect.InvocationHandler
ResultSet 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 Type Method Description java.sql.ResultSet
getRs()
Get the wrapped result set.java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] params)
static java.sql.ResultSet
newInstance(java.sql.ResultSet rs, Log statementLog, int queryStack)
Creates a logging version of a ResultSet.-
Methods inherited from class org.apache.ibatis.logging.jdbc.BaseJdbcLogger
clearColumnInfo, debug, getColumn, getColumnString, getParameterValueString, isDebugEnabled, isTraceEnabled, objectValueString, removeBreakingWhitespace, setColumn, trace
-
-
-
-
Method Detail
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] params) throws java.lang.Throwable
- Specified by:
invoke
in interfacejava.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
-
newInstance
public static java.sql.ResultSet newInstance(java.sql.ResultSet rs, Log statementLog, int queryStack)
Creates a logging version of a ResultSet.- Parameters:
rs
- - the ResultSet to proxy- Returns:
- - the ResultSet with logging
-
getRs
public java.sql.ResultSet getRs()
Get the wrapped result set.- Returns:
- the resultSet
-
-