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:
InvocationHandler
ResultSet proxy to add logging.
-
Field Summary
FieldsFields inherited from class org.apache.ibatis.logging.jdbc.BaseJdbcLogger
EXECUTE_METHODS, queryStack, SET_METHODS, statementLog -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateResultSetLogger(ResultSet rs, Log statementLog, int queryStack) -
Method Summary
Modifier and TypeMethodDescriptiongetRs()Get the wrapped result set.static ResultSetnewInstance(ResultSet rs, Log statementLog, int queryStack) Creates a logging version of a ResultSet.private voidprintColumnHeaders(ResultSetMetaData rsmd, int columnCount) private voidprintColumnValues(int columnCount) Methods inherited from class org.apache.ibatis.logging.jdbc.BaseJdbcLogger
clearColumnInfo, debug, getColumn, getColumnString, getParameterValueString, isDebugEnabled, isTraceEnabled, objectValueString, removeExtraWhitespace, setColumn, trace
-
Field Details
-
BLOB_TYPES
-
first
private boolean first -
rows
private int rows -
rs
-
blobColumns
-
-
Constructor Details
-
ResultSetLogger
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
printColumnHeaders
- Throws:
SQLException
-
printColumnValues
private void printColumnValues(int columnCount) -
newInstance
Creates a logging version of a ResultSet.- Parameters:
rs- the ResultSet to proxystatementLog- the statement logqueryStack- the query stack- Returns:
- the ResultSet with logging
-
getRs
Get the wrapped result set.- Returns:
- the resultSet
-