190 lines
8.6 KiB
Java
190 lines
8.6 KiB
Java
package com.ubt.jimu.gen;
|
|
|
|
import android.database.Cursor;
|
|
import android.database.sqlite.SQLiteStatement;
|
|
import com.liulishuo.filedownloader.model.FileDownloadModel;
|
|
import com.ubt.jimu.controller.data.widget.JockstickDataConverter;
|
|
import com.ubt.jimu.diy.DiyRobotFile;
|
|
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 DiyRobotFileDao extends AbstractDao<DiyRobotFile, Long> {
|
|
public static final String TABLENAME = "DIY_ROBOT_FILE";
|
|
|
|
public static class Properties {
|
|
public static final Property Id = new Property(0, Long.class, JockstickDataConverter.ID, true, FileDownloadModel.ID);
|
|
public static final Property ServerModelId = new Property(1, Integer.TYPE, "serverModelId", false, "SERVER_MODEL_ID");
|
|
public static final Property CustomModelId = new Property(2, String.class, "customModelId", false, "CUSTOM_MODEL_ID");
|
|
public static final Property FileType = new Property(3, Integer.TYPE, "fileType", false, "FILE_TYPE");
|
|
public static final Property DisplayName = new Property(4, String.class, "displayName", false, "DISPLAY_NAME");
|
|
public static final Property FileUrl = new Property(5, String.class, "fileUrl", false, "FILE_URL");
|
|
public static final Property FileName = new Property(6, String.class, "fileName", false, "FILE_NAME");
|
|
public static final Property Content = new Property(7, String.class, "content", false, "CONTENT");
|
|
public static final Property Remark = new Property(8, String.class, "remark", false, "REMARK");
|
|
public static final Property CreateDate = new Property(9, Long.TYPE, "createDate", false, "CREATE_DATE");
|
|
public static final Property UpdateDate = new Property(10, Long.TYPE, "updateDate", false, "UPDATE_DATE");
|
|
}
|
|
|
|
public DiyRobotFileDao(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_ROBOT_FILE\"");
|
|
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) {
|
|
database.a("CREATE TABLE " + (z ? "IF NOT EXISTS " : "") + "\"DIY_ROBOT_FILE\" (\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT ,\"SERVER_MODEL_ID\" INTEGER NOT NULL ,\"CUSTOM_MODEL_ID\" TEXT,\"FILE_TYPE\" INTEGER NOT NULL ,\"DISPLAY_NAME\" TEXT,\"FILE_URL\" TEXT,\"FILE_NAME\" TEXT,\"CONTENT\" TEXT,\"REMARK\" TEXT,\"CREATE_DATE\" INTEGER NOT NULL ,\"UPDATE_DATE\" INTEGER NOT NULL );");
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public final void a(DatabaseStatement databaseStatement, DiyRobotFile diyRobotFile) {
|
|
databaseStatement.a();
|
|
Long id = diyRobotFile.getId();
|
|
if (id != null) {
|
|
databaseStatement.a(1, id.longValue());
|
|
}
|
|
databaseStatement.a(2, diyRobotFile.getServerModelId());
|
|
String customModelId = diyRobotFile.getCustomModelId();
|
|
if (customModelId != null) {
|
|
databaseStatement.a(3, customModelId);
|
|
}
|
|
databaseStatement.a(4, diyRobotFile.getFileType());
|
|
String displayName = diyRobotFile.getDisplayName();
|
|
if (displayName != null) {
|
|
databaseStatement.a(5, displayName);
|
|
}
|
|
String fileUrl = diyRobotFile.getFileUrl();
|
|
if (fileUrl != null) {
|
|
databaseStatement.a(6, fileUrl);
|
|
}
|
|
String fileName = diyRobotFile.getFileName();
|
|
if (fileName != null) {
|
|
databaseStatement.a(7, fileName);
|
|
}
|
|
String content = diyRobotFile.getContent();
|
|
if (content != null) {
|
|
databaseStatement.a(8, content);
|
|
}
|
|
String remark = diyRobotFile.getRemark();
|
|
if (remark != null) {
|
|
databaseStatement.a(9, remark);
|
|
}
|
|
databaseStatement.a(10, diyRobotFile.getCreateDate());
|
|
databaseStatement.a(11, diyRobotFile.getUpdateDate());
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public final void a(SQLiteStatement sQLiteStatement, DiyRobotFile diyRobotFile) {
|
|
sQLiteStatement.clearBindings();
|
|
Long id = diyRobotFile.getId();
|
|
if (id != null) {
|
|
sQLiteStatement.bindLong(1, id.longValue());
|
|
}
|
|
sQLiteStatement.bindLong(2, diyRobotFile.getServerModelId());
|
|
String customModelId = diyRobotFile.getCustomModelId();
|
|
if (customModelId != null) {
|
|
sQLiteStatement.bindString(3, customModelId);
|
|
}
|
|
sQLiteStatement.bindLong(4, diyRobotFile.getFileType());
|
|
String displayName = diyRobotFile.getDisplayName();
|
|
if (displayName != null) {
|
|
sQLiteStatement.bindString(5, displayName);
|
|
}
|
|
String fileUrl = diyRobotFile.getFileUrl();
|
|
if (fileUrl != null) {
|
|
sQLiteStatement.bindString(6, fileUrl);
|
|
}
|
|
String fileName = diyRobotFile.getFileName();
|
|
if (fileName != null) {
|
|
sQLiteStatement.bindString(7, fileName);
|
|
}
|
|
String content = diyRobotFile.getContent();
|
|
if (content != null) {
|
|
sQLiteStatement.bindString(8, content);
|
|
}
|
|
String remark = diyRobotFile.getRemark();
|
|
if (remark != null) {
|
|
sQLiteStatement.bindString(9, remark);
|
|
}
|
|
sQLiteStatement.bindLong(10, diyRobotFile.getCreateDate());
|
|
sQLiteStatement.bindLong(11, diyRobotFile.getUpdateDate());
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public DiyRobotFile a(Cursor cursor, int i) {
|
|
int i2 = i + 0;
|
|
int i3 = i + 2;
|
|
int i4 = i + 4;
|
|
int i5 = i + 5;
|
|
int i6 = i + 6;
|
|
int i7 = i + 7;
|
|
int i8 = i + 8;
|
|
return new DiyRobotFile(cursor.isNull(i2) ? null : Long.valueOf(cursor.getLong(i2)), cursor.getInt(i + 1), cursor.isNull(i3) ? null : cursor.getString(i3), cursor.getInt(i + 3), cursor.isNull(i4) ? null : cursor.getString(i4), cursor.isNull(i5) ? null : cursor.getString(i5), cursor.isNull(i6) ? null : cursor.getString(i6), cursor.isNull(i7) ? null : cursor.getString(i7), cursor.isNull(i8) ? null : cursor.getString(i8), cursor.getLong(i + 9), cursor.getLong(i + 10));
|
|
}
|
|
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public void a(Cursor cursor, DiyRobotFile diyRobotFile, int i) {
|
|
int i2 = i + 0;
|
|
diyRobotFile.setId(cursor.isNull(i2) ? null : Long.valueOf(cursor.getLong(i2)));
|
|
diyRobotFile.setServerModelId(cursor.getInt(i + 1));
|
|
int i3 = i + 2;
|
|
diyRobotFile.setCustomModelId(cursor.isNull(i3) ? null : cursor.getString(i3));
|
|
diyRobotFile.setFileType(cursor.getInt(i + 3));
|
|
int i4 = i + 4;
|
|
diyRobotFile.setDisplayName(cursor.isNull(i4) ? null : cursor.getString(i4));
|
|
int i5 = i + 5;
|
|
diyRobotFile.setFileUrl(cursor.isNull(i5) ? null : cursor.getString(i5));
|
|
int i6 = i + 6;
|
|
diyRobotFile.setFileName(cursor.isNull(i6) ? null : cursor.getString(i6));
|
|
int i7 = i + 7;
|
|
diyRobotFile.setContent(cursor.isNull(i7) ? null : cursor.getString(i7));
|
|
int i8 = i + 8;
|
|
diyRobotFile.setRemark(cursor.isNull(i8) ? null : cursor.getString(i8));
|
|
diyRobotFile.setCreateDate(cursor.getLong(i + 9));
|
|
diyRobotFile.setUpdateDate(cursor.getLong(i + 10));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public final Long a(DiyRobotFile diyRobotFile, long j) {
|
|
diyRobotFile.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(DiyRobotFile diyRobotFile) {
|
|
if (diyRobotFile != null) {
|
|
return diyRobotFile.getId();
|
|
}
|
|
return null;
|
|
}
|
|
}
|