SelectIterator.smali
.class public Lcom/j256/ormlite/stmt/SelectIterator;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/j256/ormlite/dao/CloseableIterator;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"ID:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/j256/ormlite/dao/CloseableIterator<",
"TT;>;"
}
.end annotation
# static fields
.field private static final logger:Lcom/j256/ormlite/logger/Logger;
# instance fields
.field private alreadyMoved:Z
.field private final classDao:Lcom/j256/ormlite/dao/Dao;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/j256/ormlite/dao/Dao<",
"TT;TID;>;"
}
.end annotation
.end field
.field private closed:Z
.field private final compiledStmt:Lcom/j256/ormlite/support/CompiledStatement;
.field private final connection:Lcom/j256/ormlite/support/DatabaseConnection;
.field private final connectionSource:Lcom/j256/ormlite/support/ConnectionSource;
.field private final dataClass:Ljava/lang/Class;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.end field
.field private first:Z
.field private last:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
.field private final results:Lcom/j256/ormlite/support/DatabaseResults;
.field private rowC:I
.field private final rowMapper:Lcom/j256/ormlite/stmt/GenericRowMapper;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/j256/ormlite/stmt/GenericRowMapper<",
"TT;>;"
}
.end annotation
.end field
.field private final statement:Ljava/lang/String;
# direct methods
.method public static constructor <clinit>()V
.registers 1
const-class v0, Lcom/j256/ormlite/stmt/SelectIterator;
invoke-static {v0}, Lcom/j256/ormlite/logger/LoggerFactory;->getLogger(Ljava/lang/Class;)Lcom/j256/ormlite/logger/Logger;
move-result-object v0
sput-object v0, Lcom/j256/ormlite/stmt/SelectIterator;->logger:Lcom/j256/ormlite/logger/Logger;
return-void
.end method
.method public constructor <init>(Ljava/lang/Class;Lcom/j256/ormlite/dao/Dao;Lcom/j256/ormlite/stmt/GenericRowMapper;Lcom/j256/ormlite/support/ConnectionSource;Lcom/j256/ormlite/support/DatabaseConnection;Lcom/j256/ormlite/support/CompiledStatement;Ljava/lang/String;Lcom/j256/ormlite/dao/ObjectCache;)V
.registers 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;",
"Lcom/j256/ormlite/dao/Dao<",
"TT;TID;>;",
"Lcom/j256/ormlite/stmt/GenericRowMapper<",
"TT;>;",
"Lcom/j256/ormlite/support/ConnectionSource;",
"Lcom/j256/ormlite/support/DatabaseConnection;",
"Lcom/j256/ormlite/support/CompiledStatement;",
"Ljava/lang/String;",
"Lcom/j256/ormlite/dao/ObjectCache;",
")V"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->first:Z
.line 3
iput-object p1, p0, Lcom/j256/ormlite/stmt/SelectIterator;->dataClass:Ljava/lang/Class;
.line 4
iput-object p2, p0, Lcom/j256/ormlite/stmt/SelectIterator;->classDao:Lcom/j256/ormlite/dao/Dao;
.line 5
iput-object p3, p0, Lcom/j256/ormlite/stmt/SelectIterator;->rowMapper:Lcom/j256/ormlite/stmt/GenericRowMapper;
.line 6
iput-object p4, p0, Lcom/j256/ormlite/stmt/SelectIterator;->connectionSource:Lcom/j256/ormlite/support/ConnectionSource;
.line 7
iput-object p5, p0, Lcom/j256/ormlite/stmt/SelectIterator;->connection:Lcom/j256/ormlite/support/DatabaseConnection;
.line 8
iput-object p6, p0, Lcom/j256/ormlite/stmt/SelectIterator;->compiledStmt:Lcom/j256/ormlite/support/CompiledStatement;
.line 9
invoke-interface {p6, p8}, Lcom/j256/ormlite/support/CompiledStatement;->runQuery(Lcom/j256/ormlite/dao/ObjectCache;)Lcom/j256/ormlite/support/DatabaseResults;
move-result-object p1
iput-object p1, p0, Lcom/j256/ormlite/stmt/SelectIterator;->results:Lcom/j256/ormlite/support/DatabaseResults;
.line 10
iput-object p7, p0, Lcom/j256/ormlite/stmt/SelectIterator;->statement:Ljava/lang/String;
if-eqz p7, :cond_2b
.line 11
sget-object p1, Lcom/j256/ormlite/stmt/SelectIterator;->logger:Lcom/j256/ormlite/logger/Logger;
invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I
move-result p2
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
const-string p3, "starting iterator @{} for \'{}\'"
invoke-virtual {p1, p3, p2, p7}, Lcom/j256/ormlite/logger/Logger;->debug(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
:cond_2b
return-void
.end method
.method private getCurrent()Ljava/lang/Object;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
iget-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->rowMapper:Lcom/j256/ormlite/stmt/GenericRowMapper;
iget-object v1, p0, Lcom/j256/ormlite/stmt/SelectIterator;->results:Lcom/j256/ormlite/support/DatabaseResults;
invoke-interface {v0, v1}, Lcom/j256/ormlite/stmt/GenericRowMapper;->mapRow(Lcom/j256/ormlite/support/DatabaseResults;)Ljava/lang/Object;
move-result-object v0
iput-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->last:Ljava/lang/Object;
const/4 v1, 0x0
.line 2
iput-boolean v1, p0, Lcom/j256/ormlite/stmt/SelectIterator;->alreadyMoved:Z
.line 3
iget v1, p0, Lcom/j256/ormlite/stmt/SelectIterator;->rowC:I
add-int/lit8 v1, v1, 0x1
iput v1, p0, Lcom/j256/ormlite/stmt/SelectIterator;->rowC:I
return-object v0
.end method
# virtual methods
.method public close()V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->closed:Z
if-nez v0, :cond_39
.line 2
iget-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->compiledStmt:Lcom/j256/ormlite/support/CompiledStatement;
invoke-interface {v0}, Ljava/io/Closeable;->close()V
const/4 v0, 0x1
.line 3
iput-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->closed:Z
const/4 v0, 0x0
.line 4
iput-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->last:Ljava/lang/Object;
.line 5
iget-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->statement:Ljava/lang/String;
if-eqz v0, :cond_28
.line 6
sget-object v0, Lcom/j256/ormlite/stmt/SelectIterator;->logger:Lcom/j256/ormlite/logger/Logger;
invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
iget v2, p0, Lcom/j256/ormlite/stmt/SelectIterator;->rowC:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const-string v3, "closed iterator @{} after {} rows"
invoke-virtual {v0, v3, v1, v2}, Lcom/j256/ormlite/logger/Logger;->debug(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
.line 7
:cond_28
:try_start_28
iget-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->connectionSource:Lcom/j256/ormlite/support/ConnectionSource;
iget-object v1, p0, Lcom/j256/ormlite/stmt/SelectIterator;->connection:Lcom/j256/ormlite/support/DatabaseConnection;
invoke-interface {v0, v1}, Lcom/j256/ormlite/support/ConnectionSource;->releaseConnection(Lcom/j256/ormlite/support/DatabaseConnection;)V
:try_end_2f
.catch Ljava/sql/SQLException; {:try_start_28 .. :try_end_2f} :catch_30
goto :goto_39
:catch_30
move-exception v0
.line 8
new-instance v1, Ljava/io/IOException;
const-string v2, "could not release connection"
invoke-direct {v1, v2, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
:cond_39
:goto_39
return-void
.end method
.method public closeQuietly()V
.registers 1
invoke-static {p0}, Lcom/j256/ormlite/misc/IOUtils;->closeQuietly(Ljava/io/Closeable;)V
return-void
.end method
.method public current()Ljava/lang/Object;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
iget-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->closed:Z
if-eqz v0, :cond_6
const/4 v0, 0x0
return-object v0
.line 2
:cond_6
iget-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->first:Z
if-eqz v0, :cond_f
.line 3
invoke-virtual {p0}, Lcom/j256/ormlite/stmt/SelectIterator;->first()Ljava/lang/Object;
move-result-object v0
return-object v0
.line 4
:cond_f
invoke-direct {p0}, Lcom/j256/ormlite/stmt/SelectIterator;->getCurrent()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public first()Ljava/lang/Object;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
iget-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->closed:Z
const/4 v1, 0x0
if-eqz v0, :cond_6
return-object v1
:cond_6
const/4 v0, 0x0
.line 2
iput-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->first:Z
.line 3
iget-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->results:Lcom/j256/ormlite/support/DatabaseResults;
invoke-interface {v0}, Lcom/j256/ormlite/support/DatabaseResults;->first()Z
move-result v0
if-eqz v0, :cond_16
.line 4
invoke-direct {p0}, Lcom/j256/ormlite/stmt/SelectIterator;->getCurrent()Ljava/lang/Object;
move-result-object v0
return-object v0
:cond_16
return-object v1
.end method
.method public getRawResults()Lcom/j256/ormlite/support/DatabaseResults;
.registers 2
iget-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->results:Lcom/j256/ormlite/support/DatabaseResults;
return-object v0
.end method
.method public hasNext()Z
.registers 5
.line 1
:try_start_0
invoke-virtual {p0}, Lcom/j256/ormlite/stmt/SelectIterator;->hasNextThrow()Z
move-result v0
:try_end_4
.catch Ljava/sql/SQLException; {:try_start_0 .. :try_end_4} :catch_5
return v0
:catch_5
move-exception v0
const/4 v1, 0x0
.line 2
iput-object v1, p0, Lcom/j256/ormlite/stmt/SelectIterator;->last:Ljava/lang/Object;
.line 3
invoke-virtual {p0}, Lcom/j256/ormlite/stmt/SelectIterator;->closeQuietly()V
.line 4
new-instance v1, Ljava/lang/IllegalStateException;
const-string v2, "Errors getting more results of "
.line 5
invoke-static {v2}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
.line 6
iget-object v3, p0, Lcom/j256/ormlite/stmt/SelectIterator;->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 hasNextThrow()Z
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
iget-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->closed:Z
const/4 v1, 0x0
if-eqz v0, :cond_6
return v1
.line 2
:cond_6
iget-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->alreadyMoved:Z
const/4 v2, 0x1
if-eqz v0, :cond_c
return v2
.line 3
:cond_c
iget-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->first:Z
if-eqz v0, :cond_19
.line 4
iput-boolean v1, p0, Lcom/j256/ormlite/stmt/SelectIterator;->first:Z
.line 5
iget-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->results:Lcom/j256/ormlite/support/DatabaseResults;
invoke-interface {v0}, Lcom/j256/ormlite/support/DatabaseResults;->first()Z
move-result v0
goto :goto_1f
.line 6
:cond_19
iget-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->results:Lcom/j256/ormlite/support/DatabaseResults;
invoke-interface {v0}, Lcom/j256/ormlite/support/DatabaseResults;->next()Z
move-result v0
:goto_1f
if-nez v0, :cond_26
const-string v1, "iterator"
.line 7
invoke-static {p0, v1}, Lcom/j256/ormlite/misc/IOUtils;->closeThrowSqlException(Ljava/io/Closeable;Ljava/lang/String;)V
.line 8
:cond_26
iput-boolean v2, p0, Lcom/j256/ormlite/stmt/SelectIterator;->alreadyMoved:Z
return v0
.end method
.method public moveRelative(I)Ljava/lang/Object;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
iget-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->closed:Z
const/4 v1, 0x0
if-eqz v0, :cond_6
return-object v1
:cond_6
const/4 v0, 0x0
.line 2
iput-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->first:Z
.line 3
iget-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->results:Lcom/j256/ormlite/support/DatabaseResults;
invoke-interface {v0, p1}, Lcom/j256/ormlite/support/DatabaseResults;->moveRelative(I)Z
move-result p1
if-eqz p1, :cond_16
.line 4
invoke-direct {p0}, Lcom/j256/ormlite/stmt/SelectIterator;->getCurrent()Ljava/lang/Object;
move-result-object p1
return-object p1
:cond_16
return-object v1
.end method
.method public moveToNext()V
.registers 2
const/4 v0, 0x0
.line 1
iput-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->last:Ljava/lang/Object;
const/4 v0, 0x0
.line 2
iput-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->first:Z
.line 3
iput-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->alreadyMoved:Z
return-void
.end method
.method public next()Ljava/lang/Object;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
const/4 v0, 0x0
.line 1
:try_start_1
invoke-virtual {p0}, Lcom/j256/ormlite/stmt/SelectIterator;->nextThrow()Ljava/lang/Object;
move-result-object v1
:try_end_5
.catch Ljava/sql/SQLException; {:try_start_1 .. :try_end_5} :catch_a
if-eqz v1, :cond_8
return-object v1
:cond_8
move-object v1, v0
goto :goto_b
:catch_a
move-exception v1
.line 2
:goto_b
iput-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->last:Ljava/lang/Object;
.line 3
invoke-virtual {p0}, Lcom/j256/ormlite/stmt/SelectIterator;->closeQuietly()V
.line 4
new-instance v0, Ljava/lang/IllegalStateException;
const-string v2, "Could not get next result for "
.line 5
invoke-static {v2}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
.line 6
iget-object v3, p0, Lcom/j256/ormlite/stmt/SelectIterator;->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 {v0, v2, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
.end method
.method public nextThrow()Ljava/lang/Object;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
iget-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->closed:Z
const/4 v1, 0x0
if-eqz v0, :cond_6
return-object v1
.line 2
:cond_6
iget-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->alreadyMoved:Z
const/4 v2, 0x0
if-nez v0, :cond_23
.line 3
iget-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->first:Z
if-eqz v0, :cond_18
.line 4
iput-boolean v2, p0, Lcom/j256/ormlite/stmt/SelectIterator;->first:Z
.line 5
iget-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->results:Lcom/j256/ormlite/support/DatabaseResults;
invoke-interface {v0}, Lcom/j256/ormlite/support/DatabaseResults;->first()Z
move-result v0
goto :goto_1e
.line 6
:cond_18
iget-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->results:Lcom/j256/ormlite/support/DatabaseResults;
invoke-interface {v0}, Lcom/j256/ormlite/support/DatabaseResults;->next()Z
move-result v0
:goto_1e
if-nez v0, :cond_23
.line 7
iput-boolean v2, p0, Lcom/j256/ormlite/stmt/SelectIterator;->first:Z
return-object v1
.line 8
:cond_23
iput-boolean v2, p0, Lcom/j256/ormlite/stmt/SelectIterator;->first:Z
.line 9
invoke-direct {p0}, Lcom/j256/ormlite/stmt/SelectIterator;->getCurrent()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public previous()Ljava/lang/Object;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
iget-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->closed:Z
const/4 v1, 0x0
if-eqz v0, :cond_6
return-object v1
:cond_6
const/4 v0, 0x0
.line 2
iput-boolean v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->first:Z
.line 3
iget-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->results:Lcom/j256/ormlite/support/DatabaseResults;
invoke-interface {v0}, Lcom/j256/ormlite/support/DatabaseResults;->previous()Z
move-result v0
if-eqz v0, :cond_16
.line 4
invoke-direct {p0}, Lcom/j256/ormlite/stmt/SelectIterator;->getCurrent()Ljava/lang/Object;
move-result-object v0
return-object v0
:cond_16
return-object v1
.end method
.method public remove()V
.registers 5
.line 1
:try_start_0
invoke-virtual {p0}, Lcom/j256/ormlite/stmt/SelectIterator;->removeThrow()V
:try_end_3
.catch Ljava/sql/SQLException; {:try_start_0 .. :try_end_3} :catch_4
return-void
:catch_4
move-exception v0
.line 2
invoke-virtual {p0}, Lcom/j256/ormlite/stmt/SelectIterator;->closeQuietly()V
.line 3
new-instance v1, Ljava/lang/IllegalStateException;
const-string v2, "Could not delete "
.line 4
invoke-static {v2}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
.line 5
iget-object v3, p0, Lcom/j256/ormlite/stmt/SelectIterator;->dataClass:Ljava/lang/Class;
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v3, " object "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v3, p0, Lcom/j256/ormlite/stmt/SelectIterator;->last:Ljava/lang/Object;
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 removeThrow()V
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
iget-object v0, p0, Lcom/j256/ormlite/stmt/SelectIterator;->last:Ljava/lang/Object;
if-eqz v0, :cond_2d
.line 2
iget-object v1, p0, Lcom/j256/ormlite/stmt/SelectIterator;->classDao:Lcom/j256/ormlite/dao/Dao;
if-eqz v1, :cond_13
const/4 v2, 0x0
.line 3
:try_start_9
invoke-interface {v1, v0}, Lcom/j256/ormlite/dao/Dao;->delete(Ljava/lang/Object;)I
:try_end_c
.catchall {:try_start_9 .. :try_end_c} :catchall_f
.line 4
iput-object v2, p0, Lcom/j256/ormlite/stmt/SelectIterator;->last:Ljava/lang/Object;
return-void
:catchall_f
move-exception v0
iput-object v2, p0, Lcom/j256/ormlite/stmt/SelectIterator;->last:Ljava/lang/Object;
throw v0
.line 5
:cond_13
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Cannot remove "
.line 6
invoke-static {v1}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
.line 7
iget-object v2, p0, Lcom/j256/ormlite/stmt/SelectIterator;->dataClass:Ljava/lang/Class;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v2, " object because classDao not initialized"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 8
:cond_2d
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "No last "
.line 9
invoke-static {v1}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
.line 10
iget-object v2, p0, Lcom/j256/ormlite/stmt/SelectIterator;->dataClass:Ljava/lang/Class;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v2, " object to remove. Must be called after a call to next."
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method