Class ConnectionProxyHandler

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler

    public class ConnectionProxyHandler
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    A simple invocation handler for the proxied connection. Connections are proxied only when they are obtained from a transactional data source and within the context of a JTA transaction.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectionProxyHandler​(java.sql.Connection connection)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConnectionProxyHandler

        public ConnectionProxyHandler​(java.sql.Connection connection)
    • 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
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable