|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdbc.pool.OracleDataSource oracle.jdbc.pool.OracleConnectionPoolDataSource oracle.jdbc.xa.OracleXADataSource oracle.jdbc.xa.client.OracleXADataSource
public class OracleXADataSource
A factory for XAConnection objects. An object that implements the XADataSource interface is typically registered with a JNDI service provider.
For optimization purposes, we implemented 2 versions of OracleXADataSource: one for client, and one for server when used in Java Stored Procedures and in EJB. The server-version is only available in 8.1.6 and post-8.1.6 backends. This one is the implementation of OracleXADataSource for client-side usage and works for both pre- and post-8.1.6 RMs.
Field Summary | |
---|---|
static java.lang.String |
BUILD_DATE
|
static boolean |
TRACE
|
Fields inherited from class oracle.jdbc.pool.OracleDataSource |
---|
isOracleDataSource |
Constructor Summary | |
---|---|
OracleXADataSource()
Create an OracleXADataSource instance. |
Method Summary | |
---|---|
javax.sql.XAConnection |
getXAConnection()
Attempt to establish a database connection. |
javax.sql.XAConnection |
getXAConnection(java.lang.String userName,
java.lang.String passwd)
Attempt to establish a database connection. |
Methods inherited from class oracle.jdbc.pool.OracleConnectionPoolDataSource |
---|
getPooledConnection |
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 |
Field Detail |
---|
public static final java.lang.String BUILD_DATE
public static final boolean TRACE
Constructor Detail |
---|
public OracleXADataSource() throws java.sql.SQLException
java.sql.SQLException
- if error occurs while creating an objectMethod Detail |
---|
public javax.sql.XAConnection getXAConnection() throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
getXAConnection
in class OracleXADataSource
java.sql.SQLException
- if a database-access error occurs.public javax.sql.XAConnection getXAConnection(java.lang.String userName, java.lang.String passwd) throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
getXAConnection
in class OracleXADataSource
userName
- the database user on whose behalf the Connection is madepasswd
- the user's password
java.sql.SQLException
- if a database-access error occurs.
|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |