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.DiyDBModelCopy; 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 DiyDBModelCopyDao extends AbstractDao { public static final String TABLENAME = "DIY_DBMODEL_COPY"; 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 FilePath = new Property(14, String.class, "filePath", false, "FILE_PATH"); public static final Property UploadState = new Property(15, Integer.class, "uploadState", false, "UPLOAD_STATE"); public static final Property Step1state = new Property(16, Integer.class, "step1state", false, "STEP1STATE"); public static final Property Step1Desc = new Property(17, String.class, "step1Desc", false, "STEP1_DESC"); public static final Property Step2state = new Property(18, Integer.class, "step2state", false, "STEP2STATE"); public static final Property Step3state = new Property(19, Integer.class, "step3state", false, "STEP3STATE"); public static final Property Step4state = new Property(20, Integer.class, "step4state", false, "STEP4STATE"); public static final Property Step5state = new Property(21, Integer.class, "step5state", false, "STEP5STATE"); public static final Property Step5desc = new Property(22, String.class, "step5desc", false, "STEP5DESC"); public static final Property Step5PathDesc = new Property(23, String.class, "step5PathDesc", false, "STEP5_PATH_DESC"); public static final Property Mystep = new Property(24, Integer.class, "mystep", false, "MYSTEP"); public static final Property ActionPath = new Property(25, String.class, "actionPath", false, "ACTION_PATH"); } public DiyDBModelCopyDao(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_COPY\""); 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_COPY\" (\"_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,\"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);"); database.a("CREATE UNIQUE INDEX " + str + "IDX_DIY_DBMODEL_COPY_CUSTOM_MODEL_ID ON \"DIY_DBMODEL_COPY\" (\"CUSTOM_MODEL_ID\" ASC);"); database.a("CREATE UNIQUE INDEX " + str + "IDX_DIY_DBMODEL_COPY_MODEL_NAME ON \"DIY_DBMODEL_COPY\" (\"MODEL_NAME\" ASC);"); } /* JADX INFO: Access modifiers changed from: protected */ @Override // org.greenrobot.greendao.AbstractDao public final void a(DatabaseStatement databaseStatement, DiyDBModelCopy diyDBModelCopy) { databaseStatement.a(); Long id = diyDBModelCopy.getId(); if (id != null) { databaseStatement.a(1, id.longValue()); } databaseStatement.a(2, diyDBModelCopy.getCustomModelId()); databaseStatement.a(3, diyDBModelCopy.getModelName()); databaseStatement.a(4, diyDBModelCopy.getCustomModelCategory()); databaseStatement.a(5, diyDBModelCopy.getCustomModelCreatetime()); databaseStatement.a(6, diyDBModelCopy.getModifyTime()); Boolean isModify = diyDBModelCopy.getIsModify(); if (isModify != null) { databaseStatement.a(7, isModify.booleanValue() ? 1L : 0L); } if (diyDBModelCopy.getModelId() != null) { databaseStatement.a(8, r0.intValue()); } databaseStatement.a(9, diyDBModelCopy.getUseable() ? 1L : 0L); String version = diyDBModelCopy.getVersion(); if (version != null) { databaseStatement.a(10, version); } databaseStatement.a(11, diyDBModelCopy.getIsDelete() ? 1L : 0L); String description = diyDBModelCopy.getDescription(); if (description != null) { databaseStatement.a(12, description); } String modelCreatedId = diyDBModelCopy.getModelCreatedId(); if (modelCreatedId != null) { databaseStatement.a(13, modelCreatedId); } String compressImagePath = diyDBModelCopy.getCompressImagePath(); if (compressImagePath != null) { databaseStatement.a(14, compressImagePath); } String filePath = diyDBModelCopy.getFilePath(); if (filePath != null) { databaseStatement.a(15, filePath); } if (diyDBModelCopy.getUploadState() != null) { databaseStatement.a(16, r0.intValue()); } if (diyDBModelCopy.getStep1state() != null) { databaseStatement.a(17, r0.intValue()); } String step1Desc = diyDBModelCopy.getStep1Desc(); if (step1Desc != null) { databaseStatement.a(18, step1Desc); } if (diyDBModelCopy.getStep2state() != null) { databaseStatement.a(19, r0.intValue()); } if (diyDBModelCopy.getStep3state() != null) { databaseStatement.a(20, r0.intValue()); } if (diyDBModelCopy.getStep4state() != null) { databaseStatement.a(21, r0.intValue()); } if (diyDBModelCopy.getStep5state() != null) { databaseStatement.a(22, r0.intValue()); } String step5desc = diyDBModelCopy.getStep5desc(); if (step5desc != null) { databaseStatement.a(23, step5desc); } String step5PathDesc = diyDBModelCopy.getStep5PathDesc(); if (step5PathDesc != null) { databaseStatement.a(24, step5PathDesc); } if (diyDBModelCopy.getMystep() != null) { databaseStatement.a(25, r0.intValue()); } String actionPath = diyDBModelCopy.getActionPath(); if (actionPath != null) { databaseStatement.a(26, actionPath); } } /* JADX INFO: Access modifiers changed from: protected */ @Override // org.greenrobot.greendao.AbstractDao public final void a(SQLiteStatement sQLiteStatement, DiyDBModelCopy diyDBModelCopy) { sQLiteStatement.clearBindings(); Long id = diyDBModelCopy.getId(); if (id != null) { sQLiteStatement.bindLong(1, id.longValue()); } sQLiteStatement.bindString(2, diyDBModelCopy.getCustomModelId()); sQLiteStatement.bindString(3, diyDBModelCopy.getModelName()); sQLiteStatement.bindLong(4, diyDBModelCopy.getCustomModelCategory()); sQLiteStatement.bindLong(5, diyDBModelCopy.getCustomModelCreatetime()); sQLiteStatement.bindLong(6, diyDBModelCopy.getModifyTime()); Boolean isModify = diyDBModelCopy.getIsModify(); if (isModify != null) { sQLiteStatement.bindLong(7, isModify.booleanValue() ? 1L : 0L); } if (diyDBModelCopy.getModelId() != null) { sQLiteStatement.bindLong(8, r0.intValue()); } sQLiteStatement.bindLong(9, diyDBModelCopy.getUseable() ? 1L : 0L); String version = diyDBModelCopy.getVersion(); if (version != null) { sQLiteStatement.bindString(10, version); } sQLiteStatement.bindLong(11, diyDBModelCopy.getIsDelete() ? 1L : 0L); String description = diyDBModelCopy.getDescription(); if (description != null) { sQLiteStatement.bindString(12, description); } String modelCreatedId = diyDBModelCopy.getModelCreatedId(); if (modelCreatedId != null) { sQLiteStatement.bindString(13, modelCreatedId); } String compressImagePath = diyDBModelCopy.getCompressImagePath(); if (compressImagePath != null) { sQLiteStatement.bindString(14, compressImagePath); } String filePath = diyDBModelCopy.getFilePath(); if (filePath != null) { sQLiteStatement.bindString(15, filePath); } if (diyDBModelCopy.getUploadState() != null) { sQLiteStatement.bindLong(16, r0.intValue()); } if (diyDBModelCopy.getStep1state() != null) { sQLiteStatement.bindLong(17, r0.intValue()); } String step1Desc = diyDBModelCopy.getStep1Desc(); if (step1Desc != null) { sQLiteStatement.bindString(18, step1Desc); } if (diyDBModelCopy.getStep2state() != null) { sQLiteStatement.bindLong(19, r0.intValue()); } if (diyDBModelCopy.getStep3state() != null) { sQLiteStatement.bindLong(20, r0.intValue()); } if (diyDBModelCopy.getStep4state() != null) { sQLiteStatement.bindLong(21, r0.intValue()); } if (diyDBModelCopy.getStep5state() != null) { sQLiteStatement.bindLong(22, r0.intValue()); } String step5desc = diyDBModelCopy.getStep5desc(); if (step5desc != null) { sQLiteStatement.bindString(23, step5desc); } String step5PathDesc = diyDBModelCopy.getStep5PathDesc(); if (step5PathDesc != null) { sQLiteStatement.bindString(24, step5PathDesc); } if (diyDBModelCopy.getMystep() != null) { sQLiteStatement.bindLong(25, r0.intValue()); } String actionPath = diyDBModelCopy.getActionPath(); if (actionPath != null) { sQLiteStatement.bindString(26, actionPath); } } /* JADX WARN: Can't rename method to resolve collision */ @Override // org.greenrobot.greendao.AbstractDao public DiyDBModelCopy 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); int i10 = i + 14; String string7 = cursor.isNull(i10) ? null : cursor.getString(i10); int i11 = i + 15; Integer valueOf4 = cursor.isNull(i11) ? null : Integer.valueOf(cursor.getInt(i11)); int i12 = i + 16; Integer valueOf5 = cursor.isNull(i12) ? null : Integer.valueOf(cursor.getInt(i12)); int i13 = i + 17; String string8 = cursor.isNull(i13) ? null : cursor.getString(i13); int i14 = i + 18; Integer valueOf6 = cursor.isNull(i14) ? null : Integer.valueOf(cursor.getInt(i14)); int i15 = i + 19; Integer valueOf7 = cursor.isNull(i15) ? null : Integer.valueOf(cursor.getInt(i15)); int i16 = i + 20; Integer valueOf8 = cursor.isNull(i16) ? null : Integer.valueOf(cursor.getInt(i16)); int i17 = i + 21; Integer valueOf9 = cursor.isNull(i17) ? null : Integer.valueOf(cursor.getInt(i17)); int i18 = i + 22; String string9 = cursor.isNull(i18) ? null : cursor.getString(i18); int i19 = i + 23; String string10 = cursor.isNull(i19) ? null : cursor.getString(i19); int i20 = i + 24; Integer valueOf10 = cursor.isNull(i20) ? null : Integer.valueOf(cursor.getInt(i20)); int i21 = i + 25; return new DiyDBModelCopy(valueOf2, string, string2, i3, j, j2, valueOf, valueOf3, z, string3, z2, string4, string5, string6, string7, valueOf4, valueOf5, string8, valueOf6, valueOf7, valueOf8, valueOf9, string9, string10, valueOf10, cursor.isNull(i21) ? null : cursor.getString(i21)); } @Override // org.greenrobot.greendao.AbstractDao public void a(Cursor cursor, DiyDBModelCopy diyDBModelCopy, int i) { Boolean valueOf; int i2 = i + 0; diyDBModelCopy.setId(cursor.isNull(i2) ? null : Long.valueOf(cursor.getLong(i2))); diyDBModelCopy.setCustomModelId(cursor.getString(i + 1)); diyDBModelCopy.setModelName(cursor.getString(i + 2)); diyDBModelCopy.setCustomModelCategory(cursor.getInt(i + 3)); diyDBModelCopy.setCustomModelCreatetime(cursor.getLong(i + 4)); diyDBModelCopy.setModifyTime(cursor.getLong(i + 5)); int i3 = i + 6; if (cursor.isNull(i3)) { valueOf = null; } else { valueOf = Boolean.valueOf(cursor.getShort(i3) != 0); } diyDBModelCopy.setIsModify(valueOf); int i4 = i + 7; diyDBModelCopy.setModelId(cursor.isNull(i4) ? null : Integer.valueOf(cursor.getInt(i4))); diyDBModelCopy.setUseable(cursor.getShort(i + 8) != 0); int i5 = i + 9; diyDBModelCopy.setVersion(cursor.isNull(i5) ? null : cursor.getString(i5)); diyDBModelCopy.setIsDelete(cursor.getShort(i + 10) != 0); int i6 = i + 11; diyDBModelCopy.setDescription(cursor.isNull(i6) ? null : cursor.getString(i6)); int i7 = i + 12; diyDBModelCopy.setModelCreatedId(cursor.isNull(i7) ? null : cursor.getString(i7)); int i8 = i + 13; diyDBModelCopy.setCompressImagePath(cursor.isNull(i8) ? null : cursor.getString(i8)); int i9 = i + 14; diyDBModelCopy.setFilePath(cursor.isNull(i9) ? null : cursor.getString(i9)); int i10 = i + 15; diyDBModelCopy.setUploadState(cursor.isNull(i10) ? null : Integer.valueOf(cursor.getInt(i10))); int i11 = i + 16; diyDBModelCopy.setStep1state(cursor.isNull(i11) ? null : Integer.valueOf(cursor.getInt(i11))); int i12 = i + 17; diyDBModelCopy.setStep1Desc(cursor.isNull(i12) ? null : cursor.getString(i12)); int i13 = i + 18; diyDBModelCopy.setStep2state(cursor.isNull(i13) ? null : Integer.valueOf(cursor.getInt(i13))); int i14 = i + 19; diyDBModelCopy.setStep3state(cursor.isNull(i14) ? null : Integer.valueOf(cursor.getInt(i14))); int i15 = i + 20; diyDBModelCopy.setStep4state(cursor.isNull(i15) ? null : Integer.valueOf(cursor.getInt(i15))); int i16 = i + 21; diyDBModelCopy.setStep5state(cursor.isNull(i16) ? null : Integer.valueOf(cursor.getInt(i16))); int i17 = i + 22; diyDBModelCopy.setStep5desc(cursor.isNull(i17) ? null : cursor.getString(i17)); int i18 = i + 23; diyDBModelCopy.setStep5PathDesc(cursor.isNull(i18) ? null : cursor.getString(i18)); int i19 = i + 24; diyDBModelCopy.setMystep(cursor.isNull(i19) ? null : Integer.valueOf(cursor.getInt(i19))); int i20 = i + 25; diyDBModelCopy.setActionPath(cursor.isNull(i20) ? null : cursor.getString(i20)); } /* JADX INFO: Access modifiers changed from: protected */ @Override // org.greenrobot.greendao.AbstractDao public final Long a(DiyDBModelCopy diyDBModelCopy, long j) { diyDBModelCopy.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(DiyDBModelCopy diyDBModelCopy) { if (diyDBModelCopy != null) { return diyDBModelCopy.getId(); } return null; } }