![]() |
Overview Returns to a caller the status of the parent transaction of the transaction associated with the target object. Original interface CosTransactions::Coordinator Interface
Intended Usage
If the transaction associated with the target object is a top-level transaction, this operation is equivalent to the Coordinator::get_status Operation.
If the transaction is not a top-level transaction, this operation returns the status of the parent of the transaction associated with the target object.
IDL Syntax
Status get_parent_status();
Input parameters
None.
Return values
- Status
- The status of the parent transaction of the transaction associated with the target object.
Examples
The following examples demonstrate the usage of CosTransactions::Coordinator::get_parent_status.
C++ Example
CosTransactions::Coordinator *coord; CosTransactions::Status *status; status = coord->get_parent_status();
Java Example
org.omg.CosTransactions.Coordinator coord; org.omg.CosTransactions.Status status; status = coord.get_parent_status();