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

Quick Search    Search Deep

safejdbc
Class TxDataSourceAdapter.ProxyConnectionHandler  view TxDataSourceAdapter.ProxyConnectionHandler download TxDataSourceAdapter.ProxyConnectionHandler.java

java.lang.Object
  extended bysafejdbc.TxDataSourceAdapter.ProxyConnectionHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler
Enclosing class:
TxDataSourceAdapter

private static class TxDataSourceAdapter.ProxyConnectionHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

This class uses dynamic proxy functionality to ignore calls to "commit" or "rollback" on a Connection.


Field Summary
private  java.util.Collection _ignoreMethodNames
           
private  java.sql.Connection _inner
           
 
Constructor Summary
TxDataSourceAdapter.ProxyConnectionHandler(java.sql.Connection inner)
           
 
Method Summary
 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 final java.sql.Connection _inner

_ignoreMethodNames

private final java.util.Collection _ignoreMethodNames
Constructor Detail

TxDataSourceAdapter.ProxyConnectionHandler

public TxDataSourceAdapter.ProxyConnectionHandler(java.sql.Connection inner)
Method Detail

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