Serializable
, PooledConnection
, XAConnection
, OraclePooledConnection
, OracleXAConnection
OracleXAConnection
public abstract class OracleXAConnection extends OraclePooledConnection implements OracleXAConnection
An XAConnection object provides support for distributed transactions. An XAConnection may be enlisted in a distributed transaction by means of an XAResource object.
Modifier and Type | Field | Description |
---|---|---|
protected XAResource |
xaResource |
autoCommit, cachedConnectionAttributes, close_callback_string, closeOption, connect_auto_commit_string, connection_properties_string, connectionMarkedDown, dataSourceDbUniqNameKey, dataSourceHostNameKey, dataSourceInstanceNameKey, event_listener_string, explicit_caching_enabled, ExplicitStatementCachingEnabled, implicit_caching_enabled, ImplicitStatementCachingEnabled, isClearMetaData, logicalHandle, LoginTimeout, needToAbort, NO_IMPLICIT_BEGIN_REQUEST_PROPERTY, object_type_map, oracleDriver, physicalConn, pool_auto_commit_string, private_data, replayConn, sql_exception_string, statement_cache_size, transaction_isolation, unMatchedCachedConnAttr, url_string
Constructor | Description |
---|---|
OracleXAConnection() |
Create an OracleXAConnection object.
|
OracleXAConnection(Connection pc) |
Create an OracleXAConnection object.
|
Modifier and Type | Method | Description |
---|---|---|
Connection |
getConnection() |
Create an object handle for this physical connection.
|
abstract XAResource |
getXAResource() |
Return an XA resource to the caller.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCallWithKey, getExplicitCachingEnabled, getImplicitCachingEnabled, getLastAccessedTime, getLogicalHandle, getStatementCacheSize, getStatementWithKey, purgeExplicitCache, purgeImplicitCache, registerCloseCallback, registerImplicitCacheConnectionEventListener, setExplicitCachingEnabled, setImplicitCachingEnabled, setLastAccessedTime, setShardingKey, setShardingKeyIfValid, setStatementCacheSize
addConnectionEventListener, addStatementEventListener, close, debug, getCallWithKey, getConnectionDuringExceptionHandling, getExplicitCachingEnabled, getImplicitCachingEnabled, getLastAccessedTime, getLogicalHandle, getPhysicalHandle, getStatementCacheSize, getStatementWithKey, getStmtCacheSize, isStatementCacheInitialized, purgeExplicitCache, purgeImplicitCache, registerImplicitCacheConnectionEventListener, removeConnectionEventListener, removeStatementEventListener, setConnection, setExplicitCachingEnabled, setImplicitCachingEnabled, setLastAccessedTime, setProperties, setShardingKey, setShardingKeyIfValid, setStatementCacheSize, setStmtCacheSize, setStmtCacheSize
addConnectionEventListener, addStatementEventListener, close, removeConnectionEventListener, removeStatementEventListener
protected XAResource xaResource
public OracleXAConnection() throws XAException
XAException
public OracleXAConnection(Connection pc) throws XAException
pc
- A physical connection object.XAException
public abstract XAResource getXAResource() throws SQLException
Return an XA resource to the caller.
getXAResource
in interface OraclePooledConnection
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.