tyrex.tm.impl
public final class OracleXAResourceHelper extends XAResourceHelper
Field Summary | |
---|---|
static String | XID_CLASS_NAME
The name of the XID implementation class required by Oracle 8.1.6.
|
Constructor Summary | |
---|---|
OracleXAResourceHelper()
Default constructor |
Method Summary | |
---|---|
String | getXAErrorString(XAException xaException)
Return the oracle error code as a string if the exception is
_oracleXAExceptionClassName
otherwise return null.
|
Xid | getXid(XAResource xaResource, Xid xid)
Create the xid for use with the XA resource from the specified xid.
|
boolean | treatDifferentBranchesForSharedResourcesAsShared()
Return true if shared xa resources can be treated as shared
even if they use different branches so that these xa resources
are not prepared/committed separately even if they don't have the same
xid. |
boolean | useDifferentBranchesForSharedResources()
Return true if shared xa resources must use
different branches when enlisted in the transaction.The
resource may still be treated as shared in that prepare/commit
is only called once on a single xa resource
(@see #treatDifferentBranchesForSharedResourcesAsShared}).
|
Parameters: xaException the XAException
Returns: an
The default implementation is to return the xid.
Parameters: xaResource The XAResource xid The xid
Throws: XAException An error occured obtaining the xid
Returns: true if shared xa resources can be treated as shared even if they use different branches so that these xa resources are not prepared separately even if they don't have the same xid.
See Also: OracleXAResourceHelper
Returns: true if shared xa resources must use different branches when enlisted in the transaction.
See Also: OracleXAResourceHelper