com.ibatis.common.jdbc.logging

Class StatementLogProxy

public class StatementLogProxy extends BaseLogProxy implements InvocationHandler

Statement proxy to add logging
Method Summary
StatementgetStatement()
return the wrapped statement
Objectinvoke(Object proxy, Method method, Object[] params)
static StatementnewInstance(Statement stmt)
Creates a logging version of a Statement

Method Detail

getStatement

public Statement getStatement()
return the wrapped statement

Returns: the statement

invoke

public Object invoke(Object proxy, Method method, Object[] params)

newInstance

public static Statement newInstance(Statement stmt)
Creates a logging version of a Statement

Parameters: stmt - the statement

Returns: - the proxy

Copyright © 2011. All Rights Reserved.