tyrex.tm.impl
Class CloudscapeXAResourceHelper
java.lang.Object
tyrex.tm.impl.XAResourceHelper
tyrex.tm.impl.CloudscapeXAResourceHelper
- final class CloudscapeXAResourceHelper
- extends XAResourceHelper
This class describes various methods to help the transaction
manipulate XA resources from Oracle. This class has been
tested with Oracle 8.1.6, 8.1.7, 9.0.1. For Oracle 8.1.6 the
oracle classes (classes12.zip) must be in the Tyrex classpath because
Oracle 8.1.6 requires the xid to be oracle.jdbc.xa.OracleXid.
For Oracle 8.1.7 and above the oracle classes (classes12.zip) may optionally
be in the Tyrex classpath.
- Author:
- Riad Mohammed
Method Summary |
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}). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloudscapeXAResourceHelper
public CloudscapeXAResourceHelper()
- Default constructor
useDifferentBranchesForSharedResources
public 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}).
The default implementation returns false.
- Overrides:
useDifferentBranchesForSharedResources
in class XAResourceHelper
- Returns:
- true if shared xa resources must use
different branches when enlisted in the transaction.
- See Also:
treatDifferentBranchesForSharedResourcesAsShared()
treatDifferentBranchesForSharedResourcesAsShared
public 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. This method is only used if
useDifferentBranchesForSharedResources()
returns true.
The default implementation returns false.
- Overrides:
treatDifferentBranchesForSharedResourcesAsShared
in class XAResourceHelper
- 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:
useDifferentBranchesForSharedResources()
Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.