Type Reason Java.Lang.IllegalStateException if the current thread is not in a transaction or the transaction is already marked as successful.
Marks the current transaction as successful. Do not do any more database work between calling this and calling endTransaction. Do as little non-database work as possible in that situation too. If any errors are encountered between this and endTransaction the transaction will still be committed.