UserCacheDao.smali

.class public Lcom/sandboxol/greendao/entity/UserCacheDao;
.super Lorg/greenrobot/greendao/a;
.source "UserCacheDao.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/sandboxol/greendao/entity/UserCacheDao$Properties;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lorg/greenrobot/greendao/a<",
        "Lcom/sandboxol/greendao/entity/UserCache;",
        "Ljava/lang/Long;",
        ">;"
    }
.end annotation


# static fields
.field public static final TABLENAME:Ljava/lang/String; = "USER_CACHE"


# direct methods
.method public constructor <init>(Lorg/greenrobot/greendao/c/a;)V
    .registers 2

    .line 1
    invoke-direct {p0, p1}, Lorg/greenrobot/greendao/a;-><init>(Lorg/greenrobot/greendao/c/a;)V

    return-void
.end method

.method public constructor <init>(Lorg/greenrobot/greendao/c/a;Lcom/sandboxol/greendao/entity/DaoSession;)V
    .registers 3

    .line 2
    invoke-direct {p0, p1, p2}, Lorg/greenrobot/greendao/a;-><init>(Lorg/greenrobot/greendao/c/a;Lorg/greenrobot/greendao/c;)V

    return-void
.end method

.method public static createTable(Lorg/greenrobot/greendao/b/a;Z)V
    .registers 4

    if-eqz p1, :cond_5

    const-string p1, "IF NOT EXISTS "

    goto :goto_7

    :cond_5
    const-string p1, ""

    .line 1
    :goto_7
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "CREATE TABLE "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "\"USER_CACHE\" (\"_id\" INTEGER PRIMARY KEY NOT NULL ,\"IS_SHOW_GOLD_DIAMOND_DIALOG\" INTEGER NOT NULL ,\"IS_SHOW_PASSWORD_SETTING_DIALOG\" INTEGER NOT NULL ,\"IS_DIAMONDS_OVER100\" INTEGER NOT NULL ,\"IS_EXIST_GAME_PAY\" INTEGER NOT NULL );"

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-interface {p0, p1}, Lorg/greenrobot/greendao/b/a;->c(Ljava/lang/String;)V

    return-void
.end method

