Package io.realm
Interface DynamicRealm.Transaction
-
- Enclosing class:
- DynamicRealm
public static interface DynamicRealm.Transaction
Encapsulates a Realm transaction.Using this class will automatically handle
BaseRealm.beginTransaction()
andBaseRealm.commitTransaction()
If any exception is thrown during the transactionBaseRealm.cancelTransaction()
will be called instead ofBaseRealm.commitTransaction()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface 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.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
execute(DynamicRealm realm)
-
-
-
Method Detail
-
execute
void execute(DynamicRealm realm)
-
-