![]() |
Overview Determines whether the target object and the parameter object both refer to the same transaction. Original interface CosTransactions::Coordinator Interface
Intended Usage
Determines whether the target object and the parameter object both refer to the same transaction.
IDL Syntax
boolean is_same_transaction(in Coordinator tc);
Input parameters
- tc
- A pointer to the Coordinator object for a transaction.
Return values
- TRUE
- The target object and the parameter object both refer to the same transaction.
- FALSE
- The target object and the parameter object do not both refer to the same transaction.
Examples
The following examples demonstrate the usage of CosTransactions::Coordinator::is_same_transaction.
C++ Example
/* C++ example */ CosTransactions::Coordinator *c1, *c2; if( c1->is_same_transaction(c2) ) { cout << "c1 represents the same transaction as c2" << endl; } else { cout << "c1 does not represent the same transaction as c2" << endl; }
Java Example
org.omg.CosTransactions.Coordinator c1, c2; if( c1.is_same_transaction(c2) ) { System.out.println ("c1 represents the same transaction as c2"); } else { System.out.println ("c1 does not represent the same transaction as c2"); }