📄 book.java
字号:
package com.lib.db;
//对应视图lib_bok
public class Book {
private String isbn = null;
private String book = null;
private String author = null;
private String category_id = null;
private String publisher_id = null;
private Float unitprice = 0f;
private Integer copies = 0;
private Integer stocks = 0;
private Float fine = 0f;
private String isNew = null;
// //以下为view 中从其他表增加的字段
private String category = null;
private String publisher = null;
public Book(String isbn, String book, String author, String category_id, String publisher_id, Float unitprice, Integer copies, Integer stocks, Float fine, String isNew, String category, String publisher) {
super();
this.isbn = isbn;
this.book = book;
this.author = author;
this.category_id = category_id;
this.publisher_id = publisher_id;
this.unitprice = unitprice;
this.copies = copies;
this.stocks = stocks;
this.fine = fine;
this.isNew = isNew;
this.category = category;
this.publisher = publisher;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getBook() {
return book;
}
public void setBook(String book) {
this.book = book;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getCategory_id() {
return category_id;
}
public void setCategory_id(String category_id) {
this.category_id = category_id;
}
public Integer getCopies() {
return copies;
}
public void setCopies(Integer copies) {
this.copies = copies;
}
public Float getFine() {
return fine;
}
public void setFine(Float fine) {
this.fine = fine;
}
public String getIsbn() {
return isbn;
}
public void setIsbn(String isbn) {
this.isbn = isbn;
}
public String getIsNew() {
return isNew;
}
public void setIsNew(String isNew) {
this.isNew = isNew;
}
public String getPublisher() {
return publisher;
}
public void setPublisher(String publisher) {
this.publisher = publisher;
}
public String getPublisher_id() {
return publisher_id;
}
public void setPublisher_id(String publisher_id) {
this.publisher_id = publisher_id;
}
public Integer getStocks() {
return stocks;
}
public void setStocks(Integer stocks) {
this.stocks = stocks;
}
public Float getUnitprice() {
return unitprice;
}
public void setUnitprice(Float unitprice) {
this.unitprice = unitprice;
}
public Book(String isbn, Integer copies) {
super();
this.isbn = isbn;
this.copies = copies;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -