Package oracle.jdbc.xa.client
Class OracleXAHeteroConnection
java.lang.Object
oracle.jdbc.pool.OraclePooledConnection
oracle.jdbc.xa.OracleXAConnection
oracle.jdbc.xa.client.OracleXAConnection
oracle.jdbc.xa.client.OracleXAHeteroConnection
- All Implemented Interfaces:
Serializable,PooledConnection,XAConnection,OraclePooledConnection,OracleXAConnection,oracle.jdbc.diagnostics.Diagnosable,oracle.jdbc.diagnostics.PropertyChangeListener,oracle.jdbc.internal.Monitor
A factory for Connection objects. An object that implements the
XAConnection interface provides support for distributed transactions.
An XAConnection may be enlisted in a distributed transaction by means
of an XAResource object.
This class implements oracle.jdbc.xa.OracleXAConnection and works for both pre- and post-8.1.6 Oracle backends. OracleXAConnection is the alternative implementation that talks to only 8.1.6 and post-8.1.6 backends.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface oracle.jdbc.internal.Monitor
oracle.jdbc.internal.Monitor.CloseableLock, oracle.jdbc.internal.Monitor.WaitableMonitor -
Field Summary
Fields inherited from class oracle.jdbc.xa.client.OracleXAConnection
isXAResourceTransLooseFields inherited from class oracle.jdbc.xa.OracleXAConnection
xaResourceFields inherited from class oracle.jdbc.pool.OraclePooledConnection
autoCommit, close_callback_string, closeOption, connect_auto_commit_string, connection_properties_string, event_listener_string, explicit_caching_enabled, ExplicitStatementCachingEnabled, implicit_caching_enabled, ImplicitStatementCachingEnabled, isClearMetaData, logicalHandle, LoginTimeout, 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, url_string -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Constructor that takes a Connection parameter. -
Method Summary
Modifier and TypeMethodDescriptionReturn an XAResource object to the caller.Methods inherited from class oracle.jdbc.xa.OracleXAConnection
getConnectionMethods inherited from class oracle.jdbc.pool.OraclePooledConnection
addConnectionEventListener, addStatementEventListener, close, getCallWithKey, getConnectionDuringExceptionHandling, getDiagnosable, getExplicitCachingEnabled, getImplicitCachingEnabled, getLastAccessedTime, getLogicalHandle, getMonitorLock, getPhysicalHandle, getStatementCacheSize, getStatementWithKey, getStmtCacheSize, isStatementCacheInitialized, purgeExplicitCache, purgeImplicitCache, registerImplicitCacheConnectionEventListener, removeConnectionEventListener, removeStatementEventListener, setConnection, setExplicitCachingEnabled, setImplicitCachingEnabled, setLastAccessedTime, setProperties, setShardingKey, setShardingKeyIfValid, setStatementCacheSize, setStmtCacheSize, setStmtCacheSizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface oracle.jdbc.diagnostics.Diagnosable
begin, beginCurrentSql, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debugp, end, endCurrentSql, format, isDebugEnabled, isDiagnoseFirstFailureEnabled, isLoggable, isSensitiveEnabled, onClose, propertyChange, resumeLogging, secure, suspendLogging, trace, tracepMethods inherited from interface oracle.jdbc.internal.Monitor
acquireCloseableLock, acquireLock, assertLockHeldByCurrentThread, isReentrantLock, releaseLockMethods inherited from interface oracle.jdbc.datasource.OraclePooledConnection
getCallWithKey, getExplicitCachingEnabled, getImplicitCachingEnabled, getLastAccessedTime, getLogicalHandle, getStatementCacheSize, getStatementWithKey, purgeExplicitCache, purgeImplicitCache, registerCloseCallback, registerImplicitCacheConnectionEventListener, setExplicitCachingEnabled, setImplicitCachingEnabled, setLastAccessedTime, setShardingKey, setShardingKeyIfValid, setStatementCacheSizeMethods inherited from interface javax.sql.PooledConnection
addConnectionEventListener, addStatementEventListener, close, removeConnectionEventListener, removeStatementEventListener
-
Constructor Details
-
OracleXAHeteroConnection
Constructor. Creates an OracleXAHeteroConnection object.- Throws:
XAException
-
OracleXAHeteroConnection
Constructor that takes a Connection parameter. Create an OracleXAHeteroConnection object.- Parameters:
pc- A physical connection object.- Throws:
XAException
-
-
Method Details
-
getXAResource
Return an XAResource object to the caller.- Specified by:
getXAResourcein interfaceOraclePooledConnection- Specified by:
getXAResourcein interfaceXAConnection- Overrides:
getXAResourcein classOracleXAConnection- Returns:
- the XAResource
-