org.garret.consusx
Class ConsusXADataSource

java.lang.Object
  extended by org.garret.consusx.ConsusDataSource
      extended by org.garret.consusx.ConsusConnectionPoolDataSource
          extended by org.garret.consusx.ConsusXADataSource
All Implemented Interfaces:
javax.sql.ConnectionPoolDataSource, javax.sql.DataSource, javax.naming.Referenceable, java.io.Serializable, javax.sql.XADataSource

public class ConsusXADataSource
extends ConsusConnectionPoolDataSource
implements javax.sql.XADataSource

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.garret.consusx.ConsusDataSource
databaseName, dataSourceName, description, networkProtocol, password, portNumber, roleName, serverName, user
 
Constructor Summary
ConsusXADataSource()
           
 
Method Summary
 java.sql.Connection getConnection(java.lang.String username, java.lang.String password)
           
 javax.sql.XAConnection getXAConnection()
           
 javax.sql.XAConnection getXAConnection(java.lang.String username, java.lang.String password)
           
 
Methods inherited from class org.garret.consusx.ConsusConnectionPoolDataSource
getPooledConnection, getPooledConnection
 
Methods inherited from class org.garret.consusx.ConsusDataSource
getConnection, getDatabaseName, getDataSourceName, getDescription, getLoginTimeout, getLogWriter, getNetworkProtocol, getPassword, getPortNumber, getReference, getRoleName, getServerName, getUser, setDatabaseName, setDataSourceName, setDescription, setLoginTimeout, setLogWriter, setNetworkProtocol, setPassword, setPortNumber, setrRoleName, setServerName, setUser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sql.XADataSource
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 
Methods inherited from interface javax.sql.ConnectionPoolDataSource
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 

Constructor Detail

ConsusXADataSource

public ConsusXADataSource()
Method Detail

getConnection

public java.sql.Connection getConnection(java.lang.String username,
                                         java.lang.String password)
                                  throws java.sql.SQLException
Specified by:
getConnection in interface javax.sql.DataSource
Overrides:
getConnection in class ConsusConnectionPoolDataSource
Throws:
java.sql.SQLException

getXAConnection

public javax.sql.XAConnection getXAConnection()
                                       throws java.sql.SQLException
Specified by:
getXAConnection in interface javax.sql.XADataSource
Throws:
java.sql.SQLException

getXAConnection

public javax.sql.XAConnection getXAConnection(java.lang.String username,
                                              java.lang.String password)
                                       throws java.sql.SQLException
Specified by:
getXAConnection in interface javax.sql.XADataSource
Throws:
java.sql.SQLException