![]() |
Overview Returns a hash value based on the transaction associated with the target object. Original interface CosTransactions::Coordinator Interface
Intended Usage
Each transaction has a single hash value although multiple transactions may share the same value. Hash values for transactions should be uniformly distributed.
IDL Syntax
unsigned long hash_transaction();
Input parameters
None.
Return values
- unsigned long
- A hash value based on the transaction associated with the target object.
Examples
The following examples demonstrate the usage of CosTransactions::Coordinator::hash_transaction.
C++ Example
CosTransactions::Coordinator *coord; unsigned long hashval; hashval = coord->hash_transaction();
Java Example
org.omg.CosTransactions.Coordinator coord; int hashval; hashval = coord.hash_transaction();