|
@@ -25,10 +25,11 @@ public class SdkLoginUserDao extends AbstractDao<SdkLoginUser, Long> {
|
|
|
public final static Property Id = new Property(0, Long.class, "id", true, "_id");
|
|
public final static Property Id = new Property(0, Long.class, "id", true, "_id");
|
|
|
public final static Property Token = new Property(1, String.class, "token", false, "token");
|
|
public final static Property Token = new Property(1, String.class, "token", false, "token");
|
|
|
public final static Property Nickname = new Property(2, String.class, "nickname", false, "nickname");
|
|
public final static Property Nickname = new Property(2, String.class, "nickname", false, "nickname");
|
|
|
- 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");
|
|
|
|
|
|
|
+ public final static Property Loginname = new Property(3, String.class, "loginname", false, "loginname");
|
|
|
|
|
+ public final static Property Invitation_code = new Property(4, String.class, "invitation_code", false, "invitation_code");
|
|
|
|
|
+ public final static Property Avatar = new Property(5, String.class, "avatar", false, "avatar");
|
|
|
|
|
+ public final static Property ServiceName = new Property(6, String.class, "serviceName", false, "service_name");
|
|
|
|
|
+ public final static Property LastLoginTime = new Property(7, String.class, "lastLoginTime", false, "last_login_time");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -47,10 +48,11 @@ public class SdkLoginUserDao extends AbstractDao<SdkLoginUser, Long> {
|
|
|
"\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT ," + // 0: id
|
|
"\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT ," + // 0: id
|
|
|
"\"token\" TEXT," + // 1: token
|
|
"\"token\" TEXT," + // 1: token
|
|
|
"\"nickname\" TEXT," + // 2: nickname
|
|
"\"nickname\" TEXT," + // 2: nickname
|
|
|
- "\"invitation_code\" TEXT," + // 3: invitation_code
|
|
|
|
|
- "\"avatar\" TEXT," + // 4: avatar
|
|
|
|
|
- "\"service_name\" TEXT," + // 5: serviceName
|
|
|
|
|
- "\"last_login_time\" TEXT);"); // 6: lastLoginTime
|
|
|
|
|
|
|
+ "\"loginname\" TEXT," + // 3: loginname
|
|
|
|
|
+ "\"invitation_code\" TEXT," + // 4: invitation_code
|
|
|
|
|
+ "\"avatar\" TEXT," + // 5: avatar
|
|
|
|
|
+ "\"service_name\" TEXT," + // 6: serviceName
|
|
|
|
|
+ "\"last_login_time\" TEXT);"); // 7: lastLoginTime
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/** Drops the underlying database table. */
|
|
/** Drops the underlying database table. */
|
|
@@ -78,24 +80,29 @@ public class SdkLoginUserDao extends AbstractDao<SdkLoginUser, Long> {
|
|
|
stmt.bindString(3, nickname);
|
|
stmt.bindString(3, nickname);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ String loginname = entity.getLoginname();
|
|
|
|
|
+ if (loginname != null) {
|
|
|
|
|
+ stmt.bindString(4, loginname);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
String invitation_code = entity.getInvitation_code();
|
|
String invitation_code = entity.getInvitation_code();
|
|
|
if (invitation_code != null) {
|
|
if (invitation_code != null) {
|
|
|
- stmt.bindString(4, invitation_code);
|
|
|
|
|
|
|
+ stmt.bindString(5, invitation_code);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
String avatar = entity.getAvatar();
|
|
String avatar = entity.getAvatar();
|
|
|
if (avatar != null) {
|
|
if (avatar != null) {
|
|
|
- stmt.bindString(5, avatar);
|
|
|
|
|
|
|
+ stmt.bindString(6, avatar);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
String serviceName = entity.getServiceName();
|
|
String serviceName = entity.getServiceName();
|
|
|
if (serviceName != null) {
|
|
if (serviceName != null) {
|
|
|
- stmt.bindString(6, serviceName);
|
|
|
|
|
|
|
+ stmt.bindString(7, serviceName);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
String lastLoginTime = entity.getLastLoginTime();
|
|
String lastLoginTime = entity.getLastLoginTime();
|
|
|
if (lastLoginTime != null) {
|
|
if (lastLoginTime != null) {
|
|
|
- stmt.bindString(7, lastLoginTime);
|
|
|
|
|
|
|
+ stmt.bindString(8, lastLoginTime);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -118,24 +125,29 @@ public class SdkLoginUserDao extends AbstractDao<SdkLoginUser, Long> {
|
|
|
stmt.bindString(3, nickname);
|
|
stmt.bindString(3, nickname);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ String loginname = entity.getLoginname();
|
|
|
|
|
+ if (loginname != null) {
|
|
|
|
|
+ stmt.bindString(4, loginname);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
String invitation_code = entity.getInvitation_code();
|
|
String invitation_code = entity.getInvitation_code();
|
|
|
if (invitation_code != null) {
|
|
if (invitation_code != null) {
|
|
|
- stmt.bindString(4, invitation_code);
|
|
|
|
|
|
|
+ stmt.bindString(5, invitation_code);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
String avatar = entity.getAvatar();
|
|
String avatar = entity.getAvatar();
|
|
|
if (avatar != null) {
|
|
if (avatar != null) {
|
|
|
- stmt.bindString(5, avatar);
|
|
|
|
|
|
|
+ stmt.bindString(6, avatar);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
String serviceName = entity.getServiceName();
|
|
String serviceName = entity.getServiceName();
|
|
|
if (serviceName != null) {
|
|
if (serviceName != null) {
|
|
|
- stmt.bindString(6, serviceName);
|
|
|
|
|
|
|
+ stmt.bindString(7, serviceName);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
String lastLoginTime = entity.getLastLoginTime();
|
|
String lastLoginTime = entity.getLastLoginTime();
|
|
|
if (lastLoginTime != null) {
|
|
if (lastLoginTime != null) {
|
|
|
- stmt.bindString(7, lastLoginTime);
|
|
|
|
|
|
|
+ stmt.bindString(8, lastLoginTime);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -150,10 +162,11 @@ public class SdkLoginUserDao extends AbstractDao<SdkLoginUser, Long> {
|
|
|
cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0), // id
|
|
cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0), // id
|
|
|
cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // token
|
|
cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // token
|
|
|
cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // nickname
|
|
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 + 6) ? null : cursor.getString(offset + 6) // lastLoginTime
|
|
|
|
|
|
|
+ cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3), // loginname
|
|
|
|
|
+ cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4), // invitation_code
|
|
|
|
|
+ cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5), // avatar
|
|
|
|
|
+ cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6), // serviceName
|
|
|
|
|
+ cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7) // lastLoginTime
|
|
|
);
|
|
);
|
|
|
return entity;
|
|
return entity;
|
|
|
}
|
|
}
|
|
@@ -163,10 +176,11 @@ public class SdkLoginUserDao extends AbstractDao<SdkLoginUser, Long> {
|
|
|
entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
|
|
entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
|
|
|
entity.setToken(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
|
|
entity.setToken(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
|
|
|
entity.setNickname(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
|
|
entity.setNickname(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
|
|
|
- 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));
|
|
|
|
|
|
|
+ entity.setLoginname(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3));
|
|
|
|
|
+ entity.setInvitation_code(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4));
|
|
|
|
|
+ entity.setAvatar(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
|
|
|
|
|
+ entity.setServiceName(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
|
|
|
|
|
+ entity.setLastLoginTime(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|