P.smali

.class public Lcom/sandboxol/greendao/c/P;
.super Lcom/sandboxol/greendao/c/y;
.source "GameDiskCacheDbHelper.java"


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


# direct methods
.method private constructor <init>()V
    .registers 1

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

    return-void
.end method

.method public static declared-synchronized newInstance()Lcom/sandboxol/greendao/c/P;
    .registers 2

    const-class v0, Lcom/sandboxol/greendao/c/P;

    monitor-enter v0

    .line 1
    :try_start_3
    sget-object v1, Lcom/sandboxol/greendao/c/P;->a:Lcom/sandboxol/greendao/c/P;

    if-nez v1, :cond_e

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

    invoke-direct {v1}, Lcom/sandboxol/greendao/c/P;-><init>()V

    sput-object v1, Lcom/sandboxol/greendao/c/P;->a:Lcom/sandboxol/greendao/c/P;

    .line 3
    :cond_e
    sget-object v1, Lcom/sandboxol/greendao/c/P;->a:Lcom/sandboxol/greendao/c/P;
    :try_end_10
    .catchall {:try_start_3 .. :try_end_10} :catchall_12

    monitor-exit v0

    return-object v1

    :catchall_12
    move-exception v1

    monitor-exit v0

    throw v1
.end method


# virtual methods
.method public a(Lcom/sandboxol/greendao/entity/Game;Lcom/sandboxol/greendao/entity/GameDiskCacheInfo;)Lcom/sandboxol/greendao/entity/GameDiskCacheInfo;
    .registers 4

    if-nez p2, :cond_7

    .line 5
    new-instance p2, Lcom/sandboxol/greendao/entity/GameDiskCacheInfo;

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

    :cond_7
    if-eqz p1, :cond_33

    .line 6
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/Game;->getGameId()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Lcom/sandboxol/greendao/entity/GameDiskCacheInfo;->setGameId(Ljava/lang/String;)V

    .line 7
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/Game;->getGameCoverPic()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Lcom/sandboxol/greendao/entity/GameDiskCacheInfo;->setGameCoverPic(Ljava/lang/String;)V

    .line 8
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/Game;->getGameName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Lcom/sandboxol/greendao/entity/GameDiskCacheInfo;->setGameName(Ljava/lang/String;)V

    .line 9
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/Game;->getGameTitle()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Lcom/sandboxol/greendao/entity/GameDiskCacheInfo;->setGameTitle(Ljava/lang/String;)V

    .line 10
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/Game;->getIsNewEngine()I

    move-result v0

    invoke-virtual {p2, v0}, Lcom/sandboxol/greendao/entity/GameDiskCacheInfo;->setIsNewEngine(I)V

    .line 11
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/Game;->getIsUgcGame()I

    move-result p1

    invoke-virtual {p2, p1}, Lcom/sandboxol/greendao/entity/GameDiskCacheInfo;->setIsUgcGame(I)V

    :cond_33
    return-object p2
.end method

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

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

    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/GameDiskCacheInfo;

    return-object p1
.end method

.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/GameDiskCacheInfo;",
            ">;>;)V"
        }
    .end annotation

    .line 4
    new-instance v0, Lcom/sandboxol/greendao/c/O;

    invoke-direct {v0, p0, p1}, Lcom/sandboxol/greendao/c/O;-><init>(Lcom/sandboxol/greendao/c/P;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 a(Lcom/sandboxol/greendao/entity/GameDiskCacheInfo;)V
    .registers 3

    .line 3
    new-instance v0, Lcom/sandboxol/greendao/c/e;

    invoke-direct {v0, p0, p1}, Lcom/sandboxol/greendao/c/e;-><init>(Lcom/sandboxol/greendao/c/P;Lcom/sandboxol/greendao/entity/GameDiskCacheInfo;)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/GameDiskCacheInfo;",
            ">;)V"
        }
    .end annotation

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

    invoke-direct {v0, p0, p1, p2}, Lcom/sandboxol/greendao/c/N;-><init>(Lcom/sandboxol/greendao/c/P;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/GameDiskCacheInfo;)V
    .registers 3

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

    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;)V
    .registers 3

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

    move-result-object v0

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

    return-void
.end method

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

    .line 1
    :try_start_0
    invoke-virtual {p0}, Lcom/sandboxol/greendao/c/P;->getDao()Lcom/sandboxol/greendao/entity/GameDiskCacheInfoDao;

    move-result-object v0

    invoke-virtual {v0, p1}, Lorg/greenrobot/greendao/a;->insertOrReplace(Ljava/lang/Object;)J
    :try_end_7
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_0 .. :try_end_7} :catch_8

    goto :goto_c

    :catch_8
    move-exception p1

    .line 2
    invoke-virtual {p1}, Landroid/database/sqlite/SQLiteException;->printStackTrace()V

    :goto_c
    return-void
.end method

.method public d()V
    .registers 2

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

    move-result-object v0

    invoke-virtual {v0}, Lorg/greenrobot/greendao/a;->deleteAll()V

    return-void
.end method

.method public e()Ljava/util/List;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/sandboxol/greendao/entity/GameDiskCacheInfo;",
            ">;"
        }
    .end annotation

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

    move-result-object v0

    invoke-virtual {v0}, Lorg/greenrobot/greendao/a;->queryBuilder()Lorg/greenrobot/greendao/d/i;

    move-result-object v0

    sget-object v1, Lcom/sandboxol/greendao/entity/GameDiskCacheInfoDao$Properties;->IsNewEngine:Lorg/greenrobot/greendao/f;

    const/4 v2, 0x1

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v1, v2}, Lorg/greenrobot/greendao/f;->a(Ljava/lang/Object;)Lorg/greenrobot/greendao/d/k;

    move-result-object v1

    const/4 v2, 0x0

    new-array v2, v2, [Lorg/greenrobot/greendao/d/k;

    invoke-virtual {v0, v1, v2}, Lorg/greenrobot/greendao/d/i;->a(Lorg/greenrobot/greendao/d/k;[Lorg/greenrobot/greendao/d/k;)Lorg/greenrobot/greendao/d/i;

    invoke-virtual {v0}, Lorg/greenrobot/greendao/d/i;->c()Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method protected getDao()Lcom/sandboxol/greendao/entity/GameDiskCacheInfoDao;
    .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/GameDiskCacheInfoDao;

    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/P;->getDao()Lcom/sandboxol/greendao/entity/GameDiskCacheInfoDao;

    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;->getGameDiskCacheInfoDao()Lcom/sandboxol/greendao/entity/GameDiskCacheInfoDao;

    move-result-object p1

    return-object p1
.end method