Where.smali
.class public Lcom/j256/ormlite/stmt/Where;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"ID:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# static fields
.field private static final CLAUSE_STACK_START_SIZE:I = 0x4
# instance fields
.field private clauseStack:[Lcom/j256/ormlite/stmt/query/Clause;
.field private clauseStackLevel:I
.field private final databaseType:Lcom/j256/ormlite/db/DatabaseType;
.field private final idColumnName:Ljava/lang/String;
.field private final idFieldType:Lcom/j256/ormlite/field/FieldType;
.field private needsFuture:Lcom/j256/ormlite/stmt/query/NeedsFutureClause;
.field private final statementBuilder:Lcom/j256/ormlite/stmt/StatementBuilder;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/j256/ormlite/stmt/StatementBuilder<",
"TT;TID;>;"
}
.end annotation
.end field
.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;Lcom/j256/ormlite/stmt/StatementBuilder;Lcom/j256/ormlite/db/DatabaseType;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/j256/ormlite/table/TableInfo<",
"TT;TID;>;",
"Lcom/j256/ormlite/stmt/StatementBuilder<",
"TT;TID;>;",
"Lcom/j256/ormlite/db/DatabaseType;",
")V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x4
new-array v0, v0, [Lcom/j256/ormlite/stmt/query/Clause;
.line 2
iput-object v0, p0, Lcom/j256/ormlite/stmt/Where;->clauseStack:[Lcom/j256/ormlite/stmt/query/Clause;
const/4 v0, 0x0
.line 3
iput-object v0, p0, Lcom/j256/ormlite/stmt/Where;->needsFuture:Lcom/j256/ormlite/stmt/query/NeedsFutureClause;
.line 4
iput-object p1, p0, Lcom/j256/ormlite/stmt/Where;->tableInfo:Lcom/j256/ormlite/table/TableInfo;
.line 5
iput-object p2, p0, Lcom/j256/ormlite/stmt/Where;->statementBuilder:Lcom/j256/ormlite/stmt/StatementBuilder;
.line 6
invoke-virtual {p1}, Lcom/j256/ormlite/table/TableInfo;->getIdField()Lcom/j256/ormlite/field/FieldType;
move-result-object p1
iput-object p1, p0, Lcom/j256/ormlite/stmt/Where;->idFieldType:Lcom/j256/ormlite/field/FieldType;
if-nez p1, :cond_1a
.line 7
iput-object v0, p0, Lcom/j256/ormlite/stmt/Where;->idColumnName:Ljava/lang/String;
goto :goto_20
.line 8
:cond_1a
invoke-virtual {p1}, Lcom/j256/ormlite/field/FieldType;->getColumnName()Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lcom/j256/ormlite/stmt/Where;->idColumnName:Ljava/lang/String;
.line 9
:goto_20
iput-object p3, p0, Lcom/j256/ormlite/stmt/Where;->databaseType:Lcom/j256/ormlite/db/DatabaseType;
return-void
.end method
.method private addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
.registers 3
.line 1
iget-object v0, p0, Lcom/j256/ormlite/stmt/Where;->needsFuture:Lcom/j256/ormlite/stmt/query/NeedsFutureClause;
if-nez v0, :cond_8
.line 2
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->push(Lcom/j256/ormlite/stmt/query/Clause;)V
goto :goto_e
.line 3
:cond_8
invoke-interface {v0, p1}, Lcom/j256/ormlite/stmt/query/NeedsFutureClause;->setMissingClause(Lcom/j256/ormlite/stmt/query/Clause;)V
const/4 p1, 0x0
.line 4
iput-object p1, p0, Lcom/j256/ormlite/stmt/Where;->needsFuture:Lcom/j256/ormlite/stmt/query/NeedsFutureClause;
:goto_e
return-void
.end method
.method private addNeedsFuture(Lcom/j256/ormlite/stmt/query/NeedsFutureClause;)V
.registers 5
.line 1
iget-object v0, p0, Lcom/j256/ormlite/stmt/Where;->needsFuture:Lcom/j256/ormlite/stmt/query/NeedsFutureClause;
if-nez v0, :cond_7
.line 2
iput-object p1, p0, Lcom/j256/ormlite/stmt/Where;->needsFuture:Lcom/j256/ormlite/stmt/query/NeedsFutureClause;
return-void
.line 3
:cond_7
new-instance v0, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
iget-object v2, p0, Lcom/j256/ormlite/stmt/Where;->needsFuture:Lcom/j256/ormlite/stmt/query/NeedsFutureClause;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v2, " is already waiting for a future clause, can\'t add: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method private buildClauseArray([Lcom/j256/ormlite/stmt/Where;Ljava/lang/String;)[Lcom/j256/ormlite/stmt/query/Clause;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;",
"Ljava/lang/String;",
")[",
"Lcom/j256/ormlite/stmt/query/Clause;"
}
.end annotation
.line 1
array-length v0, p1
if-nez v0, :cond_5
const/4 p1, 0x0
goto :goto_17
.line 2
:cond_5
array-length v0, p1
new-array v0, v0, [Lcom/j256/ormlite/stmt/query/Clause;
.line 3
array-length p1, p1
add-int/lit8 p1, p1, -0x1
:goto_b
if-ltz p1, :cond_16
.line 4
invoke-direct {p0, p2}, Lcom/j256/ormlite/stmt/Where;->pop(Ljava/lang/String;)Lcom/j256/ormlite/stmt/query/Clause;
move-result-object v1
aput-object v1, v0, p1
add-int/lit8 p1, p1, -0x1
goto :goto_b
:cond_16
move-object p1, v0
:goto_17
return-object p1
.end method
.method private checkQueryBuilderMethod(Ljava/lang/String;)Lcom/j256/ormlite/stmt/QueryBuilder;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Lcom/j256/ormlite/stmt/QueryBuilder<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
iget-object v0, p0, Lcom/j256/ormlite/stmt/Where;->statementBuilder:Lcom/j256/ormlite/stmt/StatementBuilder;
instance-of v1, v0, Lcom/j256/ormlite/stmt/QueryBuilder;
if-eqz v1, :cond_9
.line 2
check-cast v0, Lcom/j256/ormlite/stmt/QueryBuilder;
return-object v0
.line 3
:cond_9
new-instance v0, Ljava/sql/SQLException;
const-string v1, "Cannot call "
const-string v2, " on a statement of type "
.line 4
invoke-static {v1, p1, v2}, Landroidx/appcompat/view/g;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
.line 5
iget-object v1, p0, Lcom/j256/ormlite/stmt/Where;->statementBuilder:Lcom/j256/ormlite/stmt/StatementBuilder;
invoke-virtual {v1}, Lcom/j256/ormlite/stmt/StatementBuilder;->getType()Lcom/j256/ormlite/stmt/StatementBuilder$StatementType;
move-result-object v1
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/sql/SQLException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method private findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
.registers 3
iget-object v0, p0, Lcom/j256/ormlite/stmt/Where;->tableInfo:Lcom/j256/ormlite/table/TableInfo;
invoke-virtual {v0, p1}, Lcom/j256/ormlite/table/TableInfo;->getFieldTypeByColumnName(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object p1
return-object p1
.end method
.method private in(ZLjava/lang/String;Lcom/j256/ormlite/stmt/QueryBuilder;)Lcom/j256/ormlite/stmt/Where;
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(Z",
"Ljava/lang/String;",
"Lcom/j256/ormlite/stmt/QueryBuilder<",
"**>;)",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 39
invoke-virtual {p3}, Lcom/j256/ormlite/stmt/QueryBuilder;->getSelectColumnCount()I
move-result v0
const/4 v1, 0x1
if-eq v0, v1, :cond_38
.line 40
invoke-virtual {p3}, Lcom/j256/ormlite/stmt/QueryBuilder;->getSelectColumnCount()I
move-result p1
if-nez p1, :cond_15
.line 41
new-instance p1, Ljava/sql/SQLException;
const-string p2, "Inner query must have only 1 select column specified instead of *"
invoke-direct {p1, p2}, Ljava/sql/SQLException;-><init>(Ljava/lang/String;)V
throw p1
.line 42
:cond_15
new-instance p1, Ljava/sql/SQLException;
const-string p2, "Inner query must have only 1 select column specified instead of "
.line 43
invoke-static {p2}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p2
.line 44
invoke-virtual {p3}, Lcom/j256/ormlite/stmt/QueryBuilder;->getSelectColumnCount()I
move-result v0
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v0, ": "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p3}, Lcom/j256/ormlite/stmt/QueryBuilder;->getSelectColumnsAsString()Ljava/lang/String;
move-result-object p3
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/sql/SQLException;-><init>(Ljava/lang/String;)V
throw p1
.line 45
:cond_38
invoke-virtual {p3}, Lcom/j256/ormlite/stmt/QueryBuilder;->enableInnerQuery()V
.line 46
new-instance v0, Lcom/j256/ormlite/stmt/query/InSubQuery;
invoke-direct {p0, p2}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v1
new-instance v2, Lcom/j256/ormlite/stmt/QueryBuilder$InternalQueryBuilderWrapper;
invoke-direct {v2, p3}, Lcom/j256/ormlite/stmt/QueryBuilder$InternalQueryBuilderWrapper;-><init>(Lcom/j256/ormlite/stmt/QueryBuilder;)V
invoke-direct {v0, p2, v1, v2, p1}, Lcom/j256/ormlite/stmt/query/InSubQuery;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;Lcom/j256/ormlite/stmt/QueryBuilder$InternalQueryBuilderWrapper;Z)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method private varargs in(ZLjava/lang/String;[Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(Z",
"Ljava/lang/String;",
"[",
"Ljava/lang/Object;",
")",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 4
array-length v0, p3
const/4 v1, 0x1
if-ne v0, v1, :cond_5f
const/4 v0, 0x0
.line 5
aget-object v1, p3, v0
invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Class;->isArray()Z
move-result v1
const-string v2, "IN"
const-string v3, "notId"
const-string v4, "Object argument to "
if-eqz v1, :cond_2b
.line 6
new-instance p2, Ljava/lang/IllegalArgumentException;
.line 7
invoke-static {v4}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p3
if-eqz p1, :cond_20
goto :goto_21
:cond_20
move-object v2, v3
:goto_21
const-string p1, " seems to be an array within an array"
.line 8
invoke-static {p3, v2, p1}, Landroid/support/v4/media/session/b;->d(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 9
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
.line 10
:cond_2b
aget-object v1, p3, v0
instance-of v1, v1, Lcom/j256/ormlite/stmt/Where;
if-eqz v1, :cond_45
.line 11
new-instance p2, Ljava/lang/IllegalArgumentException;
.line 12
invoke-static {v4}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p3
if-eqz p1, :cond_3a
goto :goto_3b
:cond_3a
move-object v2, v3
:goto_3b
const-string p1, " seems to be a Where object, did you mean the QueryBuilder?"
.line 13
invoke-static {p3, v2, p1}, Landroid/support/v4/media/session/b;->d(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 14
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
.line 15
:cond_45
aget-object v0, p3, v0
instance-of v0, v0, Lcom/j256/ormlite/stmt/PreparedStmt;
if-eqz v0, :cond_5f
.line 16
new-instance p2, Ljava/lang/IllegalArgumentException;
.line 17
invoke-static {v4}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p3
if-eqz p1, :cond_54
goto :goto_55
:cond_54
move-object v2, v3
:goto_55
const-string p1, " seems to be a prepared statement, did you mean the QueryBuilder?"
.line 18
invoke-static {p3, v2, p1}, Landroid/support/v4/media/session/b;->d(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 19
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
.line 20
:cond_5f
new-instance v0, Lcom/j256/ormlite/stmt/query/In;
invoke-direct {p0, p2}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v1
invoke-direct {v0, p2, v1, p3, p1}, Lcom/j256/ormlite/stmt/query/In;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;[Ljava/lang/Object;Z)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method private peek()Lcom/j256/ormlite/stmt/query/Clause;
.registers 3
iget-object v0, p0, Lcom/j256/ormlite/stmt/Where;->clauseStack:[Lcom/j256/ormlite/stmt/query/Clause;
iget v1, p0, Lcom/j256/ormlite/stmt/Where;->clauseStackLevel:I
add-int/lit8 v1, v1, -0x1
aget-object v0, v0, v1
return-object v0
.end method
.method private pop(Ljava/lang/String;)Lcom/j256/ormlite/stmt/query/Clause;
.registers 5
.line 1
iget v0, p0, Lcom/j256/ormlite/stmt/Where;->clauseStackLevel:I
if-eqz v0, :cond_10
.line 2
iget-object p1, p0, Lcom/j256/ormlite/stmt/Where;->clauseStack:[Lcom/j256/ormlite/stmt/query/Clause;
add-int/lit8 v0, v0, -0x1
iput v0, p0, Lcom/j256/ormlite/stmt/Where;->clauseStackLevel:I
aget-object v1, p1, v0
const/4 v2, 0x0
.line 3
aput-object v2, p1, v0
return-object v1
.line 4
:cond_10
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Expecting there to be a clause already defined for \'"
const-string v2, "\' operation"
.line 5
invoke-static {v1, p1, v2}, Landroidx/biometric/i0;->c(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 6
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method private push(Lcom/j256/ormlite/stmt/query/Clause;)V
.registers 6
.line 1
iget v0, p0, Lcom/j256/ormlite/stmt/Where;->clauseStackLevel:I
iget-object v1, p0, Lcom/j256/ormlite/stmt/Where;->clauseStack:[Lcom/j256/ormlite/stmt/query/Clause;
array-length v1, v1
if-ne v0, v1, :cond_1e
mul-int/lit8 v0, v0, 0x2
.line 2
new-array v0, v0, [Lcom/j256/ormlite/stmt/query/Clause;
const/4 v1, 0x0
.line 3
:goto_c
iget v2, p0, Lcom/j256/ormlite/stmt/Where;->clauseStackLevel:I
if-ge v1, v2, :cond_1c
.line 4
iget-object v2, p0, Lcom/j256/ormlite/stmt/Where;->clauseStack:[Lcom/j256/ormlite/stmt/query/Clause;
aget-object v3, v2, v1
aput-object v3, v0, v1
const/4 v3, 0x0
.line 5
aput-object v3, v2, v1
add-int/lit8 v1, v1, 0x1
goto :goto_c
.line 6
:cond_1c
iput-object v0, p0, Lcom/j256/ormlite/stmt/Where;->clauseStack:[Lcom/j256/ormlite/stmt/query/Clause;
.line 7
:cond_1e
iget-object v0, p0, Lcom/j256/ormlite/stmt/Where;->clauseStack:[Lcom/j256/ormlite/stmt/query/Clause;
iget v1, p0, Lcom/j256/ormlite/stmt/Where;->clauseStackLevel:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/j256/ormlite/stmt/Where;->clauseStackLevel:I
aput-object p1, v0, v1
return-void
.end method
# virtual methods
.method public and()Lcom/j256/ormlite/stmt/Where;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.line 1
new-instance v0, Lcom/j256/ormlite/stmt/query/ManyClause;
const-string v1, "AND"
invoke-direct {p0, v1}, Lcom/j256/ormlite/stmt/Where;->pop(Ljava/lang/String;)Lcom/j256/ormlite/stmt/query/Clause;
move-result-object v2
invoke-direct {v0, v2, v1}, Lcom/j256/ormlite/stmt/query/ManyClause;-><init>(Lcom/j256/ormlite/stmt/query/Clause;Ljava/lang/String;)V
.line 2
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->push(Lcom/j256/ormlite/stmt/query/Clause;)V
.line 3
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addNeedsFuture(Lcom/j256/ormlite/stmt/query/NeedsFutureClause;)V
return-object p0
.end method
.method public and(I)Lcom/j256/ormlite/stmt/Where;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
if-eqz p1, :cond_1c
.line 8
new-array v0, p1, [Lcom/j256/ormlite/stmt/query/Clause;
add-int/lit8 p1, p1, -0x1
:goto_6
const-string v1, "AND"
if-ltz p1, :cond_13
.line 9
invoke-direct {p0, v1}, Lcom/j256/ormlite/stmt/Where;->pop(Ljava/lang/String;)Lcom/j256/ormlite/stmt/query/Clause;
move-result-object v1
aput-object v1, v0, p1
add-int/lit8 p1, p1, -0x1
goto :goto_6
.line 10
:cond_13
new-instance p1, Lcom/j256/ormlite/stmt/query/ManyClause;
invoke-direct {p1, v0, v1}, Lcom/j256/ormlite/stmt/query/ManyClause;-><init>([Lcom/j256/ormlite/stmt/query/Clause;Ljava/lang/String;)V
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.line 11
:cond_1c
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Must have at least one clause in and(numClauses)"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public varargs and(Lcom/j256/ormlite/stmt/Where;Lcom/j256/ormlite/stmt/Where;[Lcom/j256/ormlite/stmt/Where;)Lcom/j256/ormlite/stmt/Where;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;[",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;)",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
const-string p1, "AND"
.line 4
invoke-direct {p0, p3, p1}, Lcom/j256/ormlite/stmt/Where;->buildClauseArray([Lcom/j256/ormlite/stmt/Where;Ljava/lang/String;)[Lcom/j256/ormlite/stmt/query/Clause;
move-result-object p2
.line 5
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->pop(Ljava/lang/String;)Lcom/j256/ormlite/stmt/query/Clause;
move-result-object p3
.line 6
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->pop(Ljava/lang/String;)Lcom/j256/ormlite/stmt/query/Clause;
move-result-object v0
.line 7
new-instance v1, Lcom/j256/ormlite/stmt/query/ManyClause;
invoke-direct {v1, v0, p3, p2, p1}, Lcom/j256/ormlite/stmt/query/ManyClause;-><init>(Lcom/j256/ormlite/stmt/query/Clause;Lcom/j256/ormlite/stmt/query/Clause;[Lcom/j256/ormlite/stmt/query/Clause;Ljava/lang/String;)V
invoke-direct {p0, v1}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public appendSql(Ljava/lang/String;Ljava/lang/StringBuilder;Ljava/util/List;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/StringBuilder;",
"Ljava/util/List<",
"Lcom/j256/ormlite/stmt/ArgumentHolder;",
">;)V"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
iget v0, p0, Lcom/j256/ormlite/stmt/Where;->clauseStackLevel:I
if-eqz v0, :cond_25
const/4 v1, 0x1
if-ne v0, v1, :cond_1d
.line 2
iget-object v0, p0, Lcom/j256/ormlite/stmt/Where;->needsFuture:Lcom/j256/ormlite/stmt/query/NeedsFutureClause;
if-nez v0, :cond_15
.line 3
invoke-direct {p0}, Lcom/j256/ormlite/stmt/Where;->peek()Lcom/j256/ormlite/stmt/query/Clause;
move-result-object v0
iget-object v1, p0, Lcom/j256/ormlite/stmt/Where;->databaseType:Lcom/j256/ormlite/db/DatabaseType;
invoke-interface {v0, v1, p1, p2, p3}, Lcom/j256/ormlite/stmt/query/Clause;->appendSql(Lcom/j256/ormlite/db/DatabaseType;Ljava/lang/String;Ljava/lang/StringBuilder;Ljava/util/List;)V
return-void
.line 4
:cond_15
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "The SQL statement has not been finished since there are previous operations still waiting for clauses."
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 5
:cond_1d
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Both the \"left-hand\" and \"right-hand\" clauses have been defined. Did you miss an AND or OR?"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 6
:cond_25
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "No where clauses defined. Did you miss a where operation?"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public between(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/Object;",
"Ljava/lang/Object;",
")",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
new-instance v0, Lcom/j256/ormlite/stmt/query/Between;
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v1
invoke-direct {v0, p1, v1, p2, p3}, Lcom/j256/ormlite/stmt/query/Between;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;Ljava/lang/Object;Ljava/lang/Object;)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public countOf()J
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
const-string v0, "countOf()"
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->checkQueryBuilderMethod(Ljava/lang/String;)Lcom/j256/ormlite/stmt/QueryBuilder;
move-result-object v0
invoke-virtual {v0}, Lcom/j256/ormlite/stmt/QueryBuilder;->countOf()J
move-result-wide v0
return-wide v0
.end method
.method public eq(Ljava/lang/String;Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/Object;",
")",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
new-instance v0, Lcom/j256/ormlite/stmt/query/SimpleComparison;
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v1
const-string v2, "="
invoke-direct {v0, p1, v1, p2, v2}, Lcom/j256/ormlite/stmt/query/SimpleComparison;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public exists(Lcom/j256/ormlite/stmt/QueryBuilder;)Lcom/j256/ormlite/stmt/Where;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/j256/ormlite/stmt/QueryBuilder<",
"**>;)",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.line 1
invoke-virtual {p1}, Lcom/j256/ormlite/stmt/QueryBuilder;->enableInnerQuery()V
.line 2
new-instance v0, Lcom/j256/ormlite/stmt/query/Exists;
new-instance v1, Lcom/j256/ormlite/stmt/QueryBuilder$InternalQueryBuilderWrapper;
invoke-direct {v1, p1}, Lcom/j256/ormlite/stmt/QueryBuilder$InternalQueryBuilderWrapper;-><init>(Lcom/j256/ormlite/stmt/QueryBuilder;)V
invoke-direct {v0, v1}, Lcom/j256/ormlite/stmt/query/Exists;-><init>(Lcom/j256/ormlite/stmt/QueryBuilder$InternalQueryBuilderWrapper;)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public ge(Ljava/lang/String;Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/Object;",
")",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
new-instance v0, Lcom/j256/ormlite/stmt/query/SimpleComparison;
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v1
const-string v2, ">="
invoke-direct {v0, p1, v1, p2, v2}, Lcom/j256/ormlite/stmt/query/SimpleComparison;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public getStatement()Ljava/lang/String;
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 2
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
const/4 v2, 0x0
invoke-virtual {p0, v2, v0, v1}, Lcom/j256/ormlite/stmt/Where;->appendSql(Ljava/lang/String;Ljava/lang/StringBuilder;Ljava/util/List;)V
.line 3
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public gt(Ljava/lang/String;Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/Object;",
")",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
new-instance v0, Lcom/j256/ormlite/stmt/query/SimpleComparison;
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v1
const-string v2, ">"
invoke-direct {v0, p1, v1, p2, v2}, Lcom/j256/ormlite/stmt/query/SimpleComparison;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public idEq(Lcom/j256/ormlite/dao/Dao;Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"<OD:",
"Ljava/lang/Object;",
">(",
"Lcom/j256/ormlite/dao/Dao<",
"TOD;*>;TOD;)",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 4
iget-object v0, p0, Lcom/j256/ormlite/stmt/Where;->idColumnName:Ljava/lang/String;
if-eqz v0, :cond_15
.line 5
new-instance v1, Lcom/j256/ormlite/stmt/query/SimpleComparison;
iget-object v2, p0, Lcom/j256/ormlite/stmt/Where;->idFieldType:Lcom/j256/ormlite/field/FieldType;
invoke-interface {p1, p2}, Lcom/j256/ormlite/dao/Dao;->extractId(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
const-string p2, "="
invoke-direct {v1, v0, v2, p1, p2}, Lcom/j256/ormlite/stmt/query/SimpleComparison;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, v1}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.line 6
:cond_15
new-instance p1, Ljava/sql/SQLException;
const-string p2, "Object has no id column specified"
invoke-direct {p1, p2}, Ljava/sql/SQLException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public idEq(Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(TID;)",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
iget-object v0, p0, Lcom/j256/ormlite/stmt/Where;->idColumnName:Ljava/lang/String;
if-eqz v0, :cond_11
.line 2
new-instance v1, Lcom/j256/ormlite/stmt/query/SimpleComparison;
iget-object v2, p0, Lcom/j256/ormlite/stmt/Where;->idFieldType:Lcom/j256/ormlite/field/FieldType;
const-string v3, "="
invoke-direct {v1, v0, v2, p1, v3}, Lcom/j256/ormlite/stmt/query/SimpleComparison;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, v1}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.line 3
:cond_11
new-instance p1, Ljava/sql/SQLException;
const-string v0, "Object has no id column specified"
invoke-direct {p1, v0}, Ljava/sql/SQLException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public in(Ljava/lang/String;Lcom/j256/ormlite/stmt/QueryBuilder;)Lcom/j256/ormlite/stmt/Where;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Lcom/j256/ormlite/stmt/QueryBuilder<",
"**>;)",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
const/4 v0, 0x1
.line 3
invoke-direct {p0, v0, p1, p2}, Lcom/j256/ormlite/stmt/Where;->in(ZLjava/lang/String;Lcom/j256/ormlite/stmt/QueryBuilder;)Lcom/j256/ormlite/stmt/Where;
move-result-object p1
return-object p1
.end method
.method public in(Ljava/lang/String;Ljava/lang/Iterable;)Lcom/j256/ormlite/stmt/Where;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/Iterable<",
"*>;)",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
new-instance v0, Lcom/j256/ormlite/stmt/query/In;
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v1
const/4 v2, 0x1
invoke-direct {v0, p1, v1, p2, v2}, Lcom/j256/ormlite/stmt/query/In;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;Ljava/lang/Iterable;Z)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public varargs in(Ljava/lang/String;[Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"[",
"Ljava/lang/Object;",
")",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
const/4 v0, 0x1
.line 2
invoke-direct {p0, v0, p1, p2}, Lcom/j256/ormlite/stmt/Where;->in(ZLjava/lang/String;[Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
move-result-object p1
return-object p1
.end method
.method public isNotNull(Ljava/lang/String;)Lcom/j256/ormlite/stmt/Where;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
new-instance v0, Lcom/j256/ormlite/stmt/query/IsNotNull;
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v1
invoke-direct {v0, p1, v1}, Lcom/j256/ormlite/stmt/query/IsNotNull;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public isNull(Ljava/lang/String;)Lcom/j256/ormlite/stmt/Where;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
new-instance v0, Lcom/j256/ormlite/stmt/query/IsNull;
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v1
invoke-direct {v0, p1, v1}, Lcom/j256/ormlite/stmt/query/IsNull;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public iterator()Lcom/j256/ormlite/dao/CloseableIterator;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/j256/ormlite/dao/CloseableIterator<",
"TT;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
const-string v0, "iterator()"
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->checkQueryBuilderMethod(Ljava/lang/String;)Lcom/j256/ormlite/stmt/QueryBuilder;
move-result-object v0
invoke-virtual {v0}, Lcom/j256/ormlite/stmt/QueryBuilder;->iterator()Lcom/j256/ormlite/dao/CloseableIterator;
move-result-object v0
return-object v0
.end method
.method public le(Ljava/lang/String;Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/Object;",
")",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
new-instance v0, Lcom/j256/ormlite/stmt/query/SimpleComparison;
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v1
const-string v2, "<="
invoke-direct {v0, p1, v1, p2, v2}, Lcom/j256/ormlite/stmt/query/SimpleComparison;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public like(Ljava/lang/String;Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/Object;",
")",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
new-instance v0, Lcom/j256/ormlite/stmt/query/SimpleComparison;
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v1
const-string v2, "LIKE"
invoke-direct {v0, p1, v1, p2, v2}, Lcom/j256/ormlite/stmt/query/SimpleComparison;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public lt(Ljava/lang/String;Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/Object;",
")",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
new-instance v0, Lcom/j256/ormlite/stmt/query/SimpleComparison;
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v1
const-string v2, "<"
invoke-direct {v0, p1, v1, p2, v2}, Lcom/j256/ormlite/stmt/query/SimpleComparison;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public ne(Ljava/lang/String;Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/Object;",
")",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
new-instance v0, Lcom/j256/ormlite/stmt/query/SimpleComparison;
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v1
const-string v2, "<>"
invoke-direct {v0, p1, v1, p2, v2}, Lcom/j256/ormlite/stmt/query/SimpleComparison;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public not()Lcom/j256/ormlite/stmt/Where;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.line 1
new-instance v0, Lcom/j256/ormlite/stmt/query/Not;
invoke-direct {v0}, Lcom/j256/ormlite/stmt/query/Not;-><init>()V
.line 2
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
.line 3
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addNeedsFuture(Lcom/j256/ormlite/stmt/query/NeedsFutureClause;)V
return-object p0
.end method
.method public not(Lcom/j256/ormlite/stmt/Where;)Lcom/j256/ormlite/stmt/Where;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;)",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.line 4
new-instance p1, Lcom/j256/ormlite/stmt/query/Not;
const-string v0, "NOT"
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->pop(Ljava/lang/String;)Lcom/j256/ormlite/stmt/query/Clause;
move-result-object v0
invoke-direct {p1, v0}, Lcom/j256/ormlite/stmt/query/Not;-><init>(Lcom/j256/ormlite/stmt/query/Clause;)V
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public notIn(Ljava/lang/String;Lcom/j256/ormlite/stmt/QueryBuilder;)Lcom/j256/ormlite/stmt/Where;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Lcom/j256/ormlite/stmt/QueryBuilder<",
"**>;)",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
const/4 v0, 0x0
.line 3
invoke-direct {p0, v0, p1, p2}, Lcom/j256/ormlite/stmt/Where;->in(ZLjava/lang/String;Lcom/j256/ormlite/stmt/QueryBuilder;)Lcom/j256/ormlite/stmt/Where;
move-result-object p1
return-object p1
.end method
.method public notIn(Ljava/lang/String;Ljava/lang/Iterable;)Lcom/j256/ormlite/stmt/Where;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/Iterable<",
"*>;)",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
.line 1
new-instance v0, Lcom/j256/ormlite/stmt/query/In;
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v1
const/4 v2, 0x0
invoke-direct {v0, p1, v1, p2, v2}, Lcom/j256/ormlite/stmt/query/In;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;Ljava/lang/Iterable;Z)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public varargs notIn(Ljava/lang/String;[Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"[",
"Ljava/lang/Object;",
")",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
const/4 v0, 0x0
.line 2
invoke-direct {p0, v0, p1, p2}, Lcom/j256/ormlite/stmt/Where;->in(ZLjava/lang/String;[Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
move-result-object p1
return-object p1
.end method
.method public or()Lcom/j256/ormlite/stmt/Where;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.line 1
new-instance v0, Lcom/j256/ormlite/stmt/query/ManyClause;
const-string v1, "OR"
invoke-direct {p0, v1}, Lcom/j256/ormlite/stmt/Where;->pop(Ljava/lang/String;)Lcom/j256/ormlite/stmt/query/Clause;
move-result-object v2
invoke-direct {v0, v2, v1}, Lcom/j256/ormlite/stmt/query/ManyClause;-><init>(Lcom/j256/ormlite/stmt/query/Clause;Ljava/lang/String;)V
.line 2
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->push(Lcom/j256/ormlite/stmt/query/Clause;)V
.line 3
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addNeedsFuture(Lcom/j256/ormlite/stmt/query/NeedsFutureClause;)V
return-object p0
.end method
.method public or(I)Lcom/j256/ormlite/stmt/Where;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
if-eqz p1, :cond_1c
.line 8
new-array v0, p1, [Lcom/j256/ormlite/stmt/query/Clause;
add-int/lit8 p1, p1, -0x1
:goto_6
const-string v1, "OR"
if-ltz p1, :cond_13
.line 9
invoke-direct {p0, v1}, Lcom/j256/ormlite/stmt/Where;->pop(Ljava/lang/String;)Lcom/j256/ormlite/stmt/query/Clause;
move-result-object v1
aput-object v1, v0, p1
add-int/lit8 p1, p1, -0x1
goto :goto_6
.line 10
:cond_13
new-instance p1, Lcom/j256/ormlite/stmt/query/ManyClause;
invoke-direct {p1, v0, v1}, Lcom/j256/ormlite/stmt/query/ManyClause;-><init>([Lcom/j256/ormlite/stmt/query/Clause;Ljava/lang/String;)V
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.line 11
:cond_1c
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Must have at least one clause in or(numClauses)"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public varargs or(Lcom/j256/ormlite/stmt/Where;Lcom/j256/ormlite/stmt/Where;[Lcom/j256/ormlite/stmt/Where;)Lcom/j256/ormlite/stmt/Where;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;[",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;)",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
const-string p1, "OR"
.line 4
invoke-direct {p0, p3, p1}, Lcom/j256/ormlite/stmt/Where;->buildClauseArray([Lcom/j256/ormlite/stmt/Where;Ljava/lang/String;)[Lcom/j256/ormlite/stmt/query/Clause;
move-result-object p2
.line 5
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->pop(Ljava/lang/String;)Lcom/j256/ormlite/stmt/query/Clause;
move-result-object p3
.line 6
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->pop(Ljava/lang/String;)Lcom/j256/ormlite/stmt/query/Clause;
move-result-object v0
.line 7
new-instance v1, Lcom/j256/ormlite/stmt/query/ManyClause;
invoke-direct {v1, v0, p3, p2, p1}, Lcom/j256/ormlite/stmt/query/ManyClause;-><init>(Lcom/j256/ormlite/stmt/query/Clause;Lcom/j256/ormlite/stmt/query/Clause;[Lcom/j256/ormlite/stmt/query/Clause;Ljava/lang/String;)V
invoke-direct {p0, v1}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public prepare()Lcom/j256/ormlite/stmt/PreparedQuery;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/j256/ormlite/stmt/PreparedQuery<",
"TT;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
iget-object v0, p0, Lcom/j256/ormlite/stmt/Where;->statementBuilder:Lcom/j256/ormlite/stmt/StatementBuilder;
const/4 v1, 0x0
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Lcom/j256/ormlite/stmt/StatementBuilder;->prepareStatement(Ljava/lang/Long;Z)Lcom/j256/ormlite/stmt/mapped/MappedPreparedStmt;
move-result-object v0
return-object v0
.end method
.method public query()Ljava/util/List;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"TT;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
const-string v0, "query()"
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->checkQueryBuilderMethod(Ljava/lang/String;)Lcom/j256/ormlite/stmt/QueryBuilder;
move-result-object v0
invoke-virtual {v0}, Lcom/j256/ormlite/stmt/QueryBuilder;->query()Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method public queryForFirst()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
const-string v0, "queryForFirst()"
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->checkQueryBuilderMethod(Ljava/lang/String;)Lcom/j256/ormlite/stmt/QueryBuilder;
move-result-object v0
invoke-virtual {v0}, Lcom/j256/ormlite/stmt/QueryBuilder;->queryForFirst()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public queryRaw()Lcom/j256/ormlite/dao/GenericRawResults;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/j256/ormlite/dao/GenericRawResults<",
"[",
"Ljava/lang/String;",
">;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
const-string v0, "queryRaw()"
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->checkQueryBuilderMethod(Ljava/lang/String;)Lcom/j256/ormlite/stmt/QueryBuilder;
move-result-object v0
invoke-virtual {v0}, Lcom/j256/ormlite/stmt/QueryBuilder;->queryRaw()Lcom/j256/ormlite/dao/GenericRawResults;
move-result-object v0
return-object v0
.end method
.method public queryRawFirst()[Ljava/lang/String;
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
const-string v0, "queryRawFirst()"
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->checkQueryBuilderMethod(Ljava/lang/String;)Lcom/j256/ormlite/stmt/QueryBuilder;
move-result-object v0
invoke-virtual {v0}, Lcom/j256/ormlite/stmt/QueryBuilder;->queryRawFirst()[Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public varargs raw(Ljava/lang/String;[Lcom/j256/ormlite/stmt/ArgumentHolder;)Lcom/j256/ormlite/stmt/Where;
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"[",
"Lcom/j256/ormlite/stmt/ArgumentHolder;",
")",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.line 1
array-length v0, p2
const/4 v1, 0x0
:goto_2
if-ge v1, v0, :cond_25
aget-object v2, p2, v1
.line 2
invoke-interface {v2}, Lcom/j256/ormlite/stmt/ArgumentHolder;->getColumnName()Ljava/lang/String;
move-result-object v3
if-nez v3, :cond_1b
.line 3
invoke-interface {v2}, Lcom/j256/ormlite/stmt/ArgumentHolder;->getSqlType()Lcom/j256/ormlite/field/SqlType;
move-result-object v2
if-eqz v2, :cond_13
goto :goto_22
.line 4
:cond_13
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "Either the column name or SqlType must be set on each argument"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.line 5
:cond_1b
invoke-direct {p0, v3}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v3
invoke-interface {v2, v3}, Lcom/j256/ormlite/stmt/ArgumentHolder;->setMetaInfo(Lcom/j256/ormlite/field/FieldType;)V
:goto_22
add-int/lit8 v1, v1, 0x1
goto :goto_2
.line 6
:cond_25
new-instance v0, Lcom/j256/ormlite/stmt/query/Raw;
invoke-direct {v0, p1, p2}, Lcom/j256/ormlite/stmt/query/Raw;-><init>(Ljava/lang/String;[Lcom/j256/ormlite/stmt/ArgumentHolder;)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public rawComparison(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Lcom/j256/ormlite/stmt/Where;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Ljava/lang/Object;",
")",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/sql/SQLException;
}
.end annotation
new-instance v0, Lcom/j256/ormlite/stmt/query/SimpleComparison;
invoke-direct {p0, p1}, Lcom/j256/ormlite/stmt/Where;->findColumnFieldType(Ljava/lang/String;)Lcom/j256/ormlite/field/FieldType;
move-result-object v1
invoke-direct {v0, p1, v1, p3, p2}, Lcom/j256/ormlite/stmt/query/SimpleComparison;-><init>(Ljava/lang/String;Lcom/j256/ormlite/field/FieldType;Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, v0}, Lcom/j256/ormlite/stmt/Where;->addClause(Lcom/j256/ormlite/stmt/query/Clause;)V
return-object p0
.end method
.method public reset()Lcom/j256/ormlite/stmt/Where;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/j256/ormlite/stmt/Where<",
"TT;TID;>;"
}
.end annotation
const/4 v0, 0x0
const/4 v1, 0x0
.line 1
:goto_2
iget v2, p0, Lcom/j256/ormlite/stmt/Where;->clauseStackLevel:I
if-ge v1, v2, :cond_e
.line 2
iget-object v2, p0, Lcom/j256/ormlite/stmt/Where;->clauseStack:[Lcom/j256/ormlite/stmt/query/Clause;
const/4 v3, 0x0
aput-object v3, v2, v1
add-int/lit8 v1, v1, 0x1
goto :goto_2
.line 3
:cond_e
iput v0, p0, Lcom/j256/ormlite/stmt/Where;->clauseStackLevel:I
return-object p0
.end method
.method public toString()Ljava/lang/String;
.registers 4
.line 1
iget v0, p0, Lcom/j256/ormlite/stmt/Where;->clauseStackLevel:I
if-nez v0, :cond_7
const-string v0, "empty where clause"
return-object v0
.line 2
:cond_7
invoke-direct {p0}, Lcom/j256/ormlite/stmt/Where;->peek()Lcom/j256/ormlite/stmt/query/Clause;
move-result-object v0
.line 3
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "where clause: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method