ObjectSpace :: transactionLevel - Get current transaction level
The function returns the transaction level, i.e. the nesting level of update transactions started. When no transaction is active, the function returns 0 .
// close all transactions (fragment): ObjectSpace osh;
int taCount = osh.transactionLevel();
while ( taCount-- )
osh.commitTransaction();
Return value: Transaction level ( int32 )
The transaction level identifies a transaction within a hierarchy of nested transactions. The out most transaction starts with number 1.