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

数据库编程

开发平台:

Java

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