org.apache.openejb.resource.jdbc.managed.xa
Class ManagedXADataSource

java.lang.Object
  extended by org.apache.openejb.resource.jdbc.managed.local.ManagedDataSource
      extended by org.apache.openejb.resource.jdbc.managed.xa.ManagedXADataSource
All Implemented Interfaces:
Wrapper, CommonDataSource, DataSource

public class ManagedXADataSource
extends ManagedDataSource


Field Summary
 
Fields inherited from class org.apache.openejb.resource.jdbc.managed.local.ManagedDataSource
delegate, hashCode, transactionManager
 
Constructor Summary
ManagedXADataSource(CommonDataSource ds, TransactionManager txMgr)
           
 
Method Summary
 Connection getConnection()
           
 Connection getConnection(String username, String password)
           
 
Methods inherited from class org.apache.openejb.resource.jdbc.managed.local.ManagedDataSource
clean, equals, getDelegate, getLoginTimeout, getLogWriter, getParentLogger, hashCode, isWrapperFor, setLoginTimeout, setLogWriter, unwrap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedXADataSource

public ManagedXADataSource(CommonDataSource ds,
                           TransactionManager txMgr)
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Specified by:
getConnection in interface DataSource
Overrides:
getConnection in class ManagedDataSource
Throws:
SQLException

getConnection

public Connection getConnection(String username,
                                String password)
                         throws SQLException
Specified by:
getConnection in interface DataSource
Overrides:
getConnection in class ManagedDataSource
Throws:
SQLException


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