safejdbc
Class StatementProxy

java.lang.Object
safejdbc.StatementProxy
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
- class StatementProxy
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler
This class wrapps a java.sql.Statement, so that calls to the methods execute(), executeQuery() and executeUpdate() are
delegated to the LogListener.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_inner
private java.sql.Statement _inner
_params
private java.util.Map _params
_parameters
private java.util.HashMap _parameters
_loglistener
private LogListener _loglistener
_classLoader
private static final java.lang.ClassLoader _classLoader
StatementProxy
public StatementProxy(java.sql.Statement inner,
LogListener loglistener)
getStatementProxy
public static java.sql.Statement getStatementProxy(java.sql.Statement statement,
LogListener loglistener)
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Description copied from interface:
java.lang.reflect.InvocationHandler
- When a method is invoked on a proxy instance, it is wrapped and
this method is called instead, so that you may decide at runtime
how the original method should behave.
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler