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

📄 bookdetails.java

📁 网上书店,JSP,MYSQL,struct,spring,hibernate
💻 JAVA
字号:
package bookshoppingsys;import java.sql.Date;public class BookDetails implements Comparable {        //private int book_ID = 0;        private String book_type=null;        private String book_name = null;        private String author=null;        private String publishing_house = null;        private String description = 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 BookDetails(String book_type, String book_name,                       String author, String publishing_house, String description,                      float value,float T_value,float vip_value,int sale_number,String book_image) {       // this.book_ID = book_ID;        this.book_type = book_type;        this.book_name = book_name;        this.author = author;        this.publishing_house = publishing_house;        this.description = description;        this.value=value;        this.T_value=T_value;        this.vip_value=vip_value;        this.sale_number=sale_number;        this.book_image = book_image;    }*/    public String getBook_type () {     return book_type;        }    public String getBook_name() {      return this.book_name;        }    public String getAuthor() {      return author;        }    public String getPublishing_house() {      return this.publishing_house;    }    public String getDescription() {      return description;    }    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) {         BookDetails n = (BookDetails)o;         int lastCmp = author.compareTo(n.author);            return (lastCmp);    }  public void setAuthor(String author) {    this.author = author;  }  public void setBook_image(String book_image) {    this.book_image = book_image;  }  public void setBook_name(String book_name) {    this.book_name = book_name;  }  public void setBook_type(String book_type) {    this.book_type = book_type;  }  public void setDescription(String description) {    this.description = description;  }  public void setPublishing_house(String publishing_house) {    this.publishing_house = publishing_house;  }  public void setSale_number(int sale_number) {    this.sale_number = sale_number;  }  public void setT_value(float t_value) {    this.T_value = t_value;  }  public void setValue(float value) {    this.value = value;  }  public void setVip_value(float vip_value) {    this.vip_value = vip_value;  }}

⌨️ 快捷键说明

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