com.ibatis.common.jdbc.logging
Class PreparedStatementLogProxy
java.lang.Object
   com.ibatis.common.jdbc.logging.BaseLogProxy
com.ibatis.common.jdbc.logging.BaseLogProxy
       com.ibatis.common.jdbc.logging.PreparedStatementLogProxy
com.ibatis.common.jdbc.logging.PreparedStatementLogProxy
- 所有已实现接口: 
- java.lang.reflect.InvocationHandler
- public class PreparedStatementLogProxy 
- extends BaseLogProxy- implements java.lang.reflect.InvocationHandler
PreparedStatement proxy to add logging
 
 
| 方法摘要 | 
|  java.sql.PreparedStatement | getPreparedStatement()Return the wrapped prepared statement
 | 
|  java.lang.Object | invoke(java.lang.Object proxy,
       java.lang.reflect.Method method,
       java.lang.Object[] params)
 | 
| static java.sql.PreparedStatement | newInstance(java.sql.PreparedStatement stmt,
            java.lang.String sql)Creates a logging version of a PreparedStatement
 | 
 
 
| 类方法继承: java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
invoke
public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] params)
                        throws java.lang.Throwable
- 
- 规范说明:
- invokein interface- java.lang.reflect.InvocationHandler
 
- 
- 抛出异常:
- java.lang.Throwable
 
newInstance
public static java.sql.PreparedStatement newInstance(java.sql.PreparedStatement stmt,
                                                     java.lang.String sql)
- Creates a logging version of a PreparedStatement
 
- 
 
- 
- 参数:
- stmt- - the statement
- sql- - the sql statement
- 返回:
- - the proxy
 
getPreparedStatement
public java.sql.PreparedStatement getPreparedStatement()
- Return the wrapped prepared statement
 
- 
 
- 
- 返回:
- the PreparedStatement