217 lines
9.7 KiB
Java
217 lines
9.7 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.blockly.bean.JimuSound;
|
|
import com.ubt.jimu.controller.data.widget.JockstickDataConverter;
|
|
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 JimuSoundDao extends AbstractDao<JimuSound, Long> {
|
|
public static final String TABLENAME = "JIMU_SOUND";
|
|
|
|
public static class Properties {
|
|
public static final Property Id = new Property(0, Long.class, JockstickDataConverter.ID, true, FileDownloadModel.ID);
|
|
public static final Property UserId = new Property(1, String.class, "userId", false, "USER_ID");
|
|
public static final Property Key = new Property(2, String.class, "key", false, "KEY");
|
|
public static final Property Icon = new Property(3, String.class, "icon", false, "ICON");
|
|
public static final Property AudioId = new Property(4, String.class, "audioId", false, "AUDIO_ID");
|
|
public static final Property Type = new Property(5, String.class, "type", false, "TYPE");
|
|
public static final Property Duration = new Property(6, String.class, "duration", false, "DURATION");
|
|
public static final Property Description = new Property(7, String.class, SocialConstants.PARAM_COMMENT, false, "DESCRIPTION");
|
|
public static final Property IsDeleted = new Property(8, String.class, "isDeleted", false, "IS_DELETED");
|
|
public static final Property IsUploadQiNiu = new Property(9, Boolean.TYPE, "isUploadQiNiu", false, "IS_UPLOAD_QI_NIU");
|
|
public static final Property IsSyncUbtService = new Property(10, Boolean.TYPE, "isSyncUbtService", false, "IS_SYNC_UBT_SERVICE");
|
|
public static final Property LastUploadTime = new Property(11, Long.TYPE, "lastUploadTime", false, "LAST_UPLOAD_TIME");
|
|
public static final Property IsFirst = new Property(12, Integer.TYPE, "isFirst", false, "IS_FIRST");
|
|
}
|
|
|
|
public JimuSoundDao(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("\"JIMU_SOUND\"");
|
|
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 + "\"JIMU_SOUND\" (\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT ,\"USER_ID\" TEXT,\"KEY\" TEXT,\"ICON\" TEXT,\"AUDIO_ID\" TEXT,\"TYPE\" TEXT,\"DURATION\" TEXT,\"DESCRIPTION\" TEXT,\"IS_DELETED\" TEXT,\"IS_UPLOAD_QI_NIU\" INTEGER NOT NULL ,\"IS_SYNC_UBT_SERVICE\" INTEGER NOT NULL ,\"LAST_UPLOAD_TIME\" INTEGER NOT NULL ,\"IS_FIRST\" INTEGER NOT NULL );");
|
|
database.a("CREATE UNIQUE INDEX " + str + "IDX_JIMU_SOUND_KEY ON \"JIMU_SOUND\" (\"KEY\" ASC);");
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public final void a(DatabaseStatement databaseStatement, JimuSound jimuSound) {
|
|
databaseStatement.a();
|
|
Long id = jimuSound.getId();
|
|
if (id != null) {
|
|
databaseStatement.a(1, id.longValue());
|
|
}
|
|
String userId = jimuSound.getUserId();
|
|
if (userId != null) {
|
|
databaseStatement.a(2, userId);
|
|
}
|
|
String key = jimuSound.getKey();
|
|
if (key != null) {
|
|
databaseStatement.a(3, key);
|
|
}
|
|
String icon = jimuSound.getIcon();
|
|
if (icon != null) {
|
|
databaseStatement.a(4, icon);
|
|
}
|
|
String audioId = jimuSound.getAudioId();
|
|
if (audioId != null) {
|
|
databaseStatement.a(5, audioId);
|
|
}
|
|
String type = jimuSound.getType();
|
|
if (type != null) {
|
|
databaseStatement.a(6, type);
|
|
}
|
|
String duration = jimuSound.getDuration();
|
|
if (duration != null) {
|
|
databaseStatement.a(7, duration);
|
|
}
|
|
String description = jimuSound.getDescription();
|
|
if (description != null) {
|
|
databaseStatement.a(8, description);
|
|
}
|
|
String isDeleted = jimuSound.getIsDeleted();
|
|
if (isDeleted != null) {
|
|
databaseStatement.a(9, isDeleted);
|
|
}
|
|
databaseStatement.a(10, jimuSound.getIsUploadQiNiu() ? 1L : 0L);
|
|
databaseStatement.a(11, jimuSound.getIsSyncUbtService() ? 1L : 0L);
|
|
databaseStatement.a(12, jimuSound.getLastUploadTime());
|
|
databaseStatement.a(13, jimuSound.getIsFirst());
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public final void a(SQLiteStatement sQLiteStatement, JimuSound jimuSound) {
|
|
sQLiteStatement.clearBindings();
|
|
Long id = jimuSound.getId();
|
|
if (id != null) {
|
|
sQLiteStatement.bindLong(1, id.longValue());
|
|
}
|
|
String userId = jimuSound.getUserId();
|
|
if (userId != null) {
|
|
sQLiteStatement.bindString(2, userId);
|
|
}
|
|
String key = jimuSound.getKey();
|
|
if (key != null) {
|
|
sQLiteStatement.bindString(3, key);
|
|
}
|
|
String icon = jimuSound.getIcon();
|
|
if (icon != null) {
|
|
sQLiteStatement.bindString(4, icon);
|
|
}
|
|
String audioId = jimuSound.getAudioId();
|
|
if (audioId != null) {
|
|
sQLiteStatement.bindString(5, audioId);
|
|
}
|
|
String type = jimuSound.getType();
|
|
if (type != null) {
|
|
sQLiteStatement.bindString(6, type);
|
|
}
|
|
String duration = jimuSound.getDuration();
|
|
if (duration != null) {
|
|
sQLiteStatement.bindString(7, duration);
|
|
}
|
|
String description = jimuSound.getDescription();
|
|
if (description != null) {
|
|
sQLiteStatement.bindString(8, description);
|
|
}
|
|
String isDeleted = jimuSound.getIsDeleted();
|
|
if (isDeleted != null) {
|
|
sQLiteStatement.bindString(9, isDeleted);
|
|
}
|
|
sQLiteStatement.bindLong(10, jimuSound.getIsUploadQiNiu() ? 1L : 0L);
|
|
sQLiteStatement.bindLong(11, jimuSound.getIsSyncUbtService() ? 1L : 0L);
|
|
sQLiteStatement.bindLong(12, jimuSound.getLastUploadTime());
|
|
sQLiteStatement.bindLong(13, jimuSound.getIsFirst());
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public JimuSound a(Cursor cursor, int i) {
|
|
int i2 = i + 0;
|
|
int i3 = i + 1;
|
|
int i4 = i + 2;
|
|
int i5 = i + 3;
|
|
int i6 = i + 4;
|
|
int i7 = i + 5;
|
|
int i8 = i + 6;
|
|
int i9 = i + 7;
|
|
int i10 = i + 8;
|
|
return new JimuSound(cursor.isNull(i2) ? null : Long.valueOf(cursor.getLong(i2)), cursor.isNull(i3) ? null : cursor.getString(i3), 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.isNull(i9) ? null : cursor.getString(i9), cursor.isNull(i10) ? null : cursor.getString(i10), cursor.getShort(i + 9) != 0, cursor.getShort(i + 10) != 0, cursor.getLong(i + 11), cursor.getInt(i + 12));
|
|
}
|
|
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public void a(Cursor cursor, JimuSound jimuSound, int i) {
|
|
int i2 = i + 0;
|
|
jimuSound.setId(cursor.isNull(i2) ? null : Long.valueOf(cursor.getLong(i2)));
|
|
int i3 = i + 1;
|
|
jimuSound.setUserId(cursor.isNull(i3) ? null : cursor.getString(i3));
|
|
int i4 = i + 2;
|
|
jimuSound.setKey(cursor.isNull(i4) ? null : cursor.getString(i4));
|
|
int i5 = i + 3;
|
|
jimuSound.setIcon(cursor.isNull(i5) ? null : cursor.getString(i5));
|
|
int i6 = i + 4;
|
|
jimuSound.setAudioId(cursor.isNull(i6) ? null : cursor.getString(i6));
|
|
int i7 = i + 5;
|
|
jimuSound.setType(cursor.isNull(i7) ? null : cursor.getString(i7));
|
|
int i8 = i + 6;
|
|
jimuSound.setDuration(cursor.isNull(i8) ? null : cursor.getString(i8));
|
|
int i9 = i + 7;
|
|
jimuSound.setDescription(cursor.isNull(i9) ? null : cursor.getString(i9));
|
|
int i10 = i + 8;
|
|
jimuSound.setIsDeleted(cursor.isNull(i10) ? null : cursor.getString(i10));
|
|
jimuSound.setIsUploadQiNiu(cursor.getShort(i + 9) != 0);
|
|
jimuSound.setIsSyncUbtService(cursor.getShort(i + 10) != 0);
|
|
jimuSound.setLastUploadTime(cursor.getLong(i + 11));
|
|
jimuSound.setIsFirst(cursor.getInt(i + 12));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // org.greenrobot.greendao.AbstractDao
|
|
public final Long a(JimuSound jimuSound, long j) {
|
|
jimuSound.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(JimuSound jimuSound) {
|
|
if (jimuSound != null) {
|
|
return jimuSound.getId();
|
|
}
|
|
return null;
|
|
}
|
|
}
|