Room-based implementation of Transaction.
Ends the transaction. If setSuccessful() was called, the transaction will be committed; otherwise it will be rolled back.
Sets the transaction as successful. If not called, the transaction will be rolled back when end is called.