All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.randomnoun.p7spy.jdbc_4_3.P7Statement Maven / Gradle / Ivy

The newest version!
package com.randomnoun.p7spy.jdbc_4_3;

import org.apache.log4j.Logger;
import org.apache.log4j.MDC;

public class P7Statement implements java.sql.Statement {

    /** Logger used to dump method invocations */
    private static final Logger logger = Logger.getLogger(com.randomnoun.p7spy.jdbc_4_3.P7Statement.class);

    /** Object being wrapped by this class */
    private java.sql.Statement w;

    // Constructors
    public P7Statement(java.sql.Statement wrappedStatement) {
        w = wrappedStatement; 
        _setMDC();
        MDC.put("p7Duration", "0");
        logger.debug("new Statement()");
    }


    // MDC method
    private void _setMDC() {
        MDC.put("p7Id", "P7Statement@" + Integer.toHexString(System.identityHashCode(this)));
    };

    // MDC method
    private void _setMDC(long duration) {
        MDC.put("p7Duration", String.valueOf(duration));
    };

    // Methods
    public boolean execute(String arg0, String[] arg1) throws java.sql.SQLException  {
        String logText = "execute(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ", " + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg1) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        boolean result;
        try {
            result = w.execute(arg0, arg1);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Boolean(result)));
        return result;
    }

    public boolean execute(String arg0, int[] arg1) throws java.sql.SQLException  {
        String logText = "execute(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ", " + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg1) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        boolean result;
        try {
            result = w.execute(arg0, arg1);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Boolean(result)));
        return result;
    }

    public boolean execute(String arg0, int arg1) throws java.sql.SQLException  {
        String logText = "execute(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ", " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(arg1)) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        boolean result;
        try {
            result = w.execute(arg0, arg1);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Boolean(result)));
        return result;
    }

    public boolean execute(String arg0) throws java.sql.SQLException  {
        String logText = "execute(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        boolean result;
        try {
            result = w.execute(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Boolean(result)));
        return result;
    }

    public void close() throws java.sql.SQLException  {
        String logText = "close()";
        long startTime = System.currentTimeMillis();
        try {
            w.close();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText);
    }

    public void cancel() throws java.sql.SQLException  {
        String logText = "cancel()";
        long startTime = System.currentTimeMillis();
        try {
            w.cancel();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText);
    }

    public java.sql.Connection getConnection() throws java.sql.SQLException  {
        String logText = "getConnection()";
        long startTime = System.currentTimeMillis();
        java.sql.Connection result;
        try {
            result = w.getConnection();
        if (!(result instanceof com.randomnoun.p7spy.jdbc_4_3.P7Connection)) {
            result = new com.randomnoun.p7spy.jdbc_4_3.P7Connection(result);
        }
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(result));
        return result;
    }

    public boolean isClosed() throws java.sql.SQLException  {
        String logText = "isClosed()";
        long startTime = System.currentTimeMillis();
        boolean result;
        try {
            result = w.isClosed();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Boolean(result)));
        return result;
    }

    public boolean isCloseOnCompletion() throws java.sql.SQLException  {
        String logText = "isCloseOnCompletion()";
        long startTime = System.currentTimeMillis();
        boolean result;
        try {
            result = w.isCloseOnCompletion();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Boolean(result)));
        return result;
    }

    public int getResultSetHoldability() throws java.sql.SQLException  {
        String logText = "getResultSetHoldability()";
        long startTime = System.currentTimeMillis();
        int result;
        try {
            result = w.getResultSetHoldability();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(result)));
        return result;
    }

    public void setEscapeProcessing(boolean arg0) throws java.sql.SQLException  {
        String logText = "setEscapeProcessing(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Boolean(arg0)) + ")";
        long startTime = System.currentTimeMillis();
        try {
            w.setEscapeProcessing(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText);
    }

    public int getResultSetConcurrency() throws java.sql.SQLException  {
        String logText = "getResultSetConcurrency()";
        long startTime = System.currentTimeMillis();
        int result;
        try {
            result = w.getResultSetConcurrency();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(result)));
        return result;
    }

    public long getLargeUpdateCount() throws java.sql.SQLException  {
        String logText = "getLargeUpdateCount()";
        long startTime = System.currentTimeMillis();
        long result;
        try {
            result = w.getLargeUpdateCount();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Long(result)));
        return result;
    }

    public String enquoteNCharLiteral(String arg0) throws java.sql.SQLException  {
        String logText = "enquoteNCharLiteral(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        String result;
        try {
            result = w.enquoteNCharLiteral(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(result));
        return result;
    }

    public long getLargeMaxRows() throws java.sql.SQLException  {
        String logText = "getLargeMaxRows()";
        long startTime = System.currentTimeMillis();
        long result;
        try {
            result = w.getLargeMaxRows();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Long(result)));
        return result;
    }

    public long[] executeLargeBatch() throws java.sql.SQLException  {
        String logText = "executeLargeBatch()";
        long startTime = System.currentTimeMillis();
        long[] result;
        try {
            result = w.executeLargeBatch();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(result));
        return result;
    }

    public void setLargeMaxRows(long arg0) throws java.sql.SQLException  {
        String logText = "setLargeMaxRows(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Long(arg0)) + ")";
        long startTime = System.currentTimeMillis();
        try {
            w.setLargeMaxRows(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText);
    }

    public String enquoteIdentifier(String arg0, boolean arg1) throws java.sql.SQLException  {
        String logText = "enquoteIdentifier(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ", " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Boolean(arg1)) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        String result;
        try {
            result = w.enquoteIdentifier(arg0, arg1);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(result));
        return result;
    }

    public boolean isSimpleIdentifier(String arg0) throws java.sql.SQLException  {
        String logText = "isSimpleIdentifier(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        boolean result;
        try {
            result = w.isSimpleIdentifier(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Boolean(result)));
        return result;
    }

    public void closeOnCompletion() throws java.sql.SQLException  {
        String logText = "closeOnCompletion()";
        long startTime = System.currentTimeMillis();
        try {
            w.closeOnCompletion();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText);
    }

    public String enquoteLiteral(String arg0) throws java.sql.SQLException  {
        String logText = "enquoteLiteral(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        String result;
        try {
            result = w.enquoteLiteral(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(result));
        return result;
    }

    public boolean isPoolable() throws java.sql.SQLException  {
        String logText = "isPoolable()";
        long startTime = System.currentTimeMillis();
        boolean result;
        try {
            result = w.isPoolable();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Boolean(result)));
        return result;
    }

    public void setPoolable(boolean arg0) throws java.sql.SQLException  {
        String logText = "setPoolable(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Boolean(arg0)) + ")";
        long startTime = System.currentTimeMillis();
        try {
            w.setPoolable(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText);
    }

    public int getMaxFieldSize() throws java.sql.SQLException  {
        String logText = "getMaxFieldSize()";
        long startTime = System.currentTimeMillis();
        int result;
        try {
            result = w.getMaxFieldSize();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(result)));
        return result;
    }

    public int getFetchDirection() throws java.sql.SQLException  {
        String logText = "getFetchDirection()";
        long startTime = System.currentTimeMillis();
        int result;
        try {
            result = w.getFetchDirection();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(result)));
        return result;
    }

    public int getQueryTimeout() throws java.sql.SQLException  {
        String logText = "getQueryTimeout()";
        long startTime = System.currentTimeMillis();
        int result;
        try {
            result = w.getQueryTimeout();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(result)));
        return result;
    }

    public java.sql.SQLWarning getWarnings() throws java.sql.SQLException  {
        String logText = "getWarnings()";
        long startTime = System.currentTimeMillis();
        java.sql.SQLWarning result;
        try {
            result = w.getWarnings();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(result));
        return result;
    }

    public boolean getMoreResults() throws java.sql.SQLException  {
        String logText = "getMoreResults()";
        long startTime = System.currentTimeMillis();
        boolean result;
        try {
            result = w.getMoreResults();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Boolean(result)));
        return result;
    }

    public boolean getMoreResults(int arg0) throws java.sql.SQLException  {
        String logText = "getMoreResults(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(arg0)) + ")";
        long startTime = System.currentTimeMillis();
        boolean result;
        try {
            result = w.getMoreResults(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Boolean(result)));
        return result;
    }

    public int getFetchSize() throws java.sql.SQLException  {
        String logText = "getFetchSize()";
        long startTime = System.currentTimeMillis();
        int result;
        try {
            result = w.getFetchSize();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(result)));
        return result;
    }

    public void setCursorName(String arg0) throws java.sql.SQLException  {
        String logText = "setCursorName(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        try {
            w.setCursorName(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText);
    }

    public void setFetchDirection(int arg0) throws java.sql.SQLException  {
        String logText = "setFetchDirection(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(arg0)) + ")";
        long startTime = System.currentTimeMillis();
        try {
            w.setFetchDirection(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText);
    }

    public void setFetchSize(int arg0) throws java.sql.SQLException  {
        String logText = "setFetchSize(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(arg0)) + ")";
        long startTime = System.currentTimeMillis();
        try {
            w.setFetchSize(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText);
    }

    public void clearBatch() throws java.sql.SQLException  {
        String logText = "clearBatch()";
        long startTime = System.currentTimeMillis();
        try {
            w.clearBatch();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText);
    }

    public int getUpdateCount() throws java.sql.SQLException  {
        String logText = "getUpdateCount()";
        long startTime = System.currentTimeMillis();
        int result;
        try {
            result = w.getUpdateCount();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(result)));
        return result;
    }

    public void setMaxFieldSize(int arg0) throws java.sql.SQLException  {
        String logText = "setMaxFieldSize(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(arg0)) + ")";
        long startTime = System.currentTimeMillis();
        try {
            w.setMaxFieldSize(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText);
    }

    public void setQueryTimeout(int arg0) throws java.sql.SQLException  {
        String logText = "setQueryTimeout(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(arg0)) + ")";
        long startTime = System.currentTimeMillis();
        try {
            w.setQueryTimeout(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText);
    }

    public int getMaxRows() throws java.sql.SQLException  {
        String logText = "getMaxRows()";
        long startTime = System.currentTimeMillis();
        int result;
        try {
            result = w.getMaxRows();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(result)));
        return result;
    }

    public java.sql.ResultSet getResultSet() throws java.sql.SQLException  {
        String logText = "getResultSet()";
        long startTime = System.currentTimeMillis();
        java.sql.ResultSet result;
        try {
            result = w.getResultSet();
        if (!(result instanceof com.randomnoun.p7spy.jdbc_4_3.P7ResultSet)) {
            result = new com.randomnoun.p7spy.jdbc_4_3.P7ResultSet(result);
        }
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(result));
        return result;
    }

    public void setMaxRows(int arg0) throws java.sql.SQLException  {
        String logText = "setMaxRows(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(arg0)) + ")";
        long startTime = System.currentTimeMillis();
        try {
            w.setMaxRows(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText);
    }

    public int[] executeBatch() throws java.sql.SQLException  {
        String logText = "executeBatch()";
        long startTime = System.currentTimeMillis();
        int[] result;
        try {
            result = w.executeBatch();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(result));
        return result;
    }

    public java.sql.ResultSet getGeneratedKeys() throws java.sql.SQLException  {
        String logText = "getGeneratedKeys()";
        long startTime = System.currentTimeMillis();
        java.sql.ResultSet result;
        try {
            result = w.getGeneratedKeys();
        if (!(result instanceof com.randomnoun.p7spy.jdbc_4_3.P7ResultSet)) {
            result = new com.randomnoun.p7spy.jdbc_4_3.P7ResultSet(result);
        }
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(result));
        return result;
    }

    public int getResultSetType() throws java.sql.SQLException  {
        String logText = "getResultSetType()";
        long startTime = System.currentTimeMillis();
        int result;
        try {
            result = w.getResultSetType();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(result)));
        return result;
    }

    public void clearWarnings() throws java.sql.SQLException  {
        String logText = "clearWarnings()";
        long startTime = System.currentTimeMillis();
        try {
            w.clearWarnings();
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText);
    }

    public void addBatch(String arg0) throws java.sql.SQLException  {
        String logText = "addBatch(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        try {
            w.addBatch(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText);
    }

    public java.sql.ResultSet executeQuery(String arg0) throws java.sql.SQLException  {
        String logText = "executeQuery(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        java.sql.ResultSet result;
        try {
            result = w.executeQuery(arg0);
        if (!(result instanceof com.randomnoun.p7spy.jdbc_4_3.P7ResultSet)) {
            result = new com.randomnoun.p7spy.jdbc_4_3.P7ResultSet(result);
        }
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(result));
        return result;
    }

    public int executeUpdate(String arg0, int[] arg1) throws java.sql.SQLException  {
        String logText = "executeUpdate(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ", " + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg1) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        int result;
        try {
            result = w.executeUpdate(arg0, arg1);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(result)));
        return result;
    }

    public int executeUpdate(String arg0) throws java.sql.SQLException  {
        String logText = "executeUpdate(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        int result;
        try {
            result = w.executeUpdate(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(result)));
        return result;
    }

    public int executeUpdate(String arg0, int arg1) throws java.sql.SQLException  {
        String logText = "executeUpdate(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ", " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(arg1)) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        int result;
        try {
            result = w.executeUpdate(arg0, arg1);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(result)));
        return result;
    }

    public int executeUpdate(String arg0, String[] arg1) throws java.sql.SQLException  {
        String logText = "executeUpdate(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ", " + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg1) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        int result;
        try {
            result = w.executeUpdate(arg0, arg1);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(result)));
        return result;
    }

    public long executeLargeUpdate(String arg0, int arg1) throws java.sql.SQLException  {
        String logText = "executeLargeUpdate(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ", " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Integer(arg1)) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        long result;
        try {
            result = w.executeLargeUpdate(arg0, arg1);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Long(result)));
        return result;
    }

    public long executeLargeUpdate(String arg0) throws java.sql.SQLException  {
        String logText = "executeLargeUpdate(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        long result;
        try {
            result = w.executeLargeUpdate(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Long(result)));
        return result;
    }

    public long executeLargeUpdate(String arg0, String[] arg1) throws java.sql.SQLException  {
        String logText = "executeLargeUpdate(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ", " + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg1) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        long result;
        try {
            result = w.executeLargeUpdate(arg0, arg1);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Long(result)));
        return result;
    }

    public long executeLargeUpdate(String arg0, int[] arg1) throws java.sql.SQLException  {
        String logText = "executeLargeUpdate(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ", " + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg1) + ")";
        long startTime = System.currentTimeMillis();
        if (arg0 != null && com.randomnoun.p7spy.P7SpyTrace.matchesArg(arg0)) { logger.debug("SQL trap triggered", new RuntimeException("SQL trap triggered")); }
        long result;
        try {
            result = w.executeLargeUpdate(arg0, arg1);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Long(result)));
        return result;
    }

    // from interface java.sql.Wrapper
    public Object unwrap(Class arg0) throws java.sql.SQLException  {
        String logText = "unwrap(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ")";
        long startTime = System.currentTimeMillis();
        Object result;
        try {
            result = w.unwrap(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(result));
        return result;
    }

    // from interface java.sql.Wrapper
    public boolean isWrapperFor(Class arg0) throws java.sql.SQLException  {
        String logText = "isWrapperFor(" + com.randomnoun.p7spy.P7SpyTrace.formatResult(arg0) + ")";
        long startTime = System.currentTimeMillis();
        boolean result;
        try {
            result = w.isWrapperFor(arg0);
        } catch (java.sql.SQLException e0) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, e0);
            throw e0;
        } catch (RuntimeException re) {
            _setMDC(System.currentTimeMillis() - startTime);
            _setMDC();
            logger.debug(logText, re);
            throw re;
        }
        _setMDC(System.currentTimeMillis() - startTime);
        _setMDC();
        logger.debug(logText + ": " + com.randomnoun.p7spy.P7SpyTrace.formatResult(new Boolean(result)));
        return result;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy