SQLStatement$1.smali

.class Lcom/litesuits/orm/db/assit/SQLStatement$1;
.super Ljava/lang/Object;
.source "SQLStatement.java"

# interfaces
.implements Lcom/litesuits/orm/db/assit/Transaction$Worker;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/litesuits/orm/db/assit/SQLStatement;->execDeleteCollectionWithMapping(Landroid/database/sqlite/SQLiteDatabase;Ljava/util/Collection;Lcom/litesuits/orm/db/TableManager;)I
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lcom/litesuits/orm/db/assit/Transaction$Worker<",
        "Ljava/lang/Boolean;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/litesuits/orm/db/assit/SQLStatement;

.field final synthetic val$collection:Ljava/util/Collection;

.field final synthetic val$tableManager:Lcom/litesuits/orm/db/TableManager;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method constructor <init>(Lcom/litesuits/orm/db/assit/SQLStatement;Ljava/util/Collection;Lcom/litesuits/orm/db/TableManager;)V
    .registers 4

    .line 364
    iput-object p1, p0, Lcom/litesuits/orm/db/assit/SQLStatement$1;->this$0:Lcom/litesuits/orm/db/assit/SQLStatement;

    iput-object p2, p0, Lcom/litesuits/orm/db/assit/SQLStatement$1;->val$collection:Ljava/util/Collection;

    iput-object p3, p0, Lcom/litesuits/orm/db/assit/SQLStatement$1;->val$tableManager:Lcom/litesuits/orm/db/TableManager;

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

    return-void
.end method


# virtual methods
.method public doTransaction(Landroid/database/sqlite/SQLiteDatabase;)Ljava/lang/Boolean;
    .registers 11
    .param p1, "db"    # Landroid/database/sqlite/SQLiteDatabase;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 367
    const/4 v0, 0x1

    .line 368
    .local v0, "mapTableCheck":Z
    iget-object v1, p0, Lcom/litesuits/orm/db/assit/SQLStatement$1;->val$collection:Ljava/util/Collection;

    invoke-interface {v1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .local v1, "i$":Ljava/util/Iterator;
    :goto_7
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1e

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    .line 370
    .local v8, "o":Ljava/lang/Object;
    iget-object v2, p0, Lcom/litesuits/orm/db/assit/SQLStatement$1;->this$0:Lcom/litesuits/orm/db/assit/SQLStatement;

    const/4 v4, 0x0

    iget-object v7, p0, Lcom/litesuits/orm/db/assit/SQLStatement$1;->val$tableManager:Lcom/litesuits/orm/db/TableManager;

    move-object v3, v8

    move v5, v0

    move-object v6, p1

    invoke-static/range {v2 .. v7}, Lcom/litesuits/orm/db/assit/SQLStatement;->access$000(Lcom/litesuits/orm/db/assit/SQLStatement;Ljava/lang/Object;ZZLandroid/database/sqlite/SQLiteDatabase;Lcom/litesuits/orm/db/TableManager;)V

    .line 371
    const/4 v0, 0x0

    .line 372
    .end local v8    # "o":Ljava/lang/Object;
    goto :goto_7

    .line 373
    .end local v1    # "i$":Ljava/util/Iterator;
    :cond_1e
    const/4 v1, 0x1

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    return-object v1
.end method

.method public bridge synthetic doTransaction(Landroid/database/sqlite/SQLiteDatabase;)Ljava/lang/Object;
    .registers 3
    .param p1, "x0"    # Landroid/database/sqlite/SQLiteDatabase;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 364
    invoke-virtual {p0, p1}, Lcom/litesuits/orm/db/assit/SQLStatement$1;->doTransaction(Landroid/database/sqlite/SQLiteDatabase;)Ljava/lang/Boolean;

    move-result-object v0

    return-object v0
.end method