book.java~1~
上传用户:tanyanyong
上传日期:2013-06-23
资源大小:1355k
文件大小:3k
源码类别:

电子政务应用

开发平台:

MultiPlatform

  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.         public book() {
  24.                 Id = 0;
  25.                 BookName = "";
  26.                 BookClass = 0;
  27.                 classname = "";
  28.                 Author = "";
  29.                 Publish = "";
  30.                 BookNo = "";
  31.                 Content = "";
  32.                 Prince = 0;
  33.                 Amount = 0;
  34.                 Leav_number = 0;
  35.                 RegTime = "";
  36.         }
  37.         public void setId(long newId){
  38.                 this.Id = newId;
  39.         }
  40.         public long getId(){
  41.                 return Id;
  42.         }
  43.         public void setBookName(String newBookName) {
  44.                 this.BookName = newBookName;
  45.         }
  46.         public String getBookName() {
  47.                 return BookName;
  48.         }
  49.         public void setBookClass(int newBookClass) {
  50.                 this.BookClass = newBookClass;
  51.         }
  52.         public int getBookClass() {
  53.                 return BookClass;
  54.         }
  55.         public void setClassname(String cname) {
  56.                 this.classname = cname;
  57.         }
  58.         public String getClassname() {
  59.                 return classname;
  60.         }
  61.         public void setAuthor(String newAuthor) {
  62.                 this.Author = newAuthor;
  63.         }
  64.         public String getAuthor() {
  65.                 return Author;
  66.         }
  67.         public void setBookNo(String newBookNo) {
  68.                 this.BookNo = newBookNo;
  69.         }
  70.         public String getBookNo() {
  71.                 return BookNo;
  72.         }
  73.         public void setPublish(String newPublish) {
  74.                 this.Publish = newPublish;
  75.         }
  76.         public String getPublish() {
  77.                 return Publish;
  78.         }
  79.         public void setContent(String newContent) {
  80.                 this.Content= newContent;
  81.         }
  82.         public String getContent() {
  83.                 return Content;
  84.         }
  85.         public void setPrince(float newPrince) {
  86.                 this.Prince = newPrince;
  87.         }
  88.         public float getPrince() {
  89.                 return Prince;
  90.         }
  91.         public void setAmount(int newAmount) {
  92.                 this.Amount = newAmount;
  93.         }
  94.         public long getAmount() {
  95.                 return Amount;
  96.         }
  97.         public void setLeav_number(int newLeav_number) {
  98.                 this.Leav_number = newLeav_number;
  99.         }
  100.         public int getLeav_number() {
  101.                 return Leav_number;
  102.         }
  103.         public void setRegTime(String newRegTime) {
  104.                 this.RegTime = newRegTime;
  105.         }
  106.         public String getRegTime() {
  107.                 return RegTime;
  108.         }
  109. };