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() and BaseRealm.commitTransaction() If any exception is thrown during the transaction BaseRealm.cancelTransaction() will be called instead of BaseRealm.commitTransaction().

    • Method Detail

      • execute

        void execute​(Realm realm)