BaseDaoImpl$4.smali
.class Lcom/j256/ormlite/dao/BaseDaoImpl$4;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/j256/ormlite/dao/CloseableIterable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/j256/ormlite/dao/BaseDaoImpl;->getWrappedIterable(Lcom/j256/ormlite/stmt/PreparedQuery;)Lcom/j256/ormlite/dao/CloseableWrappedIterable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/j256/ormlite/dao/CloseableIterable<",
"TT;>;"
}
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/j256/ormlite/dao/BaseDaoImpl;
.field public final synthetic val$preparedQuery:Lcom/j256/ormlite/stmt/PreparedQuery;
# direct methods
.method public constructor <init>(Lcom/j256/ormlite/dao/BaseDaoImpl;Lcom/j256/ormlite/stmt/PreparedQuery;)V
.registers 3
iput-object p1, p0, Lcom/j256/ormlite/dao/BaseDaoImpl$4;->this$0:Lcom/j256/ormlite/dao/BaseDaoImpl;
iput-object p2, p0, Lcom/j256/ormlite/dao/BaseDaoImpl$4;->val$preparedQuery:Lcom/j256/ormlite/stmt/PreparedQuery;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public closeableIterator()Lcom/j256/ormlite/dao/CloseableIterator;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/j256/ormlite/dao/CloseableIterator<",
"TT;>;"
}
.end annotation
.line 1
:try_start_0
iget-object v0, p0, Lcom/j256/ormlite/dao/BaseDaoImpl$4;->this$0:Lcom/j256/ormlite/dao/BaseDaoImpl;
iget-object v1, p0, Lcom/j256/ormlite/dao/BaseDaoImpl$4;->val$preparedQuery:Lcom/j256/ormlite/stmt/PreparedQuery;
const/4 v2, -0x1
# invokes: Lcom/j256/ormlite/dao/BaseDaoImpl;->createIterator(Lcom/j256/ormlite/stmt/PreparedQuery;I)Lcom/j256/ormlite/dao/CloseableIterator;
invoke-static {v0, v1, v2}, Lcom/j256/ormlite/dao/BaseDaoImpl;->access$200(Lcom/j256/ormlite/dao/BaseDaoImpl;Lcom/j256/ormlite/stmt/PreparedQuery;I)Lcom/j256/ormlite/dao/CloseableIterator;
move-result-object v0
:try_end_9
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_9} :catch_a
return-object v0
:catch_a
move-exception v0
.line 2
new-instance v1, Ljava/lang/IllegalStateException;
const-string v2, "Could not build prepared-query iterator for "
.line 3
invoke-static {v2}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
.line 4
iget-object v3, p0, Lcom/j256/ormlite/dao/BaseDaoImpl$4;->this$0:Lcom/j256/ormlite/dao/BaseDaoImpl;
iget-object v3, v3, Lcom/j256/ormlite/dao/BaseDaoImpl;->dataClass:Ljava/lang/Class;
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method
.method public iterator()Ljava/util/Iterator;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"TT;>;"
}
.end annotation
invoke-virtual {p0}, Lcom/j256/ormlite/dao/BaseDaoImpl$4;->closeableIterator()Lcom/j256/ormlite/dao/CloseableIterator;
move-result-object v0
return-object v0
.end method