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 | Interface and Description |
---|---|
static class |
Realm.Transaction.Callback
Callback invoked to notify the caller thread.
|
static interface |
Realm.Transaction.OnError
Callback invoked to notify the caller thread about error during the transaction.
|
static interface |
Realm.Transaction.OnSuccess
Callback invoked to notify the caller thread about the success of the transaction.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(Realm realm) |
void execute(Realm realm)