org.apache.openejb.resource.jdbc.managed.local
Class ManagedConnection

java.lang.Object
  extended by org.apache.openejb.resource.jdbc.managed.local.ManagedConnection
All Implemented Interfaces:
InvocationHandler
Direct Known Subclasses:
ManagedXAConnection

public class ManagedConnection
extends Object
implements InvocationHandler


Field Summary
protected  Connection delegate
           
 
Constructor Summary
ManagedConnection(DataSource ds, Connection connection, TransactionManager txMgr)
           
 
Method Summary
static void cleanDataSource(DataSource ds)
           
 XAResource getXAResource()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
static void pushDataSource(DataSource ds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected Connection delegate
Constructor Detail

ManagedConnection

public ManagedConnection(DataSource ds,
                         Connection connection,
                         TransactionManager txMgr)
Method Detail

getXAResource

public XAResource getXAResource()
                         throws SQLException
Throws:
SQLException

invoke

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

pushDataSource

public static void pushDataSource(DataSource ds)

cleanDataSource

public static void cleanDataSource(DataSource ds)


Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.