RawRowMapperImpl.smali
.class public Lcom/j256/ormlite/stmt/RawRowMapperImpl;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/j256/ormlite/dao/RawRowMapper;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"ID:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/j256/ormlite/dao/RawRowMapper<",
"TT;>;"
}
.end annotation
# instance fields
.field private final tableInfo:Lcom/j256/ormlite/table/TableInfo;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/j256/ormlite/table/TableInfo<",
"TT;TID;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lcom/j256/ormlite/table/TableInfo;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/j256/ormlite/table/TableInfo<",
"TT;TID;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/j256/ormlite/stmt/RawRowMapperImpl;->tableInfo:Lcom/j256/ormlite/table/TableInfo;
return-void
.end method
# virtual methods
.method public mapRow([Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/Object;
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Ljava/lang/String;",
"[",
"Ljava/lang/String;",
")TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
iget-object v0, p0, Lcom/j256/ormlite/stmt/RawRowMapperImpl;->tableInfo:Lcom/j256/ormlite/table/TableInfo;
invoke-virtual {v0}, Lcom/j256/ormlite/table/TableInfo;->createObject()Ljava/lang/Object;
move-result-object v0
const/4 v1, 0x0
const/4 v2, 0x0
.line 2
:goto_8
array-length v3, p1
if-ge v2, v3, :cond_24
.line 3
array-length v3, p2
if-lt v2, v3, :cond_f
goto :goto_21
.line 4
:cond_f
iget-object v3, p0, Lcom/j256/ormlite/stmt/RawRowMapperImpl;->tableInfo:Lcom/j256/ormlite/table/TableInfo;
aget-object v4, p1, v2
invoke-virtual {v3, v4}, Lcom/j256/ormlite/table/TableInfo;->getFieldTypeByColumnName(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v3
.line 5
aget-object v4, p2, v2
invoke-virtual {v3, v4, v2}, Lcom/j256/ormlite/field/FieldType;->convertStringToJavaField(Ljava/lang/String;I)Ljava/lang/Object;
move-result-object v4
const/4 v5, 0x0
.line 6
invoke-virtual {v3, v0, v4, v1, v5}, Lcom/j256/ormlite/field/FieldType;->assignField(Ljava/lang/Object;Ljava/lang/Object;ZLcom/j256/ormlite/dao/ObjectCache;)V
:goto_21
add-int/lit8 v2, v2, 0x1
goto :goto_8
:cond_24
return-object v0
.end method