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