Coordinator::is_descendant_transaction

Overview Determines whether the transaction associated with the target object is a descendant of the transaction associated with the parameter object.
Original interface CosTransactions::Coordinator Interface


Intended Usage

A transaction is an descendant of another transaction if, and only if, the second transaction is an ancestor of the first. For an definition of ancestors of transactions, see the Coordinator::is_ancestor_transaction Operation.

Syntax

  boolean is_descendant_transaction(in Coordinator tc);

Input parameters

tc
A pointer to the Coordinator object for a transaction.

Return values

TRUE
The transaction associated with the target object is a descendant of the transaction associated with the parameter object.
FALSE
The transaction associated with the target object is not a descendant of the transaction associated with the parameter object.

Examples

The following examples demonstrate the usage of CosTransactions::Coordinator::is_descendant_transaction.

C++ Example

  CosTransactions::Coordinator *c1, *c2;
  if( c1->is_descendant_transaction(c2))
  {
      cout << "c1 is a descendant of c2" << endl;
  }
  else
  {
      cout << "c1 is not a descendant of c2" << endl;
  }
 

Related reference
CosTransactions in the transaction service



Searchable topic ID:   rcor_ctsco9
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_ctsco9.html

Library | Support | Terms of Use | Feedback