public void commit ( ) throws HeuristicRollbackException , RollbackException , HeuristicMixedException , SystemException { Transaction transaction = currentTransaction ( ) ; if ( transaction == null ) { throw new IllegalStateException ( "No active transaction" ) ; } transaction . commit ( ) ; }
Commits the current transaction if one exists .