book.java
上传用户:sxlinghang
上传日期:2022-07-20
资源大小:1405k
文件大小:3k
源码类别:

数据库编程

开发平台:

Java

  1. package bookshop.book;
  2. /**
  3.  * <p>图书类 </p>
  4.  */
  5. public class book {
  6.         private long Id; //ID序列号
  7.         private String BookName; //书名
  8.         private int BookClass; //图书类别
  9.         private String classname ;      //图书类别名
  10.         private String Author; //作者
  11.         private String Publish; //出版社
  12.         private String BookNo ; //书号
  13.         private String Content ; //内容介绍
  14.         private float Prince ; //书价
  15.         private int Amount ; //总数量
  16.         private int Leav_number ; //剩余数量
  17.         private String RegTime ; //登记时间
  18.         private String picture ; //图书样图文件的名称
  19.         /**
  20.          * 图书的初始化
  21.          */
  22.         public book() {
  23.                 Id = 0;
  24.                 BookName = "";
  25.                 BookClass = 0;
  26.                 classname = "";
  27.                 Author = "";
  28.                 Publish = "";
  29.                 BookNo = "";
  30.                 Content = "";
  31.                 Prince = 0;
  32.                 Amount = 0;
  33.                 Leav_number = 0;
  34.                 RegTime = "";
  35.         }
  36.         public void setId(long newId){
  37.                 this.Id = newId;
  38.         }
  39.         public long getId(){
  40.                 return Id;
  41.         }
  42.         public void setBookName(String newBookName) {
  43.                 this.BookName = newBookName;
  44.         }
  45.         public String getBookName() {
  46.                 return BookName;
  47.         }
  48.         public void setBookClass(int newBookClass) {
  49.                 this.BookClass = newBookClass;
  50.         }
  51.         public int getBookClass() {
  52.                 return BookClass;
  53.         }
  54.         public void setClassname(String cname) {
  55.                 this.classname = cname;
  56.         }
  57.         public String getClassname() {
  58.                 return classname;
  59.         }
  60.         public void setAuthor(String newAuthor) {
  61.                 this.Author = newAuthor;
  62.         }
  63.         public String getAuthor() {
  64.                 return Author;
  65.         }
  66.         public void setBookNo(String newBookNo) {
  67.                 this.BookNo = newBookNo;
  68.         }
  69.         public String getBookNo() {
  70.                 return BookNo;
  71.         }
  72.         public void setPublish(String newPublish) {
  73.                 this.Publish = newPublish;
  74.         }
  75.         public String getPublish() {
  76.                 return Publish;
  77.         }
  78.         public void setContent(String newContent) {
  79.                 this.Content= newContent;
  80.         }
  81.         public String getContent() {
  82.                 return Content;
  83.         }
  84.         public void setPrince(float newPrince) {
  85.                 this.Prince = newPrince;
  86.         }
  87.         public float getPrince() {
  88.                 return Prince;
  89.         }
  90.         public void setAmount(int newAmount) {
  91.                 this.Amount = newAmount;
  92.         }
  93.         public long getAmount() {
  94.                 return Amount;
  95.         }
  96.         public void setLeav_number(int newLeav_number) {
  97.                 this.Leav_number = newLeav_number;
  98.         }
  99.         public int getLeav_number() {
  100.                 return Leav_number;
  101.         }
  102.         public void setRegTime(String newRegTime) {
  103.                 this.RegTime = newRegTime;
  104.         }
  105.         public String getRegTime() {
  106.                 return RegTime;
  107.         }
  108.         public void setPicture(String newPicture) {
  109.                this.picture = newPicture;
  110.        }
  111.        public String getPicture() {
  112.                return picture;
  113.        }
  114. };