package com.ss.android.ugc.aweme.friendstab.db;

import X.0BT;
import X.0BV;
import X.0BW;
import X.0BY;
import X.0Fe;
import X.0Fh;
import X.0Fk;
import X.0Fo;
import X.0Fw;
import X.0G9;
import X.0GA;
import X.1DC;
import X.C1450RiI;
import X.Eh0;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import java.util.HashMap;
import java.util.HashSet;

public final class AwemeRecordDatabase_Impl extends AwemeRecordDatabase {
    public volatile Eh0 LJIIL;

    static {
        Covode.recordClassIndex(81474);
    }

    public final 0Fw LIZ() {
        return new 0Fw(this, new HashMap(0), new HashMap(0), new String[]{"AWEME_READ_RECORD"});
    }

    public final Eh0 LJIIIIZZ() {
        Eh0 eh0;
        MethodCollector.i(16746);
        if (this.LJIIL != null) {
            Eh0 eh02 = this.LJIIL;
            MethodCollector.o(16746);
            return eh02;
        }
        synchronized (this) {
            try {
                if (this.LJIIL == null) {
                    this.LJIIL = new C1450RiI(this);
                }
                eh0 = this.LJIIL;
            } finally {
                MethodCollector.o(16746);
            }
        }
        return eh0;
    }

    public final 0BY LIZIZ(0Fe r5) {
        1DC r3 = new 1DC(r5, new 0G9() {
            static {
                Covode.recordClassIndex(81475);
            }

            public final void LIZ() {
                if (AwemeRecordDatabase_Impl.this.LJI != null) {
                    int size = AwemeRecordDatabase_Impl.this.LJI.size();
                    for (int i = 0; i < size; i++) {
                        AwemeRecordDatabase_Impl.this.LJI.get(i);
                    }
                }
            }

            public final void LJFF(0BT r1) {
                0Fh.LIZ(r1);
            }

            public final void LIZIZ(0BT r2) {
                r2.LIZJ("CREATE TABLE IF NOT EXISTS `AWEME_READ_RECORD` (`AWEME_ID` TEXT NOT NULL, `READ_TIME` INTEGER NOT NULL, `PAGE_TYPE` INTEGER NOT NULL, `REPORTED` INTEGER NOT NULL, `USER_ID` TEXT NOT NULL, PRIMARY KEY(`AWEME_ID`))");
                r2.LIZJ("CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)");
                r2.LIZJ("INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '2444039be9af87d51fa0dae5822bd377')");
            }

            public final void LIZ(0BT r4) {
                r4.LIZJ("DROP TABLE IF EXISTS `AWEME_READ_RECORD`");
                if (AwemeRecordDatabase_Impl.this.LJI != null) {
                    int size = AwemeRecordDatabase_Impl.this.LJI.size();
                    for (int i = 0; i < size; i++) {
                        AwemeRecordDatabase_Impl.this.LJI.get(i);
                    }
                }
            }

            public final void LIZJ(0BT r4) {
                AwemeRecordDatabase_Impl.this.LIZ = r4;
                AwemeRecordDatabase_Impl.this.LIZ(r4);
                if (AwemeRecordDatabase_Impl.this.LJI != null) {
                    int size = AwemeRecordDatabase_Impl.this.LJI.size();
                    for (int i = 0; i < size; i++) {
                        AwemeRecordDatabase_Impl.this.LJI.get(i);
                    }
                }
            }

            public final 0GA LJ(0BT r11) {
                HashMap hashMap = new HashMap(5);
                hashMap.put("AWEME_ID", new 0Fk("AWEME_ID", "TEXT", true, 1, (String) null, 1));
                hashMap.put("READ_TIME", new 0Fk("READ_TIME", "INTEGER", true, 0, (String) null, 1));
                hashMap.put("PAGE_TYPE", new 0Fk("PAGE_TYPE", "INTEGER", true, 0, (String) null, 1));
                hashMap.put("REPORTED", new 0Fk("REPORTED", "INTEGER", true, 0, (String) null, 1));
                hashMap.put("USER_ID", new 0Fk("USER_ID", "TEXT", true, 0, (String) null, 1));
                0Fo r4 = new 0Fo("AWEME_READ_RECORD", hashMap, new HashSet(0), new HashSet(0));
                0Fo LIZ = 0Fo.LIZ(r11, "AWEME_READ_RECORD");
                if (r4.equals(LIZ)) {
                    return new 0GA(true, (String) null);
                }
                return new 0GA(false, "AWEME_READ_RECORD(com.ss.android.ugc.aweme.friendstab.db.AwemeReadRecordEntity).\n Expected:\n" + r4 + "\n Found:\n" + LIZ);
            }
        }, "2444039be9af87d51fa0dae5822bd377", "d42a3adafdeeac79c16cbc10826d2ac2");
        0BV LIZ = 0BW.LIZ(r5.LIZIZ);
        LIZ.LIZIZ = r5.LIZJ;
        LIZ.LIZJ = r3;
        return r5.LIZ.LIZ(LIZ.LIZ());
    }
}
