org.castor.cpa.persistence.sql.connection
Class ConnectionProxy
java.lang.Object
org.castor.cpa.persistence.sql.connection.ConnectionProxy
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public final class ConnectionProxy
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler
Proxy class for JDBC Connection class, to allow information gathering
for the purpose of SQL statement logging.
- Since:
- 1.0.4
- Version:
- $Revision: 8107 $ $Date$
- Author:
- Ralf Joachim
Constructor Summary |
ConnectionProxy(java.sql.Connection con,
java.lang.String calledBy)
Creates an instance of ConnectionProxy. |
Method Summary |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionProxy
public ConnectionProxy(java.sql.Connection con,
java.lang.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.
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
-
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com