tyrex.tm.impl

Class InformixXAResourceHelper

public final class InformixXAResourceHelper extends XAResourceHelper

This class describes various methods to help the transaction manipulate XA resources from Informix.

Author: Riad Mohammed

Constructor Summary
InformixXAResourceHelper()
Default constructor
Method Summary
booleantreatDifferentBranchesForSharedResourcesAsShared()
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.
booleanuseDifferentBranchesForSharedResources()
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}).

Constructor Detail

InformixXAResourceHelper

public InformixXAResourceHelper()
Default constructor

Method Detail

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 InformixXAResourceHelper returns true. The default implementation returns false.

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: InformixXAResourceHelper

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.

Returns: true if shared xa resources must use different branches when enlisted in the transaction.

See Also: InformixXAResourceHelper

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.