public void commit(){
  for (  TransactionLifecycleListener l : lifecycleListeners)   l.onTxCommit(this);
  if (logger.isLoggable(Level.FINE))   logger.fine("transaction " + txNum + " committed");
}

public void commit ( ) { for ( TransactionLifecycleListener l : lifecycleListeners ) l . onTxCommit ( this ) ; if ( logger . isLoggable ( Level . FINE ) ) logger . fine ( "transaction " + txNum + " committed" ) ; }
commits the current transaction . flushes all modified blocks ( and their log records ) , writes and flushes a commit record to the log , releases all locks , and unpins any pinned blocks .
