📄 book.java
字号:
/*
* Created on 2005-1-27
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.book.domain;
/**
* @author Administrator
*
* TODO To change the template for this generated type comment go to Window -
* Preferences - Java - Code Style - Code Templates
*/
public class Book {
// String 书籍编号
private String bookid = "";
// String 书籍名称
private String bookname = "";
// String 作者
private String author = "";
// String 出版社
private String publishing = "";
// String 出版日期
private String publishingdate = "";
// int 库存数量
private int storage = 0;
public Book() {
}
public Book(String bookid, String bookname, String author,
String publishing, String publishingdate, int storage) {
//super();
// TODO Auto-generated constructor stub
this.bookid = bookid;
this.bookname = bookname;
this.author = author;
this.publishing = publishing;
this.publishingdate = publishingdate;
this.storage = storage;
}
/**
* @return Returns the author.
*/
public String getAuthor() {
return author;
}
/**
* @param author
* The author to set.
*/
public void setAuthor(String author) {
this.author = author;
}
/**
* @return Returns the bookid.
*/
public String getBookid() {
return bookid;
}
/**
* @param bookid
* The bookid to set.
*/
public void setBookid(String bookid) {
this.bookid = bookid;
}
/**
* @return Returns the bookname.
*/
public String getBookname() {
return bookname;
}
/**
* @param bookname
* The bookname to set.
*/
public void setBookname(String bookname) {
this.bookname = bookname;
}
/**
* @return Returns the publishing.
*/
public String getPublishing() {
return publishing;
}
/**
* @param publishing
* The publishing to set.
*/
public void setPublishing(String publishing) {
this.publishing = publishing;
}
/**
* @return Returns the publishingdate.
*/
public String getPublishingdate() {
return publishingdate;
}
/**
* @param publishingdate
* The publishingdate to set.
*/
public void setPublishingdate(String publishingdate) {
this.publishingdate = publishingdate;
}
/**
* @return Returns the storage.
*/
public int getStorage() {
return storage;
}
/**
* @param storage
* The storage to set.
*/
public void setStorage(int storage) {
this.storage = storage;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -