public void commit ( ) { if ( ! active ) throw error ( "Inactive micro-transaction on commit" ) ; if ( level < 1 ) throw error ( "Unbalanced micro-transaction, level = " + level ) ; -- level ; if ( level == 0 ) { active = false ; doCommit ( ) ; } }
Commits the micro - transaction if it s a top - level micro - transaction .