380 lines
19 KiB
Java
380 lines
19 KiB
Java
package com.ubt.jimu.gen;
|
|
|
|
import android.database.Cursor;
|
|
import android.database.sqlite.SQLiteStatement;
|
|
import com.liulishuo.filedownloader.model.FileDownloadModel;
|
|
import com.tencent.open.SocialConstants;
|
|
import com.ubt.jimu.base.db.diy.DiyDBModel;
|
|
import com.ubt.jimu.controller.data.widget.JockstickDataConverter;
|
|
import com.ubt.jimu.unity.bluetooth.UnityActivity;
|
|
import com.unity3d.ads.metadata.MediationMetaData;
|
|
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 DiyDBModelDao extends AbstractDao<DiyDBModel, Long> {
|
|
public static final String TABLENAME = "DIY_DBMODEL";
|
|
|
|
public static class Properties {
|
|
public static final Property Id = new Property(0, Long.class, JockstickDataConverter.ID, true, FileDownloadModel.ID);
|
|
public static final Property CustomModelId = new Property(1, String.class, "customModelId", false, "CUSTOM_MODEL_ID");
|
|
public static final Property ModelName = new Property(2, String.class, UnityActivity.pModelName, false, "MODEL_NAME");
|
|
public static final Property CustomModelCategory = new Property(3, Integer.TYPE, "customModelCategory", false, "CUSTOM_MODEL_CATEGORY");
|
|
public static final Property CustomModelCreatetime = new Property(4, Long.TYPE, "customModelCreatetime", false, "CUSTOM_MODEL_CREATETIME");
|
|
public static final Property ModifyTime = new Property(5, Long.TYPE, "modifyTime", false, "MODIFY_TIME");
|
|
public static final Property IsModify = new Property(6, Boolean.class, "isModify", false, "IS_MODIFY");
|
|
public static final Property ModelId = new Property(7, Integer.class, "modelId", false, "MODEL_ID");
|
|
public static final Property Useable = new Property(8, Boolean.TYPE, "useable", false, "USEABLE");
|
|
public static final Property Version = new Property(9, String.class, MediationMetaData.KEY_VERSION, false, "VERSION");
|
|
public static final Property IsDelete = new Property(10, Boolean.TYPE, "isDelete", false, "IS_DELETE");
|
|
public static final Property Description = new Property(11, String.class, SocialConstants.PARAM_COMMENT, false, "DESCRIPTION");
|
|
public static final Property ModelCreatedId = new Property(12, String.class, "modelCreatedId", false, "MODEL_CREATED_ID");
|
|
public static final Property CompressImagePath = new Property(13, String.class, "compressImagePath", false, "COMPRESS_IMAGE_PATH");
|
|
public static final Property LastUploadTime = new Property(14, Long.TYPE, "lastUploadTime", false, "LAST_UPLOAD_TIME");
|
|
public static final Property FilePath = new Property(15, String.class, "filePath", false, "FILE_PATH");
|
|
public static final Property UploadState = new Property(16, Integer.class, "uploadState", false, "UPLOAD_STATE");
|
|
public static final Property Step1state = new Property(17, Integer.class, "step1state", false, "STEP1STATE");
|
|
public static final Property Step1Desc = new Property(18, String.class, "step1Desc", false, "STEP1_DESC");
|
|
public static final Property Step2state = new Property(19, Integer.class, "step2state", false, "STEP2STATE");
|
|
public static final Property Step3state = new Property(20, Integer.class, "step3state", false, "STEP3STATE");
|
|
public static final Property Step4state = new Property(21, Integer.class, "step4state", false, "STEP4STATE");
|
|
public static final Property Step5state = new Property(22, Integer.class, "step5state", false, "STEP5STATE");
|
|
public static final Property Step5desc = new Property(23, String.class, "step5desc", false, "STEP5DESC");
|
|
public static final Property Step5PathDesc = new Property(24, String.class, "step5PathDesc", false, "STEP5_PATH_DESC");
|
|
public static final Property Mystep = new Property(25, Integer.class, "mystep", false, "MYSTEP");
|
|
public static final Property ActionPath = new Property(26, String.class, "actionPath", false, "ACTION_PATH");
|
|
public static final Property CompleteState = new Property(27, Integer.TYPE, "completeState", false, "COMPLETE_STATE");
|
|
}
|
|
|
|
public DiyDBModelDao(DaoConfig daoConfig, DaoSession daoSession) {
|
|
super(daoConfig, daoSession);
|
|
}
|
|
|
|
@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_DBMODEL\"");
|
|
database.a(sb.toString());
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public Long b(Cursor cursor, int i) {
|
|
int i2 = i + 0;
|
|
if (cursor.isNull(i2)) {
|
|
return null;
|
|
}
|
|
return Long.valueOf(cursor.getLong(i2));
|
|
}
|
|
|
|
public static void a(Database database, boolean z) {
|
|
String str = z ? "IF NOT EXISTS " : "";
|
|
database.a("CREATE TABLE " + str + "\"DIY_DBMODEL\" (\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT ,\"CUSTOM_MODEL_ID\" TEXT NOT NULL ,\"MODEL_NAME\" TEXT NOT NULL ,\"CUSTOM_MODEL_CATEGORY\" INTEGER NOT NULL ,\"CUSTOM_MODEL_CREATETIME\" INTEGER NOT NULL ,\"MODIFY_TIME\" INTEGER NOT NULL ,\"IS_MODIFY\" INTEGER,\"MODEL_ID\" INTEGER,\"USEABLE\" INTEGER NOT NULL ,\"VERSION\" TEXT,\"IS_DELETE\" INTEGER NOT NULL ,\"DESCRIPTION\" TEXT,\"MODEL_CREATED_ID\" TEXT,\"COMPRESS_IMAGE_PATH\" TEXT,\"LAST_UPLOAD_TIME\" INTEGER NOT NULL ,\"FILE_PATH\" TEXT,\"UPLOAD_STATE\" INTEGER,\"STEP1STATE\" INTEGER,\"STEP1_DESC\" TEXT,\"STEP2STATE\" INTEGER,\"STEP3STATE\" INTEGER,\"STEP4STATE\" INTEGER,\"STEP5STATE\" INTEGER,\"STEP5DESC\" TEXT,\"STEP5_PATH_DESC\" TEXT,\"MYSTEP\" INTEGER,\"ACTION_PATH\" TEXT,\"COMPLETE_STATE\" INTEGER NOT NULL );");
|
|
database.a("CREATE UNIQUE INDEX " + str + "IDX_DIY_DBMODEL_CUSTOM_MODEL_ID ON \"DIY_DBMODEL\" (\"CUSTOM_MODEL_ID\" ASC);");
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public final void a(DatabaseStatement databaseStatement, DiyDBModel diyDBModel) {
|
|
databaseStatement.a();
|
|
Long id = diyDBModel.getId();
|
|
if (id != null) {
|
|
databaseStatement.a(1, id.longValue());
|
|
}
|
|
databaseStatement.a(2, diyDBModel.getCustomModelId());
|
|
databaseStatement.a(3, diyDBModel.getModelName());
|
|
databaseStatement.a(4, diyDBModel.getCustomModelCategory());
|
|
databaseStatement.a(5, diyDBModel.getCustomModelCreatetime());
|
|
databaseStatement.a(6, diyDBModel.getModifyTime());
|
|
Boolean isModify = diyDBModel.getIsModify();
|
|
if (isModify != null) {
|
|
databaseStatement.a(7, isModify.booleanValue() ? 1L : 0L);
|
|
}
|
|
if (diyDBModel.getModelId() != null) {
|
|
databaseStatement.a(8, r0.intValue());
|
|
}
|
|
databaseStatement.a(9, diyDBModel.getUseable() ? 1L : 0L);
|
|
String version = diyDBModel.getVersion();
|
|
if (version != null) {
|
|
databaseStatement.a(10, version);
|
|
}
|
|
databaseStatement.a(11, diyDBModel.getIsDelete() ? 1L : 0L);
|
|
String description = diyDBModel.getDescription();
|
|
if (description != null) {
|
|
databaseStatement.a(12, description);
|
|
}
|
|
String modelCreatedId = diyDBModel.getModelCreatedId();
|
|
if (modelCreatedId != null) {
|
|
databaseStatement.a(13, modelCreatedId);
|
|
}
|
|
String compressImagePath = diyDBModel.getCompressImagePath();
|
|
if (compressImagePath != null) {
|
|
databaseStatement.a(14, compressImagePath);
|
|
}
|
|
databaseStatement.a(15, diyDBModel.getLastUploadTime());
|
|
String filePath = diyDBModel.getFilePath();
|
|
if (filePath != null) {
|
|
databaseStatement.a(16, filePath);
|
|
}
|
|
if (diyDBModel.getUploadState() != null) {
|
|
databaseStatement.a(17, r0.intValue());
|
|
}
|
|
if (diyDBModel.getStep1state() != null) {
|
|
databaseStatement.a(18, r0.intValue());
|
|
}
|
|
String step1Desc = diyDBModel.getStep1Desc();
|
|
if (step1Desc != null) {
|
|
databaseStatement.a(19, step1Desc);
|
|
}
|
|
if (diyDBModel.getStep2state() != null) {
|
|
databaseStatement.a(20, r0.intValue());
|
|
}
|
|
if (diyDBModel.getStep3state() != null) {
|
|
databaseStatement.a(21, r0.intValue());
|
|
}
|
|
if (diyDBModel.getStep4state() != null) {
|
|
databaseStatement.a(22, r0.intValue());
|
|
}
|
|
if (diyDBModel.getStep5state() != null) {
|
|
databaseStatement.a(23, r0.intValue());
|
|
}
|
|
String step5desc = diyDBModel.getStep5desc();
|
|
if (step5desc != null) {
|
|
databaseStatement.a(24, step5desc);
|
|
}
|
|
String step5PathDesc = diyDBModel.getStep5PathDesc();
|
|
if (step5PathDesc != null) {
|
|
databaseStatement.a(25, step5PathDesc);
|
|
}
|
|
if (diyDBModel.getMystep() != null) {
|
|
databaseStatement.a(26, r0.intValue());
|
|
}
|
|
String actionPath = diyDBModel.getActionPath();
|
|
if (actionPath != null) {
|
|
databaseStatement.a(27, actionPath);
|
|
}
|
|
databaseStatement.a(28, diyDBModel.getCompleteState());
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public final void a(SQLiteStatement sQLiteStatement, DiyDBModel diyDBModel) {
|
|
sQLiteStatement.clearBindings();
|
|
Long id = diyDBModel.getId();
|
|
if (id != null) {
|
|
sQLiteStatement.bindLong(1, id.longValue());
|
|
}
|
|
sQLiteStatement.bindString(2, diyDBModel.getCustomModelId());
|
|
sQLiteStatement.bindString(3, diyDBModel.getModelName());
|
|
sQLiteStatement.bindLong(4, diyDBModel.getCustomModelCategory());
|
|
sQLiteStatement.bindLong(5, diyDBModel.getCustomModelCreatetime());
|
|
sQLiteStatement.bindLong(6, diyDBModel.getModifyTime());
|
|
Boolean isModify = diyDBModel.getIsModify();
|
|
if (isModify != null) {
|
|
sQLiteStatement.bindLong(7, isModify.booleanValue() ? 1L : 0L);
|
|
}
|
|
if (diyDBModel.getModelId() != null) {
|
|
sQLiteStatement.bindLong(8, r0.intValue());
|
|
}
|
|
sQLiteStatement.bindLong(9, diyDBModel.getUseable() ? 1L : 0L);
|
|
String version = diyDBModel.getVersion();
|
|
if (version != null) {
|
|
sQLiteStatement.bindString(10, version);
|
|
}
|
|
sQLiteStatement.bindLong(11, diyDBModel.getIsDelete() ? 1L : 0L);
|
|
String description = diyDBModel.getDescription();
|
|
if (description != null) {
|
|
sQLiteStatement.bindString(12, description);
|
|
}
|
|
String modelCreatedId = diyDBModel.getModelCreatedId();
|
|
if (modelCreatedId != null) {
|
|
sQLiteStatement.bindString(13, modelCreatedId);
|
|
}
|
|
String compressImagePath = diyDBModel.getCompressImagePath();
|
|
if (compressImagePath != null) {
|
|
sQLiteStatement.bindString(14, compressImagePath);
|
|
}
|
|
sQLiteStatement.bindLong(15, diyDBModel.getLastUploadTime());
|
|
String filePath = diyDBModel.getFilePath();
|
|
if (filePath != null) {
|
|
sQLiteStatement.bindString(16, filePath);
|
|
}
|
|
if (diyDBModel.getUploadState() != null) {
|
|
sQLiteStatement.bindLong(17, r0.intValue());
|
|
}
|
|
if (diyDBModel.getStep1state() != null) {
|
|
sQLiteStatement.bindLong(18, r0.intValue());
|
|
}
|
|
String step1Desc = diyDBModel.getStep1Desc();
|
|
if (step1Desc != null) {
|
|
sQLiteStatement.bindString(19, step1Desc);
|
|
}
|
|
if (diyDBModel.getStep2state() != null) {
|
|
sQLiteStatement.bindLong(20, r0.intValue());
|
|
}
|
|
if (diyDBModel.getStep3state() != null) {
|
|
sQLiteStatement.bindLong(21, r0.intValue());
|
|
}
|
|
if (diyDBModel.getStep4state() != null) {
|
|
sQLiteStatement.bindLong(22, r0.intValue());
|
|
}
|
|
if (diyDBModel.getStep5state() != null) {
|
|
sQLiteStatement.bindLong(23, r0.intValue());
|
|
}
|
|
String step5desc = diyDBModel.getStep5desc();
|
|
if (step5desc != null) {
|
|
sQLiteStatement.bindString(24, step5desc);
|
|
}
|
|
String step5PathDesc = diyDBModel.getStep5PathDesc();
|
|
if (step5PathDesc != null) {
|
|
sQLiteStatement.bindString(25, step5PathDesc);
|
|
}
|
|
if (diyDBModel.getMystep() != null) {
|
|
sQLiteStatement.bindLong(26, r0.intValue());
|
|
}
|
|
String actionPath = diyDBModel.getActionPath();
|
|
if (actionPath != null) {
|
|
sQLiteStatement.bindString(27, actionPath);
|
|
}
|
|
sQLiteStatement.bindLong(28, diyDBModel.getCompleteState());
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public DiyDBModel a(Cursor cursor, int i) {
|
|
Boolean valueOf;
|
|
int i2 = i + 0;
|
|
Long valueOf2 = cursor.isNull(i2) ? null : Long.valueOf(cursor.getLong(i2));
|
|
String string = cursor.getString(i + 1);
|
|
String string2 = cursor.getString(i + 2);
|
|
int i3 = cursor.getInt(i + 3);
|
|
long j = cursor.getLong(i + 4);
|
|
long j2 = cursor.getLong(i + 5);
|
|
int i4 = i + 6;
|
|
if (cursor.isNull(i4)) {
|
|
valueOf = null;
|
|
} else {
|
|
valueOf = Boolean.valueOf(cursor.getShort(i4) != 0);
|
|
}
|
|
int i5 = i + 7;
|
|
Integer valueOf3 = cursor.isNull(i5) ? null : Integer.valueOf(cursor.getInt(i5));
|
|
boolean z = cursor.getShort(i + 8) != 0;
|
|
int i6 = i + 9;
|
|
String string3 = cursor.isNull(i6) ? null : cursor.getString(i6);
|
|
boolean z2 = cursor.getShort(i + 10) != 0;
|
|
int i7 = i + 11;
|
|
String string4 = cursor.isNull(i7) ? null : cursor.getString(i7);
|
|
int i8 = i + 12;
|
|
String string5 = cursor.isNull(i8) ? null : cursor.getString(i8);
|
|
int i9 = i + 13;
|
|
String string6 = cursor.isNull(i9) ? null : cursor.getString(i9);
|
|
long j3 = cursor.getLong(i + 14);
|
|
int i10 = i + 15;
|
|
String string7 = cursor.isNull(i10) ? null : cursor.getString(i10);
|
|
int i11 = i + 16;
|
|
Integer valueOf4 = cursor.isNull(i11) ? null : Integer.valueOf(cursor.getInt(i11));
|
|
int i12 = i + 17;
|
|
Integer valueOf5 = cursor.isNull(i12) ? null : Integer.valueOf(cursor.getInt(i12));
|
|
int i13 = i + 18;
|
|
String string8 = cursor.isNull(i13) ? null : cursor.getString(i13);
|
|
int i14 = i + 19;
|
|
Integer valueOf6 = cursor.isNull(i14) ? null : Integer.valueOf(cursor.getInt(i14));
|
|
int i15 = i + 20;
|
|
Integer valueOf7 = cursor.isNull(i15) ? null : Integer.valueOf(cursor.getInt(i15));
|
|
int i16 = i + 21;
|
|
Integer valueOf8 = cursor.isNull(i16) ? null : Integer.valueOf(cursor.getInt(i16));
|
|
int i17 = i + 22;
|
|
Integer valueOf9 = cursor.isNull(i17) ? null : Integer.valueOf(cursor.getInt(i17));
|
|
int i18 = i + 23;
|
|
String string9 = cursor.isNull(i18) ? null : cursor.getString(i18);
|
|
int i19 = i + 24;
|
|
String string10 = cursor.isNull(i19) ? null : cursor.getString(i19);
|
|
int i20 = i + 25;
|
|
Integer valueOf10 = cursor.isNull(i20) ? null : Integer.valueOf(cursor.getInt(i20));
|
|
int i21 = i + 26;
|
|
return new DiyDBModel(valueOf2, string, string2, i3, j, j2, valueOf, valueOf3, z, string3, z2, string4, string5, string6, j3, string7, valueOf4, valueOf5, string8, valueOf6, valueOf7, valueOf8, valueOf9, string9, string10, valueOf10, cursor.isNull(i21) ? null : cursor.getString(i21), cursor.getInt(i + 27));
|
|
}
|
|
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public void a(Cursor cursor, DiyDBModel diyDBModel, int i) {
|
|
Boolean valueOf;
|
|
int i2 = i + 0;
|
|
diyDBModel.setId(cursor.isNull(i2) ? null : Long.valueOf(cursor.getLong(i2)));
|
|
diyDBModel.setCustomModelId(cursor.getString(i + 1));
|
|
diyDBModel.setModelName(cursor.getString(i + 2));
|
|
diyDBModel.setCustomModelCategory(cursor.getInt(i + 3));
|
|
diyDBModel.setCustomModelCreatetime(cursor.getLong(i + 4));
|
|
diyDBModel.setModifyTime(cursor.getLong(i + 5));
|
|
int i3 = i + 6;
|
|
if (cursor.isNull(i3)) {
|
|
valueOf = null;
|
|
} else {
|
|
valueOf = Boolean.valueOf(cursor.getShort(i3) != 0);
|
|
}
|
|
diyDBModel.setIsModify(valueOf);
|
|
int i4 = i + 7;
|
|
diyDBModel.setModelId(cursor.isNull(i4) ? null : Integer.valueOf(cursor.getInt(i4)));
|
|
diyDBModel.setUseable(cursor.getShort(i + 8) != 0);
|
|
int i5 = i + 9;
|
|
diyDBModel.setVersion(cursor.isNull(i5) ? null : cursor.getString(i5));
|
|
diyDBModel.setIsDelete(cursor.getShort(i + 10) != 0);
|
|
int i6 = i + 11;
|
|
diyDBModel.setDescription(cursor.isNull(i6) ? null : cursor.getString(i6));
|
|
int i7 = i + 12;
|
|
diyDBModel.setModelCreatedId(cursor.isNull(i7) ? null : cursor.getString(i7));
|
|
int i8 = i + 13;
|
|
diyDBModel.setCompressImagePath(cursor.isNull(i8) ? null : cursor.getString(i8));
|
|
diyDBModel.setLastUploadTime(cursor.getLong(i + 14));
|
|
int i9 = i + 15;
|
|
diyDBModel.setFilePath(cursor.isNull(i9) ? null : cursor.getString(i9));
|
|
int i10 = i + 16;
|
|
diyDBModel.setUploadState(cursor.isNull(i10) ? null : Integer.valueOf(cursor.getInt(i10)));
|
|
int i11 = i + 17;
|
|
diyDBModel.setStep1state(cursor.isNull(i11) ? null : Integer.valueOf(cursor.getInt(i11)));
|
|
int i12 = i + 18;
|
|
diyDBModel.setStep1Desc(cursor.isNull(i12) ? null : cursor.getString(i12));
|
|
int i13 = i + 19;
|
|
diyDBModel.setStep2state(cursor.isNull(i13) ? null : Integer.valueOf(cursor.getInt(i13)));
|
|
int i14 = i + 20;
|
|
diyDBModel.setStep3state(cursor.isNull(i14) ? null : Integer.valueOf(cursor.getInt(i14)));
|
|
int i15 = i + 21;
|
|
diyDBModel.setStep4state(cursor.isNull(i15) ? null : Integer.valueOf(cursor.getInt(i15)));
|
|
int i16 = i + 22;
|
|
diyDBModel.setStep5state(cursor.isNull(i16) ? null : Integer.valueOf(cursor.getInt(i16)));
|
|
int i17 = i + 23;
|
|
diyDBModel.setStep5desc(cursor.isNull(i17) ? null : cursor.getString(i17));
|
|
int i18 = i + 24;
|
|
diyDBModel.setStep5PathDesc(cursor.isNull(i18) ? null : cursor.getString(i18));
|
|
int i19 = i + 25;
|
|
diyDBModel.setMystep(cursor.isNull(i19) ? null : Integer.valueOf(cursor.getInt(i19)));
|
|
int i20 = i + 26;
|
|
diyDBModel.setActionPath(cursor.isNull(i20) ? null : cursor.getString(i20));
|
|
diyDBModel.setCompleteState(cursor.getInt(i + 27));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public final Long a(DiyDBModel diyDBModel, long j) {
|
|
diyDBModel.setId(Long.valueOf(j));
|
|
return Long.valueOf(j);
|
|
}
|
|
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
|
public Long d(DiyDBModel diyDBModel) {
|
|
if (diyDBModel != null) {
|
|
return diyDBModel.getId();
|
|
}
|
|
return null;
|
|
}
|
|
}
|