View Javadoc

1   /**
2    * 
3    */
4   package edu.sampleu.bookstore.bo;
5   
6   import java.util.Date;
7   import java.util.ArrayList;
8   import java.util.LinkedHashMap;
9   import java.util.List;
10  
11  import org.kuali.rice.core.util.type.KualiDecimal;
12  import org.kuali.rice.core.util.type.KualiInteger;
13  import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
14  
15  
16  /**
17   * A business object class for the Book maintenance object. 
18   */
19  public class Book extends PersistableBusinessObjectBase {
20  
21  	private static final long serialVersionUID = -2406918292069639330L;
22  
23  	private Long id;
24  	private String title;
25  	private String typeCode;
26  	private String isbn;
27  	private String publisher;
28  	private Date publicationDate;
29  	private KualiDecimal price;
30  	private KualiInteger rating;
31  
32  	private BookType bookType;
33  
34  	private List<Author> authors = new ArrayList<Author>();
35  
36  	public Long getId() {
37  		return id;
38  	}
39  
40  	public void setId(Long id) {
41  		this.id = id;
42  	}
43  
44  	public String getTitle() {
45  		return title;
46  	}
47  
48  	public void setTitle(String title) {
49  		this.title = title;
50  	}
51  
52  	public String getTypeCode() {
53  		return typeCode;
54  	}
55  
56  	public void setTypeCode(String typeCode) {
57  		this.typeCode = typeCode;
58  	}
59  
60  	public BookType getBookType() {
61  		return bookType;
62  	}
63  
64  	public void setBookType(BookType bookType) {
65  		this.bookType = bookType;
66  	}
67  
68  	public String getIsbn() {
69  		return isbn;
70  	}
71  
72  	public void setIsbn(String isbn) {
73  		this.isbn = isbn;
74  	}
75  
76  	public String getPublisher() {
77  		return publisher;
78  	}
79  
80  	public void setPublisher(String publisher) {
81  		this.publisher = publisher;
82  	}
83  
84  	public Date getPublicationDate() {
85  		return publicationDate;
86  	}
87  
88  	public void setPublicationDate(Date publicationDate) {
89  		this.publicationDate = publicationDate;
90  	}
91  
92  	public KualiInteger getRating() {
93  		return rating;
94  	}
95  
96  	public void setRating(KualiInteger rating) {
97  		this.rating = rating;
98  	}
99  
100 	public KualiDecimal getPrice() {
101 		return price;
102 	}
103 
104 	public void setPrice(KualiDecimal price) {
105 		this.price = price;
106 	}
107 
108 	public List<Author> getAuthors() {
109 		return authors;
110 	}
111 
112 	public void setAuthors(List<Author> authors) {
113 		this.authors = authors;
114 	}
115 
116 }