-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathBook.java
73 lines (73 loc) · 1.79 KB
/
Book.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//Book.java;
//package PublicModule;
import java.sql.Date;
public class Book {
private static String id,bookname,booktype,author,translator,publisher;
private static Date publish_time;
private static int stock,page;
private static float price;
public static String getId() {
return id;
}
public static void setId(String id) {
Book.id = id;
}
public static String getBookname() {
return bookname;
}
public static void setBookname(String bookname) {
Book.bookname = bookname;
}
public static String getBooktype() {
return booktype;
}
public static void setBooktype(String booktype) {
Book.booktype = booktype;
}
public static String getAuthor() {
return author;
}
public static void setAuthor(String author) {
Book.author = author;
}
public static String getTranslator() {
return translator;
}
public static void setTranslator(String translator) {
Book.translator = translator;
}
public static String getPublisher() {
return publisher;
}
public static void setPublisher(String publisher) {
Book.publisher = publisher;
}
public static Date getPublish_time() {
return publish_time;
}
public static void setPublish_time(Date publish_time) {
Book.publish_time = publish_time;
}
public static int getStock() {
return stock;
}
public static void setStock(int stock) {
Book.stock = stock;
}
public static int getPage() {
return page;
}
public static void setPage(int page) {
Book.page = page;
}
public static float getPrice() {
return price;
}
public static void setPrice(float price) {
Book.price = price;
}
public static String[] getBookinformation() {
String[] bookinformation={id,bookname,String.valueOf(page),author,translator,publisher,publish_time.toString(),String.valueOf(price),String.valueOf(stock),booktype,};
return bookinformation;
}
}