org.castor.jdo.drivers
Class PreparedStatementProxy

java.lang.Object
  extended by org.castor.jdo.drivers.PreparedStatementProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

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

Proxy class for JDBC PreparedStatement class, to allow information gathering for the purpose of SQL statement logging.

Since:
1.0.4
Version:
$Revision: 7121 $ $Date$
Author:
Ralf Joachim

Constructor Summary
protected PreparedStatementProxy(java.sql.PreparedStatement stmt, java.lang.String sql)
          Creates an instance of this class.
 
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
 

Constructor Detail

PreparedStatementProxy

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

Parameters:
stmt - Prepared statement to be proxied.
sql - SQL string.
Method Detail

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


Copyright © 2011. All Rights Reserved.