Oracle10g JDBC

oracle.jdbc.xa
Class OracleXAConnection

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

public abstract class OracleXAConnection
extends OraclePooledConnection
implements javax.sql.XAConnection

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

See Also:
Serialized Form

Field Summary
static java.lang.String BUILD_DATE
           
static boolean PRIVATE_TRACE
           
static boolean TRACE
           
 
Fields inherited from class oracle.jdbc.pool.OraclePooledConnection
cachedConnectionAttributes, close_callback_string, connect_auto_commit_string, connection_properties_string, event_listener_string, explicit_caching_enabled, implicit_caching_enabled, m_closeOption, 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
 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 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

TRACE

public static final boolean TRACE
See Also:
Constant Field Values

PRIVATE_TRACE

public static final boolean PRIVATE_TRACE
See Also:
Constant Field Values

BUILD_DATE

public static final java.lang.String BUILD_DATE
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.

Throws:
javax.transaction.xa.XAException
Method Detail

getXAResource

public abstract javax.transaction.xa.XAResource getXAResource()

Return an XA resource to the caller.

Specified by:
getXAResource in interface javax.sql.XAConnection
Returns:
the XAResource
Throws:
java.sql.SQLException - if a database-access error occurs

getConnection

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.

Specified by:
getConnection in interface javax.sql.PooledConnection
Overrides:
getConnection in class OraclePooledConnection
Returns:
a Connection object
Throws:
java.sql.SQLException - if a database-access error occurs.

Oracle10g JDBC

Copyright © 1998,2004, Oracle. All rights reserved