View Javadoc
1   /**
2    * Copyright 2005-2015 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  /**
17   * 
18   */
19  package edu.sampleu.bookstore.bo;
20  
21  import org.kuali.rice.core.api.util.type.KualiDecimal;
22  import org.kuali.rice.core.api.util.type.KualiInteger;
23  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
24  
25  import java.util.ArrayList;
26  import java.util.Date;
27  import java.util.List;
28  
29  
30  /**
31   * A business object class for the Book maintenance object. 
32   */
33  public class Book extends PersistableBusinessObjectBase {
34  
35  	private static final long serialVersionUID = -2406918292069639330L;
36  
37  	private Long id;
38  	private String title;
39  	private String typeCode;
40  	private String isbn;
41  	private String publisher;
42  	private Date publicationDate;
43  	private KualiDecimal price;
44  	private KualiInteger rating;
45  
46  	private BookType bookType;
47  
48  	private List<Author> authors = new ArrayList<Author>();
49  
50  	public Long getId() {
51  		return id;
52  	}
53  
54  	public void setId(Long id) {
55  		this.id = id;
56  	}
57  
58  	public String getTitle() {
59  		return title;
60  	}
61  
62  	public void setTitle(String title) {
63  		this.title = title;
64  	}
65  
66  	public String getTypeCode() {
67  		return typeCode;
68  	}
69  
70  	public void setTypeCode(String typeCode) {
71  		this.typeCode = typeCode;
72  	}
73  
74  	public BookType getBookType() {
75  		return bookType;
76  	}
77  
78  	public void setBookType(BookType bookType) {
79  		this.bookType = bookType;
80  	}
81  
82  	public String getIsbn() {
83  		return isbn;
84  	}
85  
86  	public void setIsbn(String isbn) {
87  		this.isbn = isbn;
88  	}
89  
90  	public String getPublisher() {
91  		return publisher;
92  	}
93  
94  	public void setPublisher(String publisher) {
95  		this.publisher = publisher;
96  	}
97  
98  	public Date getPublicationDate() {
99  		return publicationDate;
100 	}
101 
102 	public void setPublicationDate(Date publicationDate) {
103 		this.publicationDate = publicationDate;
104 	}
105 
106 	public KualiInteger getRating() {
107 		return rating;
108 	}
109 
110 	public void setRating(KualiInteger rating) {
111 		this.rating = rating;
112 	}
113 
114 	public KualiDecimal getPrice() {
115 		return price;
116 	}
117 
118 	public void setPrice(KualiDecimal price) {
119 		this.price = price;
120 	}
121 
122 	public List<Author> getAuthors() {
123 		return authors;
124 	}
125 
126 	public void setAuthors(List<Author> authors) {
127 		this.authors = authors;
128 	}
129 
130 }