289 lines
14 KiB
Java
289 lines
14 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.transport.model.TransportFile;
|
|
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 TransportFileDao extends AbstractDao<TransportFile, Long> {
|
|
public static final String TABLENAME = "TRANSPORT_FILE";
|
|
|
|
public static class Properties {
|
|
public static final Property CustomFileId = new Property(0, Long.class, "customFileId", true, FileDownloadModel.ID);
|
|
public static final Property CustomModelId = new Property(1, String.class, "customModelId", false, "CUSTOM_MODEL_ID");
|
|
public static final Property CustomModelCategory = new Property(2, String.class, "customModelCategory", false, "CUSTOM_MODEL_CATEGORY");
|
|
public static final Property IsReleased = new Property(3, Boolean.TYPE, "isReleased", false, "IS_RELEASED");
|
|
public static final Property UserId = new Property(4, String.class, "userId", false, "USER_ID");
|
|
public static final Property FileName = new Property(5, String.class, "fileName", false, "FILE_NAME");
|
|
public static final Property FilePath = new Property(6, String.class, "filePath", false, "FILE_PATH");
|
|
public static final Property FileUrl = new Property(7, String.class, "fileUrl", false, "FILE_URL");
|
|
public static final Property FileVersion = new Property(8, String.class, "fileVersion", false, "FILE_VERSION");
|
|
public static final Property LastUploadTime = new Property(9, Long.TYPE, "lastUploadTime", false, "LAST_UPLOAD_TIME");
|
|
public static final Property ModelId = new Property(10, Long.TYPE, "modelId", false, "MODEL_ID");
|
|
public static final Property ModelType = new Property(11, String.class, UnityActivity.pModelType, false, "MODEL_TYPE");
|
|
public static final Property CreateTime = new Property(12, Long.TYPE, "createTime", false, "CREATE_TIME");
|
|
public static final Property ModifyTime = new Property(13, Long.TYPE, "modifyTime", false, "MODIFY_TIME");
|
|
public static final Property IsDeleted = new Property(14, Boolean.TYPE, "isDeleted", false, "IS_DELETED");
|
|
public static final Property IsModify = new Property(15, Boolean.TYPE, "isModify", false, "IS_MODIFY");
|
|
public static final Property FileId = new Property(16, String.class, "fileId", false, "FILE_ID");
|
|
public static final Property FileContent = new Property(17, String.class, "fileContent", false, "FILE_CONTENT");
|
|
public static final Property Id = new Property(18, Long.TYPE, JockstickDataConverter.ID, false, "ID");
|
|
public static final Property FileType = new Property(19, String.class, "fileType", false, "FILE_TYPE");
|
|
public static final Property Uploaded = new Property(20, Boolean.TYPE, "uploaded", false, "UPLOADED");
|
|
}
|
|
|
|
public TransportFileDao(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("\"TRANSPORT_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 " : "") + "\"TRANSPORT_FILE\" (\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT ,\"CUSTOM_MODEL_ID\" TEXT,\"CUSTOM_MODEL_CATEGORY\" TEXT,\"IS_RELEASED\" INTEGER NOT NULL ,\"USER_ID\" TEXT,\"FILE_NAME\" TEXT,\"FILE_PATH\" TEXT,\"FILE_URL\" TEXT,\"FILE_VERSION\" TEXT,\"LAST_UPLOAD_TIME\" INTEGER NOT NULL ,\"MODEL_ID\" INTEGER NOT NULL ,\"MODEL_TYPE\" TEXT,\"CREATE_TIME\" INTEGER NOT NULL ,\"MODIFY_TIME\" INTEGER NOT NULL ,\"IS_DELETED\" INTEGER NOT NULL ,\"IS_MODIFY\" INTEGER NOT NULL ,\"FILE_ID\" TEXT,\"FILE_CONTENT\" TEXT,\"ID\" INTEGER NOT NULL ,\"FILE_TYPE\" TEXT,\"UPLOADED\" INTEGER NOT NULL );");
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public final void a(DatabaseStatement databaseStatement, TransportFile transportFile) {
|
|
databaseStatement.a();
|
|
Long customFileId = transportFile.getCustomFileId();
|
|
if (customFileId != null) {
|
|
databaseStatement.a(1, customFileId.longValue());
|
|
}
|
|
String customModelId = transportFile.getCustomModelId();
|
|
if (customModelId != null) {
|
|
databaseStatement.a(2, customModelId);
|
|
}
|
|
String customModelCategory = transportFile.getCustomModelCategory();
|
|
if (customModelCategory != null) {
|
|
databaseStatement.a(3, customModelCategory);
|
|
}
|
|
databaseStatement.a(4, transportFile.getIsReleased() ? 1L : 0L);
|
|
String userId = transportFile.getUserId();
|
|
if (userId != null) {
|
|
databaseStatement.a(5, userId);
|
|
}
|
|
String fileName = transportFile.getFileName();
|
|
if (fileName != null) {
|
|
databaseStatement.a(6, fileName);
|
|
}
|
|
String filePath = transportFile.getFilePath();
|
|
if (filePath != null) {
|
|
databaseStatement.a(7, filePath);
|
|
}
|
|
String fileUrl = transportFile.getFileUrl();
|
|
if (fileUrl != null) {
|
|
databaseStatement.a(8, fileUrl);
|
|
}
|
|
String fileVersion = transportFile.getFileVersion();
|
|
if (fileVersion != null) {
|
|
databaseStatement.a(9, fileVersion);
|
|
}
|
|
databaseStatement.a(10, transportFile.getLastUploadTime());
|
|
databaseStatement.a(11, transportFile.getModelId());
|
|
String modelType = transportFile.getModelType();
|
|
if (modelType != null) {
|
|
databaseStatement.a(12, modelType);
|
|
}
|
|
databaseStatement.a(13, transportFile.getCreateTime());
|
|
databaseStatement.a(14, transportFile.getModifyTime());
|
|
databaseStatement.a(15, transportFile.getIsDeleted() ? 1L : 0L);
|
|
databaseStatement.a(16, transportFile.getIsModify() ? 1L : 0L);
|
|
String fileId = transportFile.getFileId();
|
|
if (fileId != null) {
|
|
databaseStatement.a(17, fileId);
|
|
}
|
|
String fileContent = transportFile.getFileContent();
|
|
if (fileContent != null) {
|
|
databaseStatement.a(18, fileContent);
|
|
}
|
|
databaseStatement.a(19, transportFile.getId());
|
|
String fileType = transportFile.getFileType();
|
|
if (fileType != null) {
|
|
databaseStatement.a(20, fileType);
|
|
}
|
|
databaseStatement.a(21, transportFile.getUploaded() ? 1L : 0L);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public final void a(SQLiteStatement sQLiteStatement, TransportFile transportFile) {
|
|
sQLiteStatement.clearBindings();
|
|
Long customFileId = transportFile.getCustomFileId();
|
|
if (customFileId != null) {
|
|
sQLiteStatement.bindLong(1, customFileId.longValue());
|
|
}
|
|
String customModelId = transportFile.getCustomModelId();
|
|
if (customModelId != null) {
|
|
sQLiteStatement.bindString(2, customModelId);
|
|
}
|
|
String customModelCategory = transportFile.getCustomModelCategory();
|
|
if (customModelCategory != null) {
|
|
sQLiteStatement.bindString(3, customModelCategory);
|
|
}
|
|
sQLiteStatement.bindLong(4, transportFile.getIsReleased() ? 1L : 0L);
|
|
String userId = transportFile.getUserId();
|
|
if (userId != null) {
|
|
sQLiteStatement.bindString(5, userId);
|
|
}
|
|
String fileName = transportFile.getFileName();
|
|
if (fileName != null) {
|
|
sQLiteStatement.bindString(6, fileName);
|
|
}
|
|
String filePath = transportFile.getFilePath();
|
|
if (filePath != null) {
|
|
sQLiteStatement.bindString(7, filePath);
|
|
}
|
|
String fileUrl = transportFile.getFileUrl();
|
|
if (fileUrl != null) {
|
|
sQLiteStatement.bindString(8, fileUrl);
|
|
}
|
|
String fileVersion = transportFile.getFileVersion();
|
|
if (fileVersion != null) {
|
|
sQLiteStatement.bindString(9, fileVersion);
|
|
}
|
|
sQLiteStatement.bindLong(10, transportFile.getLastUploadTime());
|
|
sQLiteStatement.bindLong(11, transportFile.getModelId());
|
|
String modelType = transportFile.getModelType();
|
|
if (modelType != null) {
|
|
sQLiteStatement.bindString(12, modelType);
|
|
}
|
|
sQLiteStatement.bindLong(13, transportFile.getCreateTime());
|
|
sQLiteStatement.bindLong(14, transportFile.getModifyTime());
|
|
sQLiteStatement.bindLong(15, transportFile.getIsDeleted() ? 1L : 0L);
|
|
sQLiteStatement.bindLong(16, transportFile.getIsModify() ? 1L : 0L);
|
|
String fileId = transportFile.getFileId();
|
|
if (fileId != null) {
|
|
sQLiteStatement.bindString(17, fileId);
|
|
}
|
|
String fileContent = transportFile.getFileContent();
|
|
if (fileContent != null) {
|
|
sQLiteStatement.bindString(18, fileContent);
|
|
}
|
|
sQLiteStatement.bindLong(19, transportFile.getId());
|
|
String fileType = transportFile.getFileType();
|
|
if (fileType != null) {
|
|
sQLiteStatement.bindString(20, fileType);
|
|
}
|
|
sQLiteStatement.bindLong(21, transportFile.getUploaded() ? 1L : 0L);
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public TransportFile a(Cursor cursor, int i) {
|
|
int i2 = i + 0;
|
|
Long valueOf = cursor.isNull(i2) ? null : Long.valueOf(cursor.getLong(i2));
|
|
int i3 = i + 1;
|
|
String string = cursor.isNull(i3) ? null : cursor.getString(i3);
|
|
int i4 = i + 2;
|
|
String string2 = cursor.isNull(i4) ? null : cursor.getString(i4);
|
|
boolean z = cursor.getShort(i + 3) != 0;
|
|
int i5 = i + 4;
|
|
String string3 = cursor.isNull(i5) ? null : cursor.getString(i5);
|
|
int i6 = i + 5;
|
|
String string4 = cursor.isNull(i6) ? null : cursor.getString(i6);
|
|
int i7 = i + 6;
|
|
String string5 = cursor.isNull(i7) ? null : cursor.getString(i7);
|
|
int i8 = i + 7;
|
|
String string6 = cursor.isNull(i8) ? null : cursor.getString(i8);
|
|
int i9 = i + 8;
|
|
String string7 = cursor.isNull(i9) ? null : cursor.getString(i9);
|
|
long j = cursor.getLong(i + 9);
|
|
long j2 = cursor.getLong(i + 10);
|
|
int i10 = i + 11;
|
|
String string8 = cursor.isNull(i10) ? null : cursor.getString(i10);
|
|
long j3 = cursor.getLong(i + 12);
|
|
long j4 = cursor.getLong(i + 13);
|
|
boolean z2 = cursor.getShort(i + 14) != 0;
|
|
boolean z3 = cursor.getShort(i + 15) != 0;
|
|
int i11 = i + 16;
|
|
String string9 = cursor.isNull(i11) ? null : cursor.getString(i11);
|
|
int i12 = i + 17;
|
|
String string10 = cursor.isNull(i12) ? null : cursor.getString(i12);
|
|
int i13 = i + 19;
|
|
return new TransportFile(valueOf, string, string2, z, string3, string4, string5, string6, string7, j, j2, string8, j3, j4, z2, z3, string9, string10, cursor.getLong(i + 18), cursor.isNull(i13) ? null : cursor.getString(i13), cursor.getShort(i + 20) != 0);
|
|
}
|
|
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public void a(Cursor cursor, TransportFile transportFile, int i) {
|
|
int i2 = i + 0;
|
|
transportFile.setCustomFileId(cursor.isNull(i2) ? null : Long.valueOf(cursor.getLong(i2)));
|
|
int i3 = i + 1;
|
|
transportFile.setCustomModelId(cursor.isNull(i3) ? null : cursor.getString(i3));
|
|
int i4 = i + 2;
|
|
transportFile.setCustomModelCategory(cursor.isNull(i4) ? null : cursor.getString(i4));
|
|
transportFile.setIsReleased(cursor.getShort(i + 3) != 0);
|
|
int i5 = i + 4;
|
|
transportFile.setUserId(cursor.isNull(i5) ? null : cursor.getString(i5));
|
|
int i6 = i + 5;
|
|
transportFile.setFileName(cursor.isNull(i6) ? null : cursor.getString(i6));
|
|
int i7 = i + 6;
|
|
transportFile.setFilePath(cursor.isNull(i7) ? null : cursor.getString(i7));
|
|
int i8 = i + 7;
|
|
transportFile.setFileUrl(cursor.isNull(i8) ? null : cursor.getString(i8));
|
|
int i9 = i + 8;
|
|
transportFile.setFileVersion(cursor.isNull(i9) ? null : cursor.getString(i9));
|
|
transportFile.setLastUploadTime(cursor.getLong(i + 9));
|
|
transportFile.setModelId(cursor.getLong(i + 10));
|
|
int i10 = i + 11;
|
|
transportFile.setModelType(cursor.isNull(i10) ? null : cursor.getString(i10));
|
|
transportFile.setCreateTime(cursor.getLong(i + 12));
|
|
transportFile.setModifyTime(cursor.getLong(i + 13));
|
|
transportFile.setIsDeleted(cursor.getShort(i + 14) != 0);
|
|
transportFile.setIsModify(cursor.getShort(i + 15) != 0);
|
|
int i11 = i + 16;
|
|
transportFile.setFileId(cursor.isNull(i11) ? null : cursor.getString(i11));
|
|
int i12 = i + 17;
|
|
transportFile.setFileContent(cursor.isNull(i12) ? null : cursor.getString(i12));
|
|
transportFile.setId(cursor.getLong(i + 18));
|
|
int i13 = i + 19;
|
|
transportFile.setFileType(cursor.isNull(i13) ? null : cursor.getString(i13));
|
|
transportFile.setUploaded(cursor.getShort(i + 20) != 0);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public final Long a(TransportFile transportFile, long j) {
|
|
transportFile.setCustomFileId(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(TransportFile transportFile) {
|
|
if (transportFile != null) {
|
|
return transportFile.getCustomFileId();
|
|
}
|
|
return null;
|
|
}
|
|
}
|