jimu-decompiled/sources/com/ubt/jimu/gen/DiyStep2ModelDao.java
2025-05-13 19:24:51 +02:00

224 lines
11 KiB
Java

package com.ubt.jimu.gen;
import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import com.ubt.jimu.base.db.diy.DiyStep2Model;
import com.ubt.jimu.unity.bluetooth.UnityActivity;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import org.greenrobot.greendao.internal.DaoConfig;
/* loaded from: classes2.dex */
public class DiyStep2ModelDao extends AbstractDao<DiyStep2Model, Void> {
public static final String TABLENAME = "DIY_STEP2_MODEL";
public static class Properties {
public static final Property CustomModelId = new Property(0, String.class, "customModelId", false, "CUSTOM_MODEL_ID");
public static final Property ModelName = new Property(1, String.class, UnityActivity.pModelName, false, "MODEL_NAME");
public static final Property Step1state = new Property(2, Integer.class, "step1state", false, "STEP1STATE");
public static final Property Step1lock = new Property(3, Integer.class, "step1lock", false, "STEP1LOCK");
public static final Property StepDesc = new Property(4, String.class, "stepDesc", false, "STEP_DESC");
public static final Property PicJson = new Property(5, String.class, "picJson", false, "PIC_JSON");
public static final Property Step2state = new Property(6, Integer.class, "step2state", false, "STEP2STATE");
public static final Property Step2lock = new Property(7, Integer.class, "step2lock", false, "STEP2LOCK");
public static final Property Direction = new Property(8, Integer.class, "direction", false, "DIRECTION");
public static final Property DirectionPath = new Property(9, String.class, "directionPath", false, "DIRECTION_PATH");
public static final Property Step3state = new Property(10, Integer.class, "step3state", false, "STEP3STATE");
public static final Property Step3lock = new Property(11, Integer.class, "step3lock", false, "STEP3LOCK");
public static final Property Step4state = new Property(12, Integer.class, "step4state", false, "STEP4STATE");
public static final Property Step4lock = new Property(13, Integer.class, "step4lock", false, "STEP4LOCK");
}
public DiyStep2ModelDao(DaoConfig daoConfig, DaoSession daoSession) {
super(daoConfig, daoSession);
}
@Override // org.greenrobot.greendao.AbstractDao
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public Void d(DiyStep2Model diyStep2Model) {
return null;
}
/* JADX INFO: Access modifiers changed from: protected */
@Override // org.greenrobot.greendao.AbstractDao
public final Void a(DiyStep2Model diyStep2Model, long j) {
return null;
}
@Override // org.greenrobot.greendao.AbstractDao
public Void b(Cursor cursor, int i) {
return null;
}
@Override // org.greenrobot.greendao.AbstractDao
protected final boolean i() {
return true;
}
public static void b(Database database, boolean z) {
StringBuilder sb = new StringBuilder();
sb.append("DROP TABLE ");
sb.append(z ? "IF EXISTS " : "");
sb.append("\"DIY_STEP2_MODEL\"");
database.a(sb.toString());
}
public static void a(Database database, boolean z) {
String str = z ? "IF NOT EXISTS " : "";
database.a("CREATE TABLE " + str + "\"DIY_STEP2_MODEL\" (\"CUSTOM_MODEL_ID\" TEXT NOT NULL ,\"MODEL_NAME\" TEXT,\"STEP1STATE\" INTEGER,\"STEP1LOCK\" INTEGER,\"STEP_DESC\" TEXT,\"PIC_JSON\" TEXT,\"STEP2STATE\" INTEGER,\"STEP2LOCK\" INTEGER,\"DIRECTION\" INTEGER,\"DIRECTION_PATH\" TEXT,\"STEP3STATE\" INTEGER,\"STEP3LOCK\" INTEGER,\"STEP4STATE\" INTEGER,\"STEP4LOCK\" INTEGER);");
database.a("CREATE UNIQUE INDEX " + str + "IDX_DIY_STEP2_MODEL_CUSTOM_MODEL_ID ON \"DIY_STEP2_MODEL\" (\"CUSTOM_MODEL_ID\" ASC);");
}
/* JADX INFO: Access modifiers changed from: protected */
@Override // org.greenrobot.greendao.AbstractDao
public final void a(DatabaseStatement databaseStatement, DiyStep2Model diyStep2Model) {
databaseStatement.a();
databaseStatement.a(1, diyStep2Model.getCustomModelId());
String modelName = diyStep2Model.getModelName();
if (modelName != null) {
databaseStatement.a(2, modelName);
}
if (diyStep2Model.getStep1state() != null) {
databaseStatement.a(3, r0.intValue());
}
if (diyStep2Model.getStep1lock() != null) {
databaseStatement.a(4, r0.intValue());
}
String stepDesc = diyStep2Model.getStepDesc();
if (stepDesc != null) {
databaseStatement.a(5, stepDesc);
}
String picJson = diyStep2Model.getPicJson();
if (picJson != null) {
databaseStatement.a(6, picJson);
}
if (diyStep2Model.getStep2state() != null) {
databaseStatement.a(7, r0.intValue());
}
if (diyStep2Model.getStep2lock() != null) {
databaseStatement.a(8, r0.intValue());
}
if (diyStep2Model.getDirection() != null) {
databaseStatement.a(9, r0.intValue());
}
String directionPath = diyStep2Model.getDirectionPath();
if (directionPath != null) {
databaseStatement.a(10, directionPath);
}
if (diyStep2Model.getStep3state() != null) {
databaseStatement.a(11, r0.intValue());
}
if (diyStep2Model.getStep3lock() != null) {
databaseStatement.a(12, r0.intValue());
}
if (diyStep2Model.getStep4state() != null) {
databaseStatement.a(13, r0.intValue());
}
if (diyStep2Model.getStep4lock() != null) {
databaseStatement.a(14, r6.intValue());
}
}
/* JADX INFO: Access modifiers changed from: protected */
@Override // org.greenrobot.greendao.AbstractDao
public final void a(SQLiteStatement sQLiteStatement, DiyStep2Model diyStep2Model) {
sQLiteStatement.clearBindings();
sQLiteStatement.bindString(1, diyStep2Model.getCustomModelId());
String modelName = diyStep2Model.getModelName();
if (modelName != null) {
sQLiteStatement.bindString(2, modelName);
}
if (diyStep2Model.getStep1state() != null) {
sQLiteStatement.bindLong(3, r0.intValue());
}
if (diyStep2Model.getStep1lock() != null) {
sQLiteStatement.bindLong(4, r0.intValue());
}
String stepDesc = diyStep2Model.getStepDesc();
if (stepDesc != null) {
sQLiteStatement.bindString(5, stepDesc);
}
String picJson = diyStep2Model.getPicJson();
if (picJson != null) {
sQLiteStatement.bindString(6, picJson);
}
if (diyStep2Model.getStep2state() != null) {
sQLiteStatement.bindLong(7, r0.intValue());
}
if (diyStep2Model.getStep2lock() != null) {
sQLiteStatement.bindLong(8, r0.intValue());
}
if (diyStep2Model.getDirection() != null) {
sQLiteStatement.bindLong(9, r0.intValue());
}
String directionPath = diyStep2Model.getDirectionPath();
if (directionPath != null) {
sQLiteStatement.bindString(10, directionPath);
}
if (diyStep2Model.getStep3state() != null) {
sQLiteStatement.bindLong(11, r0.intValue());
}
if (diyStep2Model.getStep3lock() != null) {
sQLiteStatement.bindLong(12, r0.intValue());
}
if (diyStep2Model.getStep4state() != null) {
sQLiteStatement.bindLong(13, r0.intValue());
}
if (diyStep2Model.getStep4lock() != null) {
sQLiteStatement.bindLong(14, r6.intValue());
}
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // org.greenrobot.greendao.AbstractDao
public DiyStep2Model a(Cursor cursor, int i) {
int i2 = i + 1;
int i3 = i + 2;
int i4 = i + 3;
int i5 = i + 4;
int i6 = i + 5;
int i7 = i + 6;
int i8 = i + 7;
int i9 = i + 8;
int i10 = i + 9;
int i11 = i + 10;
int i12 = i + 11;
int i13 = i + 12;
int i14 = i + 13;
return new DiyStep2Model(cursor.getString(i + 0), cursor.isNull(i2) ? null : cursor.getString(i2), cursor.isNull(i3) ? null : Integer.valueOf(cursor.getInt(i3)), cursor.isNull(i4) ? null : Integer.valueOf(cursor.getInt(i4)), cursor.isNull(i5) ? null : cursor.getString(i5), cursor.isNull(i6) ? null : cursor.getString(i6), cursor.isNull(i7) ? null : Integer.valueOf(cursor.getInt(i7)), cursor.isNull(i8) ? null : Integer.valueOf(cursor.getInt(i8)), cursor.isNull(i9) ? null : Integer.valueOf(cursor.getInt(i9)), cursor.isNull(i10) ? null : cursor.getString(i10), cursor.isNull(i11) ? null : Integer.valueOf(cursor.getInt(i11)), cursor.isNull(i12) ? null : Integer.valueOf(cursor.getInt(i12)), cursor.isNull(i13) ? null : Integer.valueOf(cursor.getInt(i13)), cursor.isNull(i14) ? null : Integer.valueOf(cursor.getInt(i14)));
}
@Override // org.greenrobot.greendao.AbstractDao
public void a(Cursor cursor, DiyStep2Model diyStep2Model, int i) {
diyStep2Model.setCustomModelId(cursor.getString(i + 0));
int i2 = i + 1;
diyStep2Model.setModelName(cursor.isNull(i2) ? null : cursor.getString(i2));
int i3 = i + 2;
diyStep2Model.setStep1state(cursor.isNull(i3) ? null : Integer.valueOf(cursor.getInt(i3)));
int i4 = i + 3;
diyStep2Model.setStep1lock(cursor.isNull(i4) ? null : Integer.valueOf(cursor.getInt(i4)));
int i5 = i + 4;
diyStep2Model.setStepDesc(cursor.isNull(i5) ? null : cursor.getString(i5));
int i6 = i + 5;
diyStep2Model.setPicJson(cursor.isNull(i6) ? null : cursor.getString(i6));
int i7 = i + 6;
diyStep2Model.setStep2state(cursor.isNull(i7) ? null : Integer.valueOf(cursor.getInt(i7)));
int i8 = i + 7;
diyStep2Model.setStep2lock(cursor.isNull(i8) ? null : Integer.valueOf(cursor.getInt(i8)));
int i9 = i + 8;
diyStep2Model.setDirection(cursor.isNull(i9) ? null : Integer.valueOf(cursor.getInt(i9)));
int i10 = i + 9;
diyStep2Model.setDirectionPath(cursor.isNull(i10) ? null : cursor.getString(i10));
int i11 = i + 10;
diyStep2Model.setStep3state(cursor.isNull(i11) ? null : Integer.valueOf(cursor.getInt(i11)));
int i12 = i + 11;
diyStep2Model.setStep3lock(cursor.isNull(i12) ? null : Integer.valueOf(cursor.getInt(i12)));
int i13 = i + 12;
diyStep2Model.setStep4state(cursor.isNull(i13) ? null : Integer.valueOf(cursor.getInt(i13)));
int i14 = i + 13;
diyStep2Model.setStep4lock(cursor.isNull(i14) ? null : Integer.valueOf(cursor.getInt(i14)));
}
}