Class StatementFacade

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

    public class StatementFacade
    extends AbstractCreateStatementInterceptor
    Facade that creates statement and result set proxies.
    • Constructor Detail

      • StatementFacade

        protected StatementFacade​(JdbcInterceptor interceptor)
        Constructs a StatementFacade.
        Parameters:
        interceptor - the next interceptor in the chain
    • Method Detail

      • createStatement

        public java.lang.Object createStatement​(java.lang.Object proxy,
                                                java.lang.reflect.Method method,
                                                java.lang.Object[] args,
                                                java.lang.Object statement,
                                                long time)
        Creates a statement interceptor to monitor query response times
        Specified by:
        createStatement in class AbstractCreateStatementInterceptor
        Parameters:
        proxy - the actual proxy object
        method - the method that was called. It will be one of the methods defined in AbstractCreateStatementInterceptor.STATEMENT_TYPES
        args - the arguments to the method
        statement - the statement that the underlying connection created
        time - Elapsed time
        Returns:
        a Statement object