org.apache.commons.monitoring.jdbc
Class MonitoredStatement

java.lang.Object
  extended by org.apache.commons.monitoring.jdbc.MonitoredStatement
All Implemented Interfaces:
InvocationHandler
Direct Known Subclasses:
MonitoredPreparedStatement

public class MonitoredStatement
extends Object
implements InvocationHandler


Constructor Summary
MonitoredStatement(Statement statement)
           
 
Method Summary
protected  Throwable extractSQLException(InvocationTargetException e)
           
 Object invoke(Object proxy, Method method, Object[] args)
           
protected  SQLException monitor(SQLException sqle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoredStatement

public MonitoredStatement(Statement statement)
Method Detail

monitor

protected SQLException monitor(SQLException sqle)

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

extractSQLException

protected Throwable extractSQLException(InvocationTargetException e)
                                 throws Throwable
Throws:
Throwable


Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.