package f5;

import androidx.sqlite.db.SupportSQLiteStatement;
import java.util.Iterator;

/* loaded from: classes.dex */
public abstract class j extends z {
    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public j(r database) {
        super(database);
        kotlin.jvm.internal.t.g(database, "database");
    }

    protected abstract void i(SupportSQLiteStatement supportSQLiteStatement, Object obj);

    public final void j(Iterable entities) {
        kotlin.jvm.internal.t.g(entities, "entities");
        SupportSQLiteStatement b10 = b();
        try {
            Iterator it = entities.iterator();
            while (it.hasNext()) {
                i(b10, it.next());
                b10.executeInsert();
            }
        } finally {
            h(b10);
        }
    }

    public final void k(Object obj) {
        SupportSQLiteStatement b10 = b();
        try {
            i(b10, obj);
            b10.executeInsert();
        } finally {
            h(b10);
        }
    }
}
