Overview | Determines whether the transaction associated with the target object is a top-level transaction. |
Original interface | CosTransactions::Coordinator Interface |
Intended Usage
Determines whether the transaction associated with the target object is a top-level transaction. A transaction is a top-level transaction if it has no parent.
Syntax
boolean is_top_level_transaction();
Input parameters
Return values
Examples
The following example demonstrates the usage of CosTransactions::Coordinator::is_top_level_transaction.
C++ Example
CosTransactions::Coordinator *coord; if( coord->is_top_level_transaction() ) { cout << "Coordinator represents a top-level transaction" << endl; } else { cout << "Coordinator represents a subtransaction" << endl; }