public static interface Realm.Transaction
Using this class will automatically handle beginTransaction()
and commitTransaction()
If any exception is thrown during the transaction cancelTransaction()
will be called
instead of commitTransaction()
.
Modifier and Type | Method and Description |
---|---|
void |
execute(Realm realm) |
void execute(Realm realm)