|
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.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 |
protected XAResource |
xaResource |
Constructor Summary | |
---|---|
OracleXAConnection() Create an OracleXAConnection object. |
|
OracleXAConnection(Connection pc) Create an OracleXAConnection object. |
Method Summary | |
---|---|
Connection |
getConnection() Create an object handle for this physical connection. |
abstract XAResource |
getXAResource() Return an XA resource to the caller. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.sql.PooledConnection |
---|
addConnectionEventListener, addStatementEventListener, close, removeConnectionEventListener, removeStatementEventListener |
Field Detail |
---|
protected XAResource xaResource
public static final boolean TRACE
Constructor Detail |
---|
public OracleXAConnection() throws XAException
XAException
public OracleXAConnection(Connection pc) throws XAException
pc
- A physical connection object.XAException
Method Detail |
---|
public abstract XAResource getXAResource()
Return an XA resource to the caller.
getXAResource
in interface XAConnection
getXAResource
in class OraclePooledConnection
SQLException
- if a database-access error occurspublic Connection getConnection() throws 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 PooledConnection
getConnection
in class OraclePooledConnection
SQLException
- if a database-access error occurs.
|
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 |