Overview | Demands that the transaction be rolled back. |
Original interface | CosTransactions::Terminator Interface |
Intended Usage
When a transaction is rolled back, all changes to transactional objects made in the scope of this transaction (including changes made by descendant transactions) are rolled back. All resources locked by the transaction are made available to other transactions as appropriate to the degree of isolation enforced by the resources.
Note that the suspend operation of the CosTransactions::Current Interface must be used to suspend an active transaction before the rollback operation of the Terminator interface is used to rollback the transaction.
Syntax
void rollback();
Input parameters
None.
Return values
None.
Examples
The following examples demonstrate the usage of CosTransactions::Terminator::rollback.
C++ Example
{ try { CosTransactions::Control_var control; CosTransactions::Terminator_var term; ..... control = current->suspend(); term = control->get_terminator(); term->rollback(); } catch ( ......... }