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

📄 book.java

📁 一个简单的网上订书系统 java的课程设计
💻 JAVA
字号:
package beans;

import java.sql.Date;

public class Book {

	private String BID;

	private String author;

	private String title;

	private String isbn;

	private String PID;

	private String edition;

	private Date publicationDate;

	private double price;

	private String description;

	private String SCno;

	public Book() {
		BID = null;
		author = null;
		title = null;
		isbn = null;
		PID = null;
		edition = null;
		publicationDate = null;
		price = 0.0f;
		description = null;
		SCno = null;
	}

	public Book(String[] args) {
		if (args.length != 10)
			return;
		BID = args[0];
		author = args[1];
		title = args[2];
		isbn = args[3];
		PID = args[4];
		edition = args[5];
		publicationDate = Date.valueOf(args[6]);
		price = Float.parseFloat(args[7]);
		description = args[8];
		SCno = args[9];
	}

	public Book(String BID, String author, String title, String isbn,
			String PID, String edition, String publicationDate, double price,
			String descripition, String SCno) {
		this.BID = BID;
		this.author = author;
		this.title = title;
		this.isbn = isbn;
		this.PID = PID;
		this.edition = edition;
		this.publicationDate = Date.valueOf(publicationDate);
		this.price = price;
		this.description = descripition;
		this.SCno = SCno;
	}

	public String getBID() {
		return BID;
	}

	public void setBID(String BID) {
		this.BID = BID;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}

	public String getPID() {
		return PID;
	}

	public void setPID(String PID) {
		this.PID = PID;
	}

	public String getEdition() {
		return edition;
	}

	public void setEdition(String edition) {
		this.edition = edition;
	}

	public Date getPublicationDate() {
		return publicationDate;
	}

	public void setPublicationDate(String publicationDate) {
		this.publicationDate = Date.valueOf(publicationDate);
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getSCno() {
		return SCno;
	}

	public void setSCno(String SCno) {
		this.SCno = SCno;
	}

	public String toString() {
		return getBID() + "  " + getAuthor() + "  " + getTitle() + "  "
				+ getIsbn() + "  " + getPID() + "  " + getEdition() + "   "
				+ getPublicationDate() + "   " + +getPrice() + "  "
				+ getDescription() + "  " + getSCno();
	}

}

⌨️ 快捷键说明

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