⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 book.java

📁 图书管理系统
💻 JAVA
字号:
/**
 * 图书的JavaBean
 */
package fuguo.yy1.dto;

/**
 * @author cankongyun
 *
 */
public class Book {

	//图书属性
	private int bookId;
	private String bookName;
	private int bookCategoryId;
	private float price;
	private int amount;

	public Book(){
		
	}
	
	/**设置或获得Book的属性值*/
	
	//bookId
	public int getBookId() {
		return this.bookId;
	}
	public void setBookId(int _bookId) {
		this.bookId = _bookId;
	}
	
	//bookName
	public String getBookName() {
		return this.bookName;
	}
	public void setBookName(String _bookName) {
		this.bookName = _bookName;
	}
	
	//categoryId
	public int getBookCategoryId() {
		return this.bookCategoryId;
	}
	public void setBookCategoryId(int _bookCategoryId) {
		this.bookCategoryId = _bookCategoryId;
	}
	
	//price
	public float getPrice() {
		return this.price;
	}
	public void setPrice(float _price) {
		this.price =_price;
	}
	
	//amount
	public int getAmount() {
		return this.amount;
	}
	public void setAmount(int _amount) {
		this.amount = _amount;
	}
	
	
	//重写toString()
	public String toString(){
		return this.bookId+this.bookName+this.bookCategoryId+this.price+this.amount;
	}
	
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -