Class AbstractQueryReport.StatementProxy

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler
    Enclosing class:
    AbstractQueryReport

    protected class AbstractQueryReport.StatementProxy
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    Class to measure query execute time
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean closed
      Indicates whether the proxy has been closed.
      protected java.lang.Object delegate
      The underlying statement or connection being proxied.
      protected java.lang.String query
      The SQL query being executed.
    • Constructor Summary

      Constructors 
      Constructor Description
      StatementProxy​(java.lang.Object parent, java.lang.String query)
      Constructs a new StatementProxy.
    • 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
    • Field Detail

      • closed

        protected boolean closed
        Indicates whether the proxy has been closed.
      • delegate

        protected java.lang.Object delegate
        The underlying statement or connection being proxied.
      • query

        protected final java.lang.String query
        The SQL query being executed.
    • Constructor Detail

      • StatementProxy

        public StatementProxy​(java.lang.Object parent,
                              java.lang.String query)
        Constructs a new StatementProxy.
        Parameters:
        parent - The underlying statement or connection
        query - The SQL query being executed
    • 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