|
|
@@ -41,6 +41,9 @@ public class SheepAdDao extends AbstractDao<SheepAd, Long> {
|
|
|
public final static Property User_type = new Property(16, int.class, "user_type", false, "user_type");
|
|
|
public final static Property Create_time = new Property(17, long.class, "create_time", false, "create_time");
|
|
|
public final static Property Update_time = new Property(18, long.class, "update_time", false, "update_time");
|
|
|
+ public final static Property Ad_type = new Property(19, int.class, "ad_type", false, "ad_type");
|
|
|
+ public final static Property Third_app_id = new Property(20, String.class, "third_app_id", false, "third_app_id");
|
|
|
+ public final static Property Third_ad_id = new Property(21, String.class, "third_ad_id", false, "third_ad_id");
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -74,7 +77,10 @@ public class SheepAdDao extends AbstractDao<SheepAd, Long> {
|
|
|
"\"user_name\" TEXT," + // 15: user_name
|
|
|
"\"user_type\" INTEGER NOT NULL ," + // 16: user_type
|
|
|
"\"create_time\" INTEGER NOT NULL ," + // 17: create_time
|
|
|
- "\"update_time\" INTEGER NOT NULL );"); // 18: update_time
|
|
|
+ "\"update_time\" INTEGER NOT NULL ," + // 18: update_time
|
|
|
+ "\"ad_type\" INTEGER NOT NULL ," + // 19: ad_type
|
|
|
+ "\"third_app_id\" TEXT," + // 20: third_app_id
|
|
|
+ "\"third_ad_id\" TEXT);"); // 21: third_ad_id
|
|
|
}
|
|
|
|
|
|
/** Drops the underlying database table. */
|
|
|
@@ -125,6 +131,17 @@ public class SheepAdDao extends AbstractDao<SheepAd, Long> {
|
|
|
stmt.bindLong(17, entity.getUser_type());
|
|
|
stmt.bindLong(18, entity.getCreate_time());
|
|
|
stmt.bindLong(19, entity.getUpdate_time());
|
|
|
+ stmt.bindLong(20, entity.getAd_type());
|
|
|
+
|
|
|
+ String third_app_id = entity.getThird_app_id();
|
|
|
+ if (third_app_id != null) {
|
|
|
+ stmt.bindString(21, third_app_id);
|
|
|
+ }
|
|
|
+
|
|
|
+ String third_ad_id = entity.getThird_ad_id();
|
|
|
+ if (third_ad_id != null) {
|
|
|
+ stmt.bindString(22, third_ad_id);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -169,6 +186,17 @@ public class SheepAdDao extends AbstractDao<SheepAd, Long> {
|
|
|
stmt.bindLong(17, entity.getUser_type());
|
|
|
stmt.bindLong(18, entity.getCreate_time());
|
|
|
stmt.bindLong(19, entity.getUpdate_time());
|
|
|
+ stmt.bindLong(20, entity.getAd_type());
|
|
|
+
|
|
|
+ String third_app_id = entity.getThird_app_id();
|
|
|
+ if (third_app_id != null) {
|
|
|
+ stmt.bindString(21, third_app_id);
|
|
|
+ }
|
|
|
+
|
|
|
+ String third_ad_id = entity.getThird_ad_id();
|
|
|
+ if (third_ad_id != null) {
|
|
|
+ stmt.bindString(22, third_ad_id);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -197,7 +225,10 @@ public class SheepAdDao extends AbstractDao<SheepAd, Long> {
|
|
|
cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15), // user_name
|
|
|
cursor.getInt(offset + 16), // user_type
|
|
|
cursor.getLong(offset + 17), // create_time
|
|
|
- cursor.getLong(offset + 18) // update_time
|
|
|
+ cursor.getLong(offset + 18), // update_time
|
|
|
+ cursor.getInt(offset + 19), // ad_type
|
|
|
+ cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20), // third_app_id
|
|
|
+ cursor.isNull(offset + 21) ? null : cursor.getString(offset + 21) // third_ad_id
|
|
|
);
|
|
|
return entity;
|
|
|
}
|
|
|
@@ -223,6 +254,9 @@ public class SheepAdDao extends AbstractDao<SheepAd, Long> {
|
|
|
entity.setUser_type(cursor.getInt(offset + 16));
|
|
|
entity.setCreate_time(cursor.getLong(offset + 17));
|
|
|
entity.setUpdate_time(cursor.getLong(offset + 18));
|
|
|
+ entity.setAd_type(cursor.getInt(offset + 19));
|
|
|
+ entity.setThird_app_id(cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20));
|
|
|
+ entity.setThird_ad_id(cursor.isNull(offset + 21) ? null : cursor.getString(offset + 21));
|
|
|
}
|
|
|
|
|
|
@Override
|