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(CommonDataSource ds, Connection connection, TransactionManager txMgr)
           
 
Method Summary
static void cleanDataSource(CommonDataSource ds)
           
 XAResource getXAResource()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
static void pushDataSource(CommonDataSource ds)
           
protected  void setAutoCommit(boolean value)
           
 
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(CommonDataSource 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

setAutoCommit

protected void setAutoCommit(boolean value)
                      throws SQLException
Throws:
SQLException

pushDataSource

public static void pushDataSource(CommonDataSource ds)

cleanDataSource

public static void cleanDataSource(CommonDataSource ds)


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.