.method public static dropTable(Lorg/greenrobot/greendao/b/a;Z)V
    .registers 4

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "DROP TABLE "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    if-eqz p1, :cond_f

    const-string p1, "IF EXISTS "

    goto :goto_11

    :cond_f
    const-string p1, ""

    :goto_11
    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "\"USER_CACHE\""

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 2
    invoke-interface {p0, p1}, Lorg/greenrobot/greendao/b/a;->c(Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method protected final bindValues(Landroid/database/sqlite/SQLiteStatement;Lcom/sandboxol/greendao/entity/UserCache;)V
    .registers 10

    .line 9
    invoke-virtual {p1}, Landroid/database/sqlite/SQLiteStatement;->clearBindings()V

    .line 10
    invoke-virtual {p2}, Lcom/sandboxol/greendao/entity/UserCache;->getUserId()J

    move-result-wide v0

    const/4 v2, 0x1

    invoke-virtual {p1, v2, v0, v1}, Landroid/database/sqlite/SQLiteStatement;->bindLong(IJ)V

    .line 11
    invoke-virtual {p2}, Lcom/sandboxol/greendao/entity/UserCache;->getIsShowGoldDiamondDialog()Z

    move-result v0

    const-wide/16 v1, 0x1

    const-wide/16 v3, 0x0

    if-eqz v0, :cond_17

    move-wide v5, v1

    goto :goto_18

    :cond_17
    move-wide v5, v3

    :goto_18
    const/4 v0, 0x2

    invoke-virtual {p1, v0, v5, v6}, Landroid/database/sqlite/SQLiteStatement;->bindLong(IJ)V

    const/4 v0, 0x3

    .line 12
    invoke-virtual {p2}, Lcom/sandboxol/greendao/entity/UserCache;->getIsShowPasswordSettingDialog()Z

    move-result v5

    if-eqz v5, :cond_25

    move-wide v5, v1

    goto :goto_26

    :cond_25
    move-wide v5, v3

    :goto_26
    invoke-virtual {p1, v0, v5, v6}, Landroid/database/sqlite/SQLiteStatement;->bindLong(IJ)V

    const/4 v0, 0x4

    .line 13
    invoke-virtual {p2}, Lcom/sandboxol/greendao/entity/UserCache;->getIsDiamondsOver100()Z

    move-result v5

    if-eqz v5, :cond_32

    move-wide v5, v1

    goto :goto_33

    :cond_32
    move-wide v5, v3

    :goto_33
    invoke-virtual {p1, v0, v5, v6}, Landroid/database/sqlite/SQLiteStatement;->bindLong(IJ)V

    const/4 v0, 0x5

    .line 14
    invoke-virtual {p2}, Lcom/sandboxol/greendao/entity/UserCache;->getIsExistGamePay()Z

    move-result p2

    if-eqz p2, :cond_3e

    goto :goto_3f

    :cond_3e
    move-wide v1, v3

    :goto_3f
    invoke-virtual {p1, v0, v1, v2}, Landroid/database/sqlite/SQLiteStatement;->bindLong(IJ)V

    return-void
.end method

.method protected bridge synthetic bindValues(Landroid/database/sqlite/SQLiteStatement;Ljava/lang/Object;)V
    .registers 3

    .line 1
    check-cast p2, Lcom/sandboxol/greendao/entity/UserCache;

    invoke-virtual {p0, p1, p2}, Lcom/sandboxol/greendao/entity/UserCacheDao;->bindValues(Landroid/database/sqlite/SQLiteStatement;Lcom/sandboxol/greendao/entity/UserCache;)V

    return-void
.end method

.method protected final bindValues(Lorg/greenrobot/greendao/b/c;Lcom/sandboxol/greendao/entity/UserCache;)V
    .registers 10

    .line 3
    invoke-interface {p1}, Lorg/greenrobot/greendao/b/c;->c()V

    .line 4
    invoke-virtual {p2}, Lcom/sandboxol/greendao/entity/UserCache;->getUserId()J

    move-result-wide v0

    const/4 v2, 0x1

    invoke-interface {p1, v2, v0, v1}, Lorg/greenrobot/greendao/b/c;->c(IJ)V

    .line 5
    invoke-virtual {p2}, Lcom/sandboxol/greendao/entity/UserCache;->getIsShowGoldDiamondDialog()Z

    move-result v0

    const-wide/16 v1, 0x1

    const-wide/16 v3, 0x0

    if-eqz v0, :cond_17

    move-wide v5, v1

    goto :goto_18

    :cond_17
    move-wide v5, v3

    :goto_18
    const/4 v0, 0x2

    invoke-interface {p1, v0, v5, v6}, Lorg/greenrobot/greendao/b/c;->c(IJ)V

    const/4 v0, 0x3

    .line 6
    invoke-virtual {p2}, Lcom/sandboxol/greendao/entity/UserCache;->getIsShowPasswordSettingDialog()Z

    move-result v5

    if-eqz v5, :cond_25

    move-wide v5, v1

    goto :goto_26

    :cond_25
    move-wide v5, v3

    :goto_26
    invoke-interface {p1, v0, v5, v6}, Lorg/greenrobot/greendao/b/c;->c(IJ)V

    const/4 v0, 0x4

    .line 7
    invoke-virtual {p2}, Lcom/sandboxol/greendao/entity/UserCache;->getIsDiamondsOver100()Z

    move-result v5

    if-eqz v5, :cond_32

    move-wide v5, v1

    goto :goto_33

    :cond_32
    move-wide v5, v3

    :goto_33
    invoke-interface {p1, v0, v5, v6}, Lorg/greenrobot/greendao/b/c;->c(IJ)V

    const/4 v0, 0x5

    .line 8
    invoke-virtual {p2}, Lcom/sandboxol/greendao/entity/UserCache;->getIsExistGamePay()Z

    move-result p2

    if-eqz p2, :cond_3e

    goto :goto_3f

    :cond_3e
    move-wide v1, v3

    :goto_3f
    invoke-interface {p1, v0, v1, v2}, Lorg/greenrobot/greendao/b/c;->c(IJ)V

    return-void
.end method

.method protected bridge synthetic bindValues(Lorg/greenrobot/greendao/b/c;Ljava/lang/Object;)V
    .registers 3

    .line 2
    check-cast p2, Lcom/sandboxol/greendao/entity/UserCache;

    invoke-virtual {p0, p1, p2}, Lcom/sandboxol/greendao/entity/UserCacheDao;->bindValues(Lorg/greenrobot/greendao/b/c;Lcom/sandboxol/greendao/entity/UserCache;)V

    return-void
.end method

.method public getKey(Lcom/sandboxol/greendao/entity/UserCache;)Ljava/lang/Long;
    .registers 4

    if-eqz p1, :cond_b

    .line 2
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/UserCache;->getUserId()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    return-object p1

    :cond_b
    const/4 p1, 0x0

    return-object p1
.end method

.method public bridge synthetic getKey(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 2

    .line 1
    check-cast p1, Lcom/sandboxol/greendao/entity/UserCache;

    invoke-virtual {p0, p1}, Lcom/sandboxol/greendao/entity/UserCacheDao;->getKey(Lcom/sandboxol/greendao/entity/UserCache;)Ljava/lang/Long;

    move-result-object p1

    return-object p1
.end method

.method public hasKey(Lcom/sandboxol/greendao/entity/UserCache;)Z
    .registers 3

    .line 2
    new-instance p1, Ljava/lang/UnsupportedOperationException;

    const-string v0, "Unsupported for entities with a non-null key"

    invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public bridge synthetic hasKey(Ljava/lang/Object;)Z
    .registers 2

    .line 1
    check-cast p1, Lcom/sandboxol/greendao/entity/UserCache;

    invoke-virtual {p0, p1}, Lcom/sandboxol/greendao/entity/UserCacheDao;->hasKey(Lcom/sandboxol/greendao/entity/UserCache;)Z

    move-result p1

    return p1
.end method

.method protected final isEntityUpdateable()Z
    .registers 2

    const/4 v0, 0x1

    return v0
.end method

.method public readEntity(Landroid/database/Cursor;I)Lcom/sandboxol/greendao/entity/UserCache;
    .registers 4

    .line 3
    new-instance v0, Lcom/sandboxol/greendao/entity/UserCache;

    invoke-direct {v0}, Lcom/sandboxol/greendao/entity/UserCache;-><init>()V

    .line 4
    invoke-virtual {p0, p1, v0, p2}, Lcom/sandboxol/greendao/entity/UserCacheDao;->readEntity(Landroid/database/Cursor;Lcom/sandboxol/greendao/entity/UserCache;I)V

    return-object v0
.end method

.method public bridge synthetic readEntity(Landroid/database/Cursor;I)Ljava/lang/Object;
    .registers 3

    .line 1
    invoke-virtual {p0, p1, p2}, Lcom/sandboxol/greendao/entity/UserCacheDao;->readEntity(Landroid/database/Cursor;I)Lcom/sandboxol/greendao/entity/UserCache;

    move-result-object p1

    return-object p1
.end method

.method public readEntity(Landroid/database/Cursor;Lcom/sandboxol/greendao/entity/UserCache;I)V
    .registers 7

    add-int/lit8 v0, p3, 0x0

    .line 5
    invoke-interface {p1, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    invoke-virtual {p2, v0, v1}, Lcom/sandboxol/greendao/entity/UserCache;->setUserId(J)V

    add-int/lit8 v0, p3, 0x1

    .line 6
    invoke-interface {p1, v0}, Landroid/database/Cursor;->getShort(I)S

    move-result v0

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-eqz v0, :cond_15

    const/4 v0, 0x1

    goto :goto_16

    :cond_15
    const/4 v0, 0x0

    :goto_16
    invoke-virtual {p2, v0}, Lcom/sandboxol/greendao/entity/UserCache;->setIsShowGoldDiamondDialog(Z)V

    add-int/lit8 v0, p3, 0x2

    .line 7
    invoke-interface {p1, v0}, Landroid/database/Cursor;->getShort(I)S

    move-result v0

    if-eqz v0, :cond_23

    const/4 v0, 0x1

    goto :goto_24

    :cond_23
    const/4 v0, 0x0

    :goto_24
    invoke-virtual {p2, v0}, Lcom/sandboxol/greendao/entity/UserCache;->setIsShowPasswordSettingDialog(Z)V

    add-int/lit8 v0, p3, 0x3

    .line 8
    invoke-interface {p1, v0}, Landroid/database/Cursor;->getShort(I)S

    move-result v0

    if-eqz v0, :cond_31

    const/4 v0, 0x1

    goto :goto_32

    :cond_31
    const/4 v0, 0x0

    :goto_32
    invoke-virtual {p2, v0}, Lcom/sandboxol/greendao/entity/UserCache;->setIsDiamondsOver100(Z)V

    add-int/lit8 p3, p3, 0x4

    .line 9
    invoke-interface {p1, p3}, Landroid/database/Cursor;->getShort(I)S

    move-result p1

    if-eqz p1, :cond_3e

    goto :goto_3f

    :cond_3e
    const/4 v1, 0x0

    :goto_3f
    invoke-virtual {p2, v1}, Lcom/sandboxol/greendao/entity/UserCache;->setIsExistGamePay(Z)V

    return-void
.end method

.method public bridge synthetic readEntity(Landroid/database/Cursor;Ljava/lang/Object;I)V
    .registers 4

    .line 2
    check-cast p2, Lcom/sandboxol/greendao/entity/UserCache;

    invoke-virtual {p0, p1, p2, p3}, Lcom/sandboxol/greendao/entity/UserCacheDao;->readEntity(Landroid/database/Cursor;Lcom/sandboxol/greendao/entity/UserCache;I)V

    return-void
.end method

.method public readKey(Landroid/database/Cursor;I)Ljava/lang/Long;
    .registers 3

    add-int/lit8 p2, p2, 0x0

    .line 2
    invoke-interface {p1, p2}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide p1

    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    return-object p1
.end method

.method public bridge synthetic readKey(Landroid/database/Cursor;I)Ljava/lang/Object;
    .registers 3

    .line 1
    invoke-virtual {p0, p1, p2}, Lcom/sandboxol/greendao/entity/UserCacheDao;->readKey(Landroid/database/Cursor;I)Ljava/lang/Long;

    move-result-object p1

    return-object p1
.end method

.method protected final updateKeyAfterInsert(Lcom/sandboxol/greendao/entity/UserCache;J)Ljava/lang/Long;
    .registers 4

    .line 2
    invoke-virtual {p1, p2, p3}, Lcom/sandboxol/greendao/entity/UserCache;->setUserId(J)V

    .line 3
    invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    return-object p1
.end method

.method protected bridge synthetic updateKeyAfterInsert(Ljava/lang/Object;J)Ljava/lang/Object;
    .registers 4

    .line 1
    check-cast p1, Lcom/sandboxol/greendao/entity/UserCache;

    invoke-virtual {p0, p1, p2, p3}, Lcom/sandboxol/greendao/entity/UserCacheDao;->updateKeyAfterInsert(Lcom/sandboxol/greendao/entity/UserCache;J)Ljava/lang/Long;

    move-result-object p1

    return-object p1
.end method