package i.b.a.k;

/* JADX INFO: compiled from: TableStatements.java */
/* JADX INFO: loaded from: classes.dex */
public class e {
    private final i.b.a.i.a a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final String f4282b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private final String[] f4283c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    private final String[] f4284d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    private i.b.a.i.c f4285e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    private i.b.a.i.c f4286f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private i.b.a.i.c f4287g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    private i.b.a.i.c f4288h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    private i.b.a.i.c f4289i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    private volatile String f4290j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    private volatile String f4291k;
    private volatile String l;

    public e(i.b.a.i.a aVar, String str, String[] strArr, String[] strArr2) {
        this.a = aVar;
        this.f4282b = str;
        this.f4283c = strArr;
        this.f4284d = strArr2;
    }

    public i.b.a.i.c a() {
        if (this.f4289i == null) {
            this.f4289i = this.a.e(d.i(this.f4282b));
        }
        return this.f4289i;
    }

    public i.b.a.i.c b() {
        if (this.f4288h == null) {
            i.b.a.i.c cVarE = this.a.e(d.j(this.f4282b, this.f4284d));
            synchronized (this) {
                if (this.f4288h == null) {
                    this.f4288h = cVarE;
                }
            }
            if (this.f4288h != cVarE) {
                cVarE.close();
            }
        }
        return this.f4288h;
    }

    public i.b.a.i.c c() {
        if (this.f4286f == null) {
            i.b.a.i.c cVarE = this.a.e(d.k("INSERT OR REPLACE INTO ", this.f4282b, this.f4283c));
            synchronized (this) {
                if (this.f4286f == null) {
                    this.f4286f = cVarE;
                }
            }
            if (this.f4286f != cVarE) {
                cVarE.close();
            }
        }
        return this.f4286f;
    }

    public i.b.a.i.c d() {
        if (this.f4285e == null) {
            i.b.a.i.c cVarE = this.a.e(d.k("INSERT INTO ", this.f4282b, this.f4283c));
            synchronized (this) {
                if (this.f4285e == null) {
                    this.f4285e = cVarE;
                }
            }
            if (this.f4285e != cVarE) {
                cVarE.close();
            }
        }
        return this.f4285e;
    }

    public String e() {
        if (this.f4290j == null) {
            this.f4290j = d.l(this.f4282b, "T", this.f4283c, false);
        }
        return this.f4290j;
    }

    public String f() {
        if (this.f4291k == null) {
            StringBuilder sb = new StringBuilder(e());
            sb.append("WHERE ");
            d.e(sb, "T", this.f4284d);
            this.f4291k = sb.toString();
        }
        return this.f4291k;
    }

    public String g() {
        if (this.l == null) {
            this.l = e() + "WHERE ROWID=?";
        }
        return this.l;
    }

    public i.b.a.i.c h() {
        if (this.f4287g == null) {
            i.b.a.i.c cVarE = this.a.e(d.m(this.f4282b, this.f4283c, this.f4284d));
            synchronized (this) {
                if (this.f4287g == null) {
                    this.f4287g = cVarE;
                }
            }
            if (this.f4287g != cVarE) {
                cVarE.close();
            }
        }
        return this.f4287g;
    }
}
