org.castor.jdo.drivers

Class ConnectionProxy

Implemented Interfaces:
InvocationHandler

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

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

Constructor Summary

ConnectionProxy(Connection con, String calledBy)
Creates an instance of ConnectionProxy.

Method Summary

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

Constructor Details

ConnectionProxy

public ConnectionProxy(Connection con,
                       String calledBy)
Creates an instance of ConnectionProxy.
Parameters:
con - JDBC Connectio instance to be proxied.
calledBy - Name of the class using creating and this proxy class.

Method Details

invoke

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

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