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.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isXAResourceTransLoose |
xaResourceautoCommit, 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 and Description |
|---|
OracleXAConnection()
Create an OracleXAConnection object.
|
OracleXAConnection(java.sql.Connection pc)
Create an OracleXAConnection object.
|
| Modifier and Type | Method and Description |
|---|---|
javax.transaction.xa.XAResource |
getXAResource()
Return an XA resource to the caller.
|
getConnectionaddConnectionEventListener, 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, setStmtCacheSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCallWithKey, getExplicitCachingEnabled, getImplicitCachingEnabled, getLastAccessedTime, getLogicalHandle, getStatementCacheSize, getStatementWithKey, purgeExplicitCache, purgeImplicitCache, registerCloseCallback, registerImplicitCacheConnectionEventListener, setExplicitCachingEnabled, setImplicitCachingEnabled, setLastAccessedTime, setShardingKey, setShardingKeyIfValid, setStatementCacheSizeaddConnectionEventListener, addStatementEventListener, close, removeConnectionEventListener, removeStatementEventListeneracquireCloseableLock, acquireLock, assertLockHeldByCurrentThread, isReentrantLock, newDefaultLock, newInstance, releaseLockbegin, 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, traceppublic OracleXAConnection()
throws javax.transaction.xa.XAException
javax.transaction.xa.XAExceptionpublic OracleXAConnection(java.sql.Connection pc)
throws javax.transaction.xa.XAException
pc - A physical connection object.javax.transaction.xa.XAExceptionpublic javax.transaction.xa.XAResource getXAResource()
throws java.sql.SQLException
Return an XA resource to the caller.
getXAResource in interface javax.sql.XAConnectiongetXAResource in interface OraclePooledConnectiongetXAResource in class OracleXAConnectionjava.sql.SQLException - if a database-access error occurs