Package io.realm
Interface Realm.Transaction
-
- Enclosing class:
- Realm
public static interface Realm.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
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.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
execute(Realm realm)
-
-
-
Method Detail
-
execute
void execute(Realm realm)
-
-