org.apache.ibatis.logging.jdbc
Class ResultSetLogger

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

public class ResultSetLogger
extends BaseJdbcLogger
implements InvocationHandler

ResultSet proxy to add logging


Field Summary
 
Fields inherited from class org.apache.ibatis.logging.jdbc.BaseJdbcLogger
EXECUTE_METHODS, SET_METHODS
 
Method Summary
 ResultSet getRs()
          Get the wrapped result set
 Object invoke(Object proxy, Method method, Object[] params)
           
static ResultSet newInstance(ResultSet rs)
          Creates a logging version of a ResultSet
 
Methods inherited from class org.apache.ibatis.logging.jdbc.BaseJdbcLogger
clearColumnInfo, getColumn, getColumnString, getParameterValueString, removeBreakingWhitespace, setColumn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)
Creates a logging version of a ResultSet

Parameters:
rs - - the ResultSet to proxy
Returns:
- the ResultSet with logging

getRs

public ResultSet getRs()
Get the wrapped result set

Returns:
the resultSet


Copyright © 2010-2011 MyBatis.org. All Rights Reserved.