M.smali

.class public Lcom/sandboxol/greendao/c/M;
.super Lcom/sandboxol/greendao/c/y;
.source "GameDetailDbHelper.java"


# static fields
.field private static a:Lcom/sandboxol/greendao/c/M;


# direct methods
.method public constructor <init>(Lcom/sandboxol/greendao/e/h;)V
    .registers 2

    .line 1
    invoke-direct {p0, p1}, Lcom/sandboxol/greendao/c/y;-><init>(Lcom/sandboxol/greendao/e/h;)V

    return-void
.end method

.method static synthetic a(Lcom/sandboxol/greendao/c/M;Ljava/lang/String;)Lcom/sandboxol/greendao/entity/Game;
    .registers 2

    .line 1
    invoke-direct {p0, p1}, Lcom/sandboxol/greendao/c/M;->a(Ljava/lang/String;)Lcom/sandboxol/greendao/entity/Game;

    move-result-object p0

    return-object p0
.end method

.method private a(Ljava/lang/String;)Lcom/sandboxol/greendao/entity/Game;
    .registers 3

    .line 4
    invoke-virtual {p0}, Lcom/sandboxol/greendao/c/M;->getDao()Lcom/sandboxol/greendao/entity/GameDao;

    move-result-object v0

    invoke-virtual {v0, p1}, Lorg/greenrobot/greendao/a;->load(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/sandboxol/greendao/entity/Game;

    if-eqz p1, :cond_13

    .line 5
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/Game;->isInsertedGameDetail()Z

    move-result v0

    if-eqz v0, :cond_13

    return-object p1

    :cond_13
    const/4 p1, 0x0

    return-object p1
.end method

.method public static getInstance()Lcom/sandboxol/greendao/c/M;
    .registers 2

    .line 1
    sget-object v0, Lcom/sandboxol/greendao/c/M;->a:Lcom/sandboxol/greendao/c/M;

    if-nez v0, :cond_f

    .line 2
    new-instance v0, Lcom/sandboxol/greendao/c/M;

    invoke-static {}, Lcom/sandboxol/greendao/e/f;->a()Lcom/sandboxol/greendao/e/f;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/sandboxol/greendao/c/M;-><init>(Lcom/sandboxol/greendao/e/h;)V

    sput-object v0, Lcom/sandboxol/greendao/c/M;->a:Lcom/sandboxol/greendao/c/M;

    .line 3
    :cond_f
    sget-object v0, Lcom/sandboxol/greendao/c/M;->a:Lcom/sandboxol/greendao/c/M;

    return-object v0
.end method


# virtual methods
.method public a(Lcom/sandboxol/greendao/a/c;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/sandboxol/greendao/a/c<",
            "Ljava/util/List<",
            "Lcom/sandboxol/greendao/entity/Game;",
            ">;>;)V"
        }
    .end annotation

    .line 6
    new-instance v0, Lcom/sandboxol/greendao/c/K;

    invoke-direct {v0, p0, p1}, Lcom/sandboxol/greendao/c/K;-><init>(Lcom/sandboxol/greendao/c/M;Lcom/sandboxol/greendao/a/c;)V

    invoke-virtual {p0, v0}, Lcom/sandboxol/greendao/c/y;->postSync(Lcom/sandboxol/greendao/e/i;)V

    return-void
.end method

.method public a(Lcom/sandboxol/greendao/entity/Game;)V
    .registers 3

    if-nez p1, :cond_3

    return-void

    .line 3
    :cond_3
    new-instance v0, Lcom/sandboxol/greendao/c/d;

    invoke-direct {v0, p0, p1}, Lcom/sandboxol/greendao/c/d;-><init>(Lcom/sandboxol/greendao/c/M;Lcom/sandboxol/greendao/entity/Game;)V

    invoke-virtual {p0, v0}, Lcom/sandboxol/greendao/c/y;->post(Ljava/lang/Runnable;)V

    return-void
.end method

.method public a(Ljava/lang/String;Lcom/sandboxol/greendao/a/c;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Lcom/sandboxol/greendao/a/c<",
            "Lcom/sandboxol/greendao/entity/Game;",
            ">;)V"
        }
    .end annotation

    .line 2
    new-instance v0, Lcom/sandboxol/greendao/c/I;

    invoke-direct {v0, p0, p1, p2}, Lcom/sandboxol/greendao/c/I;-><init>(Lcom/sandboxol/greendao/c/M;Ljava/lang/String;Lcom/sandboxol/greendao/a/c;)V

    invoke-virtual {p0, v0}, Lcom/sandboxol/greendao/c/y;->post(Lcom/sandboxol/greendao/e/g;)V

    return-void
.end method

.method public b(Lcom/sandboxol/greendao/entity/Game;)V
    .registers 3

    const/4 v0, 0x1

    .line 2
    invoke-virtual {p1, v0}, Lcom/sandboxol/greendao/entity/Game;->setInsertedGameDetail(Z)V

    .line 3
    invoke-virtual {p0}, Lcom/sandboxol/greendao/c/M;->getDao()Lcom/sandboxol/greendao/entity/GameDao;

    move-result-object v0

    invoke-virtual {v0, p1}, Lorg/greenrobot/greendao/a;->insertOrReplace(Ljava/lang/Object;)J

    return-void
.end method

.method public b(Ljava/lang/String;Lcom/sandboxol/greendao/a/c;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Lcom/sandboxol/greendao/a/c<",
            "Lcom/sandboxol/greendao/entity/Game;",
            ">;)V"
        }
    .end annotation

    .line 1
    new-instance v0, Lcom/sandboxol/greendao/c/J;

    invoke-direct {v0, p0, p1, p2}, Lcom/sandboxol/greendao/c/J;-><init>(Lcom/sandboxol/greendao/c/M;Ljava/lang/String;Lcom/sandboxol/greendao/a/c;)V

    invoke-virtual {p0, v0}, Lcom/sandboxol/greendao/c/y;->postSync(Lcom/sandboxol/greendao/e/i;)V

    return-void
.end method

.method public synthetic c(Lcom/sandboxol/greendao/entity/Game;)V
    .registers 3

    const/4 v0, 0x1

    .line 1
    invoke-virtual {p1, v0}, Lcom/sandboxol/greendao/entity/Game;->setInsertedGameDetail(Z)V

    .line 2
    invoke-virtual {p0}, Lcom/sandboxol/greendao/c/M;->getDao()Lcom/sandboxol/greendao/entity/GameDao;

    move-result-object v0

    invoke-virtual {v0, p1}, Lorg/greenrobot/greendao/a;->insertOrReplace(Ljava/lang/Object;)J

    return-void
.end method

.method public d()V
    .registers 3

    .line 1
    new-instance v0, Ljava/util/concurrent/CountDownLatch;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V

    .line 2
    new-instance v1, Lcom/sandboxol/greendao/c/L;

    invoke-direct {v1, p0, v0}, Lcom/sandboxol/greendao/c/L;-><init>(Lcom/sandboxol/greendao/c/M;Ljava/util/concurrent/CountDownLatch;)V

    invoke-virtual {p0, v1}, Lcom/sandboxol/greendao/c/y;->postSync(Lcom/sandboxol/greendao/e/i;)V

    .line 3
    :try_start_e
    invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->await()V
    :try_end_11
    .catch Ljava/lang/InterruptedException; {:try_start_e .. :try_end_11} :catch_12

    goto :goto_16

    :catch_12
    move-exception v0

    .line 4
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    :goto_16
    return-void
.end method

.method protected getDao()Lcom/sandboxol/greendao/entity/GameDao;
    .registers 2

    .line 2
    invoke-super {p0}, Lcom/sandboxol/greendao/c/y;->getDao()Lorg/greenrobot/greendao/a;

    move-result-object v0

    check-cast v0, Lcom/sandboxol/greendao/entity/GameDao;

    return-object v0
.end method

.method protected bridge synthetic getDao()Lorg/greenrobot/greendao/a;
    .registers 2

    .line 1
    invoke-virtual {p0}, Lcom/sandboxol/greendao/c/M;->getDao()Lcom/sandboxol/greendao/entity/GameDao;

    move-result-object v0

    return-object v0
.end method

.method protected init(Lcom/sandboxol/greendao/entity/DaoSession;)Lorg/greenrobot/greendao/a;
    .registers 2

    .line 1
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/DaoSession;->getGameDao()Lcom/sandboxol/greendao/entity/GameDao;

    move-result-object p1

    return-object p1
.end method