com.ibatis.common.jdbc.logging
Class StatementLogProxy
java.lang.Object
com.ibatis.common.jdbc.logging.BaseLogProxy
com.ibatis.common.jdbc.logging.StatementLogProxy
- All Implemented Interfaces:
- InvocationHandler
public class StatementLogProxy
- extends BaseLogProxy
- implements InvocationHandler
Statement proxy to add logging
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.