org.castor.jdo.drivers

Class PreparedStatementProxy

Implemented Interfaces:
InvocationHandler

public final class PreparedStatementProxy
extends java.lang.Object
implements InvocationHandler

Proxy class for JDBC PreparedStatement class, to allow information gathering for the purpose of SQL statement logging.
Version:
$Revision: 6310 $ $Date$
Author:
Ralf Joachim
Since:
1.0.4

Constructor Summary

PreparedStatementProxy(PreparedStatement stmt, String sql)
Creates an instance of this class.

Method Summary

Object
invoke(Object proxy, Method method, Object[] args)

Constructor Details

PreparedStatementProxy

protected PreparedStatementProxy(PreparedStatement stmt,
                                 String sql)
Creates an instance of this class.
Parameters:
stmt - Prepared statement to be proxied.
sql - SQL string.

Method Details

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
            throws Throwable

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com