com.ibatis.common.jdbc.logging

Class PreparedStatementLogProxy

public class PreparedStatementLogProxy extends BaseLogProxy implements InvocationHandler

PreparedStatement proxy to add logging
Method Summary
PreparedStatementgetPreparedStatement()
Return the wrapped prepared statement
Objectinvoke(Object proxy, Method method, Object[] params)
static PreparedStatementnewInstance(PreparedStatement stmt, String sql)
Creates a logging version of a PreparedStatement

Method Detail

getPreparedStatement

public PreparedStatement getPreparedStatement()
Return the wrapped prepared statement

Returns: the PreparedStatement

invoke

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

newInstance

public static PreparedStatement newInstance(PreparedStatement stmt, String sql)
Creates a logging version of a PreparedStatement

Parameters: stmt - the statement sql - the sql statement

Returns: - the proxy

Copyright © 2011. All Rights Reserved.