Oracle JDBC API Reference
11g Release 2 ("11.2.0.3.0")

oracle.jdbc.xa.client
Class OracleXAConnection

java.lang.Object
  extended by oracle.jdbc.pool.OraclePooledConnection
      extended by oracle.jdbc.xa.OracleXAConnection
          extended by oracle.jdbc.xa.client.OracleXAConnection
All Implemented Interfaces:
java.io.Serializable, javax.sql.PooledConnection, javax.sql.XAConnection
Direct Known Subclasses:
OracleXAHeteroConnection

public class OracleXAConnection
extends OracleXAConnection

An XAConnection object provides support for distributed transactions. An XAConnection may be enlisted in a distributed transaction by means of an XAResource object.

For Optimization purposes, we decided to have 2 versions one for client and one for server when used in Java Stored Procedures and in EJB. This one is the implementation of OracleXADataSource for client side usage.

See Also:
Serialized Form

Field Summary
static java.lang.String BUILD_DATE
           
static boolean TRACE
           
 
Fields inherited from class oracle.jdbc.pool.OraclePooledConnection
cachedConnectionAttributes, close_callback_string, closeOption, connect_auto_commit_string, connection_properties_string, event_listener_string, explicit_caching_enabled, ExplicitStatementCachingEnabled, implicit_caching_enabled, ImplicitStatementCachingEnabled, isClearMetaData, LoginTimeout, object_type_map, pool_auto_commit_string, private_data, sql_exception_string, statement_cache_size, transaction_isolation, unMatchedCachedConnAttr, url_string
 
Constructor Summary
OracleXAConnection()
          Create an OracleXAConnection object.
OracleXAConnection(java.sql.Connection pc)
          Create an OracleXAConnection object.
 
Method Summary
 javax.transaction.xa.XAResource getXAResource()
          Return an XA resource to the caller.
 
Methods inherited from class oracle.jdbc.xa.OracleXAConnection
getConnection
 
Methods inherited from class oracle.jdbc.pool.OraclePooledConnection
addConnectionEventListener, close, getCallWithKey, getExplicitCachingEnabled, getImplicitCachingEnabled, getLastAccessedTime, getLogicalHandle, getPhysicalHandle, getStatementCacheSize, getStatementWithKey, getStmtCacheSize, isStatementCacheInitialized, purgeExplicitCache, purgeImplicitCache, registerImplicitCacheConnectionEventListener, removeConnectionEventListener, setExplicitCachingEnabled, setImplicitCachingEnabled, setLastAccessedTime, setProperties, setStatementCacheSize, setStmtCacheSize, setStmtCacheSize
 
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

BUILD_DATE

public static final java.lang.String BUILD_DATE
See Also:
Constant Field Values

TRACE

public static final boolean TRACE
See Also:
Constant Field Values
Constructor Detail

OracleXAConnection

public OracleXAConnection()
                   throws javax.transaction.xa.XAException
Create an OracleXAConnection object.

Throws:
javax.transaction.xa.XAException

OracleXAConnection

public OracleXAConnection(java.sql.Connection pc)
                   throws javax.transaction.xa.XAException
Create an OracleXAConnection object.

Parameters:
pc - A physical connection object.
Throws:
javax.transaction.xa.XAException
Method Detail

getXAResource

public javax.transaction.xa.XAResource getXAResource()

Return an XA resource to the caller.

Specified by:
getXAResource in interface javax.sql.XAConnection
Specified by:
getXAResource in class OracleXAConnection
Returns:
the XAResource

Oracle JDBC API Reference
11g Release 2 ("11.2.0.3.0")

Copyright © 1998, 2007, Oracle. All rights reserved.