org.apache.ibatis.logging.jdbc
Class StatementLogger

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

public class StatementLogger
extends BaseJdbcLogger
implements InvocationHandler

Statement proxy to add logging


Field Summary
 
Fields inherited from class org.apache.ibatis.logging.jdbc.BaseJdbcLogger
EXECUTE_METHODS, SET_METHODS
 
Method Summary
 Statement getStatement()
          return the wrapped statement
 Object invoke(Object proxy, Method method, Object[] params)
           
static Statement newInstance(Statement stmt)
          Creates a logging version of a Statement
 
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 Statement newInstance(Statement stmt)
Creates a logging version of a Statement

Parameters:
stmt - - the statement
Returns:
- the proxy

getStatement

public Statement getStatement()
return the wrapped statement

Returns:
the statement


Copyright © 2010. All Rights Reserved.