user.java

来自「论坛元程序」· Java 代码 · 共 128 行

JAVA
128
字号
package yy;

import java.io.*;
import java.sql.Date;

public class User
    implements Serializable {
  private int userId;
  private String userName;
  private String userPWD;
  private int userRank;
  private int state;
  private String email;
  private String userPic;
  private int isOnline;
  private int numOfPublish;
  private int numOfVisit;
  private Date registerTime;
  private String question;
  private String answer;

  //所有的set方法
  public void setUserId(int c) {
    this.userId = c;
  }

  public void setUserName(String c) {
    this.userName = c;
  }

  public void setUserPWD(String c) {
    this.userPWD = c;
  }

  public void setUserRank(int c) {
    this.userRank = c;
  }

  public void setState(int c) {
    this.state = c;
  }

  public void setEmail(String c) {
    this.email = c;
  }

  public void setUserPic(String c) {
    this.userPic = c;
  }

  public void setIsOnline(int c) {
    this.isOnline = c;
  }

  public void setNumOfPublish(int c) {
    this.numOfPublish = c;
  }

  public void setNumOfVisit(int c) {
    this.numOfVisit = c;
  }

  public void setRegisterTime(Date c) {
    this.registerTime = c;
  }

  public void setQuestion(String c) {
    this.question = c;
  }

  public void setAnswer(String c) {
    this.answer = c;
  }

  //所有的get方法
  public int getUserId() {
    return this.userId;
  }

  public String getUserName() {
    return this.userName;
  }

  public String getUserPWD() {
    return this.userPWD;
  }

  public int getUserRank() {
    return this.userRank;
  }

  public int getState() {
    return this.state;
  }

  public String getEmail() {
    return this.email;
  }

  public String getUserPic() {
    return this.userPic;
  }

  public int getIsOnline() {
    return this.isOnline;
  }

  public int getNumOfPublish() {
    return this.numOfPublish;
  }

  public int getNumOfVisit() {
    return this.numOfVisit;
  }

  public Date getRegisterTime() {
    return this.registerTime;
  }

  public String getQuestion() {
    return this.question;
  }

  public String getAnswer() {
    return this.answer;
  }

}

⌨️ 快捷键说明

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