Class CallableStatementProxy

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler

    public final class CallableStatementProxy
    extends java.lang.Object
    implements java.lang.reflect.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

      Constructors 
      Modifier Constructor Description
      protected CallableStatementProxy​(java.sql.CallableStatement stmt, java.lang.String sql)
      Creates an instance of this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

      • CallableStatementProxy

        protected CallableStatementProxy​(java.sql.CallableStatement stmt,
                                         java.lang.String sql)
        Creates an instance of this class.
        Parameters:
        stmt - Callable 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