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