|
|
@@ -39,6 +39,7 @@ public class DownLoadInfoDao extends AbstractDao<DownLoadInfo, Long> {
|
|
|
public final static Property MApkPath = new Property(14, String.class, "mApkPath", false, "apk_path");
|
|
|
public final static Property WhereFrom = new Property(15, int.class, "whereFrom", false, "where_from");
|
|
|
public final static Property AverageSpeed = new Property(16, String.class, "averageSpeed", false, "average_speed");
|
|
|
+ public final static Property RealCauseMsg = new Property(17, String.class, "realCauseMsg", false, "real_cause_msg");
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -70,7 +71,8 @@ public class DownLoadInfoDao extends AbstractDao<DownLoadInfo, Long> {
|
|
|
"\"version_code\" INTEGER," + // 13: mVersionCode
|
|
|
"\"apk_path\" TEXT," + // 14: mApkPath
|
|
|
"\"where_from\" INTEGER NOT NULL ," + // 15: whereFrom
|
|
|
- "\"average_speed\" TEXT);"); // 16: averageSpeed
|
|
|
+ "\"average_speed\" TEXT," + // 16: averageSpeed
|
|
|
+ "\"real_cause_msg\" TEXT);"); // 17: realCauseMsg
|
|
|
}
|
|
|
|
|
|
/** Drops the underlying database table. */
|
|
|
@@ -159,6 +161,11 @@ public class DownLoadInfoDao extends AbstractDao<DownLoadInfo, Long> {
|
|
|
if (averageSpeed != null) {
|
|
|
stmt.bindString(17, averageSpeed);
|
|
|
}
|
|
|
+
|
|
|
+ String realCauseMsg = entity.getRealCauseMsg();
|
|
|
+ if (realCauseMsg != null) {
|
|
|
+ stmt.bindString(18, realCauseMsg);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -241,6 +248,11 @@ public class DownLoadInfoDao extends AbstractDao<DownLoadInfo, Long> {
|
|
|
if (averageSpeed != null) {
|
|
|
stmt.bindString(17, averageSpeed);
|
|
|
}
|
|
|
+
|
|
|
+ String realCauseMsg = entity.getRealCauseMsg();
|
|
|
+ if (realCauseMsg != null) {
|
|
|
+ stmt.bindString(18, realCauseMsg);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -267,7 +279,8 @@ public class DownLoadInfoDao extends AbstractDao<DownLoadInfo, Long> {
|
|
|
cursor.isNull(offset + 13) ? null : cursor.getInt(offset + 13), // mVersionCode
|
|
|
cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14), // mApkPath
|
|
|
cursor.getInt(offset + 15), // whereFrom
|
|
|
- cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16) // averageSpeed
|
|
|
+ cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16), // averageSpeed
|
|
|
+ cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17) // realCauseMsg
|
|
|
);
|
|
|
return entity;
|
|
|
}
|
|
|
@@ -291,6 +304,7 @@ public class DownLoadInfoDao extends AbstractDao<DownLoadInfo, Long> {
|
|
|
entity.setMApkPath(cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14));
|
|
|
entity.setWhereFrom(cursor.getInt(offset + 15));
|
|
|
entity.setAverageSpeed(cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16));
|
|
|
+ entity.setRealCauseMsg(cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17));
|
|
|
}
|
|
|
|
|
|
@Override
|