?? book.java
字號:
package beans;
/**
* 圖書
*/
public class book {
private long Id;
private String BookName;
private int BookClass; //圖書類別
private String classname ; //圖書類別名
private String Author;
private String Publish;
private String BookNo ; //書號
private String Content ; //內容介紹
private float Price ; //書價
private int Amount ; //總數量
private int Leav_number ; //剩余數量
private String RegTime ; //登記時間
private String picture ;
public book() {
Id = 0;
BookName = "";
BookClass = 0;
classname = "";
Author = "";
Publish = "";
BookNo = "";
Content = "";
Price = 0;
Amount = 0;
Leav_number = 0;
RegTime = "";
}
public void setId(long newId){
this.Id = newId;
}
public long getId(){
return Id;
}
public void setBookName(String newBookName) {
this.BookName = newBookName;
}
public String getBookName() {//buy.jsp
return BookName;
}
public void setBookClass(int newBookClass) {
this.BookClass = newBookClass;
}
public int getBookClass() {
return BookClass;
}
public void setClassname(String cname) {
this.classname = cname;
}
public String getClassname() {//detail.jsp
return classname;
}
public void setAuthor(String newAuthor) {
this.Author = newAuthor;
}
public String getAuthor() {//detail.jsp
return Author;
}
public void setBookNo(String newBookNo) {
this.BookNo = newBookNo;
}
public String getBookNo() {//detail.jsp
return BookNo;
}
public void setPublish(String newPublish) {
this.Publish = newPublish;
}
public String getPublish() {//detail.jsp
return Publish;
}
public void setContent(String newContent) {
this.Content= newContent;
}
public String getContent() {//detail.jsp
return Content;
}
public void setPrice(float newPrice) {
this.Price = newPrice;
}
public float getPrice() {//detail.jsp
return Price;
}
public void setAmount(int newAmount) {
this.Amount = newAmount;
}
public long getAmount() {
return Amount;
}
public void setLeav_number(int newLeav_number) {
this.Leav_number = newLeav_number;
}
public int getLeav_number() {
return Leav_number;
}
public void setRegTime(String newRegTime) {
this.RegTime = newRegTime;
}
public String getRegTime() {
return RegTime;
}
public void setPicture(String newPicture) {
this.picture = newPicture;
}
public String getPicture() {//detail.jsp
return picture;
}
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -