|
Oracle®Database JDBC Java API Reference 12c Release 1 (12.1.0.2) E56669-01 |
|||||||||
| 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
public abstract class OracleXADataSource
A factory for XAConnection objects. An object that implements the XADataSource interface is typically registered with a JNDI service provider.
| Field Summary | |
|---|---|
static boolean |
TRACE |
protected boolean |
useNativeXA |
| Constructor Summary | |
|---|---|
OracleXADataSource()Create an OracleXADataSource instance. |
|
| Method Summary | |
|---|---|
protected void |
copy(OracleDataSource ds) |
protected oracle.jdbc.internal.OracleConnection |
getConnectionDuringExceptionHandling() |
abstract XAConnection |
getXAConnection()Attempt to establish a database connection. |
abstract XAConnection |
getXAConnection(String user, String passwd)Attempt to establish a database connection. |
void |
setURL(String url)Set the URL from which connections have to be obtained. |
| Methods inherited from class oracle.jdbc.pool.OracleConnectionPoolDataSource |
|---|
getPhysicalConnection, getPhysicalConnection, getPhysicalConnection, getPooledConnection, getPooledConnection |
| 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 |
|---|
protected boolean useNativeXA
public static final boolean TRACE
| Constructor Detail |
|---|
public OracleXADataSource()
throws SQLException
Create an OracleXADataSource instance.
SQLException - if error occurs while creating an object| Method Detail |
|---|
public abstract XAConnection getXAConnection()
throws SQLException
Attempt to establish a database connection.
getXAConnection in interface XADataSourceSQLException - if a database-access error occurs.
public abstract XAConnection getXAConnection(String user,
String passwd)
throws SQLException
Attempt to establish a database connection.
getXAConnection in interface XADataSourceuser - the database user on whose behalf the Connection is being madepassword - the user's passwordSQLException - if a database-access error occurs.public void setURL(String url)
OracleDataSourcesetURL in class OracleDataSourceurl - URL to be set.
protected void copy(OracleDataSource ds)
throws SQLException
copy in class OracleDataSourceSQLExceptionprotected oracle.jdbc.internal.OracleConnection getConnectionDuringExceptionHandling()
getConnectionDuringExceptionHandling in class OracleDataSource
|
Oracle®Database JDBC Java API Reference 12c Release 1 (12.1.0.2) E56669-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||