net.ttddyy.dsproxy.proxy
Class PreparedStatementInvocationHandler

java.lang.Object
  extended by net.ttddyy.dsproxy.proxy.PreparedStatementInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class PreparedStatementInvocationHandler
extends Object
implements InvocationHandler

Proxy InvocationHandler for PreparedStatement.

Author:
Tadaya Tsuyukubo

Constructor Summary
PreparedStatementInvocationHandler(PreparedStatement ps, String query)
           
PreparedStatementInvocationHandler(PreparedStatement ps, String query, QueryExecutionListener listener)
           
PreparedStatementInvocationHandler(PreparedStatement ps, String query, QueryExecutionListener listener, String dataSourceName)
           
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreparedStatementInvocationHandler

public PreparedStatementInvocationHandler(PreparedStatement ps,
                                          String query)

PreparedStatementInvocationHandler

public PreparedStatementInvocationHandler(PreparedStatement ps,
                                          String query,
                                          QueryExecutionListener listener)

PreparedStatementInvocationHandler

public PreparedStatementInvocationHandler(PreparedStatement ps,
                                          String query,
                                          QueryExecutionListener listener,
                                          String dataSourceName)
Method Detail

invoke

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


Copyright © 2012. All Rights Reserved.