|
Oracle Database JDBC Java API Reference 11g Release 2 E13995-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.jdbc.pool.OraclePooledConnection
oracle.jdbc.xa.OracleXAConnection
public abstract class OracleXAConnection
An XAConnection object provides support for distributed transactions. An XAConnection may be enlisted in a distributed transaction by means of an XAResource object.
| Field Summary | |
|---|---|
static boolean |
TRACE |
| Constructor Summary | |
|---|---|
OracleXAConnection()Create an OracleXAConnection object. |
|
OracleXAConnection(java.sql.Connection pc)Create an OracleXAConnection object. |
|
| Method Summary | |
|---|---|
java.sql.Connection |
getConnection()Create an object handle for this physical connection. |
abstract javax.transaction.xa.XAResource |
getXAResource()Return an XA resource to the caller. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.sql.PooledConnection |
|---|
addConnectionEventListener, close, removeConnectionEventListener |
| Field Detail |
|---|
public static final boolean TRACE
| Constructor Detail |
|---|
public OracleXAConnection()
throws javax.transaction.xa.XAException
javax.transaction.xa.XAException
public OracleXAConnection(java.sql.Connection pc)
throws javax.transaction.xa.XAException
pc - A physical connection object.javax.transaction.xa.XAException| Method Detail |
|---|
public abstract javax.transaction.xa.XAResource getXAResource()
Return an XA resource to the caller.
getXAResource in interface javax.sql.XAConnectiongetXAResource in class OraclePooledConnectionjava.sql.SQLException - if a database-access error occurs
public java.sql.Connection getConnection()
throws java.sql.SQLException
Create an object handle for this physical connection. The object returned is a temporary handle used by application code to refer to a physical connection that is being pooled.
getConnection in interface javax.sql.PooledConnectiongetConnection in class OraclePooledConnectionjava.sql.SQLException - if a database-access error occurs.
|
Oracle Database JDBC Java API Reference 11g Release 2 E13995-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||