Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

safejdbc
Class PreparedStatementProxy  view PreparedStatementProxy download PreparedStatementProxy.java

java.lang.Object
  extended bysafejdbc.PreparedStatementProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

class PreparedStatementProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler


Field Summary
private static java.lang.ClassLoader _classLoader
           
private  java.sql.PreparedStatement _inner
           
private  LogListener _loglistener
           
private  java.util.HashMap _parameters
           
private  java.util.Map _params
           
private  java.lang.String _sqlStatement
           
 
Constructor Summary
PreparedStatementProxy(java.sql.PreparedStatement inner, java.lang.String sqlStatement, LogListener loglistener)
           
 
Method Summary
static java.sql.PreparedStatement getPreparedStatementProxy(java.sql.PreparedStatement preparedStatement, java.lang.String sqlStatement, LogListener loglistener)
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_inner

private java.sql.PreparedStatement _inner

_params

private java.util.Map _params

_parameters

private java.util.HashMap _parameters

_sqlStatement

private java.lang.String _sqlStatement

_loglistener

private LogListener _loglistener

_classLoader

private static final java.lang.ClassLoader _classLoader
Constructor Detail

PreparedStatementProxy

public PreparedStatementProxy(java.sql.PreparedStatement inner,
                              java.lang.String sqlStatement,
                              LogListener loglistener)
Method Detail

getPreparedStatementProxy

public static java.sql.PreparedStatement getPreparedStatementProxy(java.sql.PreparedStatement preparedStatement,
                                                                   java.lang.String sqlStatement,
                                                                   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