org.garret.consusx
Class ConsusXADataSource
java.lang.Object
org.garret.consusx.ConsusDataSource
org.garret.consusx.ConsusConnectionPoolDataSource
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
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.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 |
ConsusXADataSource
public ConsusXADataSource()
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