groupmodel.java

来自「WAP PUSH后台源码,WAP PUSH后台源码」· Java 代码 · 共 76 行

JAVA
76
字号
package com.sxit.wap.group;import java.sql.*;import java.util.*;import com.sxit.wap.common.*;import com.sxit.wap.exception.*;public class GroupModel implements java.io.Serializable {  int id = 0;  String groupName = "";  String groupPwd = "";  String groupDescribe = "";  Timestamp groupRegdate = null;  public GroupModel(int id, String groupName, String groupPwd, String groupDescribe, Timestamp groupRegdate){    this.id = id;    if (groupName == null) groupName = "";    this.groupName = groupName;    if (groupPwd == null) groupPwd = "";    this.groupPwd = groupPwd;    if (groupDescribe == null) groupDescribe = "";    this.groupDescribe = groupDescribe;    this.groupRegdate = groupRegdate;  }  public GroupModel(){  }  public int getId() {     return id;  }  public String getGroupName() {     if (groupName == null) groupName = "";     return groupName;  }  public String getGroupPwd() {     if (groupPwd == null) groupPwd = "";     return groupPwd;  }  public String getGroupDescribe() {     if (groupDescribe == null) groupDescribe = "";     return groupDescribe;  }  public Timestamp getGroupRegdate() {     return groupRegdate;  }  public void setId(int id) {    this.id = id;  }  public void setGroupName(String groupName) {    this.groupName = groupName;  }  public void setGroupPwd(String groupPwd) {    this.groupPwd = groupPwd;  }  public void setGroupDescribe(String groupDescribe) {    this.groupDescribe = groupDescribe;  }  public void setGroupRegdate(Timestamp groupRegdate) {    this.groupRegdate = groupRegdate;  }  public String toString() {    String value = "";    value+= "id=" + id + "\n";    value+= "groupName=" + groupName + "\n";    value+= "groupPwd=" + groupPwd + "\n";    value+= "groupDescribe=" + groupDescribe + "\n";    value+= "groupRegdate=" + groupRegdate + "\n";    return value;  }  public void copy(GroupModel other) {    this.setId(other.getId());    this.setGroupName(other.getGroupName());    this.setGroupPwd(other.getGroupPwd());    this.setGroupDescribe(other.getGroupDescribe());    this.setGroupRegdate(other.getGroupRegdate());  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?