code: public void finish() {
  		if (mSuccessful) {
  			mDb.setTransactionSuccessful();
  		}
  		mDb.endTransaction();
  
  		if (mSuccessful) {
  			for (OnTransactionCommittedListener listener : mOnTransactionCommittedListeners) {
  				listener.onTransactionCommitted();
  			}
  		}
  	}
docs: Finish the transaction.
  This will commit or rollback the transaction depending on whether is was marked as successful or not