org.javasimon.jdbcx
Class SimonXADataSource

java.lang.Object
  extended by org.javasimon.jdbcx.AbstractSimonDataSource
      extended by org.javasimon.jdbcx.SimonXADataSource
All Implemented Interfaces:
CommonDataSource, XADataSource

public final class SimonXADataSource
extends AbstractSimonDataSource
implements XADataSource

Wrapper class for real XADataSource implementation, produces xa XAConnection object.

See the SimonDataSource for more information.

Since:
1.0
Version:
$Revision: 304 $ $Date: 2011-04-08 10:39:02 +0200 (Fri, 08 Apr 2011) $
Author:
Radovan Sninsky

Field Summary
private  XADataSource ds
           
 
Fields inherited from class org.javasimon.jdbcx.AbstractSimonDataSource
loginTimeout, logWriter, password, prefix, realDataSourceClassName, url, user
 
Constructor Summary
SimonXADataSource()
           
 
Method Summary
private  XADataSource datasource()
           
 XAConnection getXAConnection()
          
 XAConnection getXAConnection(String user, String password)
          
 
Methods inherited from class org.javasimon.jdbcx.AbstractSimonDataSource
getLoginTimeout, getLogWriter, getPassword, getPrefix, getRealDataSourceClassName, getUrl, getUser, setLoginTimeout, setLogWriter, setPassword, setPrefix, setRealDataSourceClassName, setUrl, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sql.CommonDataSource
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 

Field Detail

ds

private XADataSource ds
Constructor Detail

SimonXADataSource

public SimonXADataSource()
Method Detail

datasource

private XADataSource datasource()
                         throws SQLException
Throws:
SQLException

getXAConnection

public XAConnection getXAConnection()
                             throws SQLException

Specified by:
getXAConnection in interface XADataSource
Throws:
SQLException

getXAConnection

public XAConnection getXAConnection(String user,
                                    String password)
                             throws SQLException

Specified by:
getXAConnection in interface XADataSource
Throws:
SQLException


Copyright © 2011. All Rights Reserved.