org.castor.cpa.persistence.sql.connection
Class CallableStatementProxy

java.lang.Object
  extended by org.castor.cpa.persistence.sql.connection.CallableStatementProxy
All Implemented Interfaces:
InvocationHandler

public final class CallableStatementProxy
extends Object
implements InvocationHandler

Proxy class for JDBC CallableStatement 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
protected CallableStatementProxy(CallableStatement stmt, String sql)
          Creates an instance of this class.
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallableStatementProxy

protected CallableStatementProxy(CallableStatement stmt,
                                 String sql)
Creates an instance of this class.

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

invoke

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

Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2010. All Rights Reserved.