|
|
@@ -28,6 +28,7 @@ public class SdkLoginUserDao extends AbstractDao<SdkLoginUser, Long> {
|
|
|
public final static Property Invitation_code = new Property(3, String.class, "invitation_code", false, "invitation_code");
|
|
|
public final static Property Avatar = new Property(4, String.class, "avatar", false, "avatar");
|
|
|
public final static Property ServiceName = new Property(5, String.class, "serviceName", false, "service_name");
|
|
|
+ public final static Property LastLoginTime = new Property(6, String.class, "lastLoginTime", false, "last_login_time");
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -48,7 +49,8 @@ public class SdkLoginUserDao extends AbstractDao<SdkLoginUser, Long> {
|
|
|
"\"nickname\" TEXT," + // 2: nickname
|
|
|
"\"invitation_code\" TEXT," + // 3: invitation_code
|
|
|
"\"avatar\" TEXT," + // 4: avatar
|
|
|
- "\"service_name\" TEXT);"); // 5: serviceName
|
|
|
+ "\"service_name\" TEXT," + // 5: serviceName
|
|
|
+ "\"last_login_time\" TEXT);"); // 6: lastLoginTime
|
|
|
}
|
|
|
|
|
|
/** Drops the underlying database table. */
|
|
|
@@ -90,6 +92,11 @@ public class SdkLoginUserDao extends AbstractDao<SdkLoginUser, Long> {
|
|
|
if (serviceName != null) {
|
|
|
stmt.bindString(6, serviceName);
|
|
|
}
|
|
|
+
|
|
|
+ String lastLoginTime = entity.getLastLoginTime();
|
|
|
+ if (lastLoginTime != null) {
|
|
|
+ stmt.bindString(7, lastLoginTime);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -125,6 +132,11 @@ public class SdkLoginUserDao extends AbstractDao<SdkLoginUser, Long> {
|
|
|
if (serviceName != null) {
|
|
|
stmt.bindString(6, serviceName);
|
|
|
}
|
|
|
+
|
|
|
+ String lastLoginTime = entity.getLastLoginTime();
|
|
|
+ if (lastLoginTime != null) {
|
|
|
+ stmt.bindString(7, lastLoginTime);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -140,7 +152,8 @@ public class SdkLoginUserDao extends AbstractDao<SdkLoginUser, Long> {
|
|
|
cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // nickname
|
|
|
cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3), // invitation_code
|
|
|
cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4), // avatar
|
|
|
- cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5) // serviceName
|
|
|
+ cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5), // serviceName
|
|
|
+ cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6) // lastLoginTime
|
|
|
);
|
|
|
return entity;
|
|
|
}
|
|
|
@@ -153,6 +166,7 @@ public class SdkLoginUserDao extends AbstractDao<SdkLoginUser, Long> {
|
|
|
entity.setInvitation_code(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3));
|
|
|
entity.setAvatar(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4));
|
|
|
entity.setServiceName(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
|
|
|
+ entity.setLastLoginTime(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
|
|
|
}
|
|
|
|
|
|
@Override
|