⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userdetails.java~3~

📁 网上书店,JSP,MYSQL,struct,spring,hibernate
💻 JAVA~3~
字号:
package bookshoppingsys;

import java.sql.Date;

public class UserDetails
    implements Comparable {
        private int userID = 0;
        private String username=null;
        private String password = null;
        private String realname=null;
        private String publish_house = null;
        private String description = null;
        private Date startTime=null;
        private float value = 0;
        private float T_value = 0;
        private float vip_value =0;
        private int sale_number=0;
        private String book_image=null;

    public UserDetails(int userID,String username,  String password,
                       String realname, String publish_house, String description,
                       Date startTime,float value,float T_value,float vip_value,int sale_number,String book_image) {
        this.userID = userID;
        this.username = username;
        this.password = password;
        this.realname = realname;
        this.publish_house = publish_house;
        this.description = description;
        this.startTime=startTime;
        this.value=value;
        this.T_value=T_value;
        this.vip_value=vip_value;
        this.sale_number=sale_number;
        this.book_image = book_image;

    }

    public int getuserID() {
      return userID;
        }
    public String getusername () {
     return username;
        }
    public String getpassword() {
      return this.password;
        }
    public String getAuthor() {
      return realname;
        }
    public String getpublish_house() {
      return this.publish_house;
    }
    public String getDescription() {
      return description;
    }
    public Date getstartTime() {
      return startTime;
    }
    public float getvalue() {
      return value;
   }
    public float getT_value() {
      return T_value;
    }
    public float getvip_value() {
       return vip_value;
    }
    public int getsale_number(){
       return this.sale_number;
    }
    public String getbook_image(){
      return book_image ;
    }
    public int compareTo(Object o) {
         UserDetails n = (UserDetails)o;
         int lastCmp = author.compareTo(n.author);
            return (lastCmp);
    }
}

⌨️ 快捷键说明

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