Package io.realm
Interface DynamicRealm.Transaction
-
- Enclosing class:
- DynamicRealm
public static interface DynamicRealm.TransactionEncapsulates 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 classDynamicRealm.Transaction.CallbackCallback invoked to notify the caller thread.static interfaceDynamicRealm.Transaction.OnErrorCallback invoked to notify the caller thread about error during the transaction.static interfaceDynamicRealm.Transaction.OnSuccessCallback 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 voidexecute(DynamicRealm realm)
-
-
-
Method Detail
-
execute
void execute(DynamicRealm realm)
-
-