View Javadoc

1   /**
2    * Copyright 2005-2014 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  package edu.sampleu.bookstore.bo;
17  
18  import org.kuali.rice.core.api.util.type.KualiDecimal;
19  import org.kuali.rice.core.api.util.type.KualiPercent;
20  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
21  
22  
23  /**
24   * BookOrder Business Object class file.
25   */
26  public class BookOrder extends PersistableBusinessObjectBase {
27  
28  	private static final long serialVersionUID = -3602318476248146613L;
29  
30  	private Long id;
31  	private String documentId;
32  	private Long bookId;
33  	private Integer quantity;
34  	private KualiPercent discount;
35  	private KualiDecimal unitPrice;
36  	private KualiDecimal totalPrice;
37  
38  	private Book book;
39  
40  	public Long getId() {
41  		return id;
42  	}
43  
44  	public void setId(Long id) {
45  		this.id = id;
46  	}
47  
48  	public Integer getQuantity() {
49  		return quantity;
50  	}
51  
52  	public void setQuantity(Integer quantity) {
53  		this.quantity = quantity;
54  	}
55  
56  	public String getDocumentId() {
57  		return documentId;
58  	}
59  
60  	public void setDocumentId(String documentId) {
61  		this.documentId = documentId;
62  	}
63  
64  	public Long getBookId() {
65  		return bookId;
66  	}
67  
68  	public void setBookId(Long bookId) {
69  		this.bookId = bookId;
70  	}
71  
72  	public Book getBook() {
73  		return book;
74  	}
75  
76  	public void setBook(Book book) {
77  		this.book = book;
78  	}
79  
80  	public KualiPercent getDiscount() {
81  		return discount;
82  	}
83  
84  	public void setDiscount(KualiPercent discount) {
85  		this.discount = discount;
86  	}
87  
88  	public KualiDecimal getUnitPrice() {
89  		return unitPrice;
90  	}
91  
92  	public void setUnitPrice(KualiDecimal unitPrice) {
93  		this.unitPrice = unitPrice;
94  	}
95  
96  	public KualiDecimal getTotalPrice() {
97  		return totalPrice;
98  	}
99  
100 	public void setTotalPrice(KualiDecimal totalPrice) {
101 		this.totalPrice = totalPrice;
102 	}
103 
104 	 
105 
106 }