com.onewebsql.util.transaction
Class TransactionalDataSource.ConnectionProxyInvocationHandler

java.lang.Object
  extended by com.onewebsql.util.transaction.TransactionalDataSource.ConnectionProxyInvocationHandler
All Implemented Interfaces:
InvocationHandler
Enclosing class:
TransactionalDataSource

public static class TransactionalDataSource.ConnectionProxyInvocationHandler
extends Object
implements InvocationHandler

Invocation handler for database connection proxy returned by TransactionalDataSource. This handler don't permit of invoking following methods on Connection object obtained from TransactionalDataSource:

Invocation of Connection.close() on connection obtained from TransactionalDataSource is NOP operation.
Invocation of other methods are delegated to underlying database connection object.


Constructor Summary
TransactionalDataSource.ConnectionProxyInvocationHandler(Connection connection)
          Creates invocation handler for database connection proxy.
 
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

TransactionalDataSource.ConnectionProxyInvocationHandler

public TransactionalDataSource.ConnectionProxyInvocationHandler(Connection connection)
Creates invocation handler for database connection proxy.

Parameters:
connection - underlying database connection
Method Detail

invoke

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


Copyright © 2011-2013 e-point SA. All Rights Reserved.