Class ResultSetLogger

java.lang.Object
org.apache.ibatis.logging.jdbc.BaseJdbcLogger
org.apache.ibatis.logging.jdbc.ResultSetLogger
All Implemented Interfaces:
InvocationHandler

public final class ResultSetLogger extends BaseJdbcLogger implements InvocationHandler
ResultSet proxy to add logging.
Author:
Clinton Begin, Eduardo Macarron
  • Method Details

    • invoke

      public Object invoke(Object proxy, Method method, Object[] params) throws Throwable
      Specified by:
      invoke in interface InvocationHandler
      Throws:
      Throwable
    • newInstance

      public static ResultSet newInstance(ResultSet rs, Log statementLog, int queryStack)
      Creates a logging version of a ResultSet.
      Parameters:
      rs - the ResultSet to proxy
      statementLog - the statement log
      queryStack - the query stack
      Returns:
      the ResultSet with logging
    • getRs

      public ResultSet getRs()
      Get the wrapped result set.
      Returns:
      the resultSet