001 /**
002 * Copyright 2005-2012 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package edu.sampleu.bookstore.bo;
017
018 import org.kuali.rice.core.api.util.type.KualiDecimal;
019 import org.kuali.rice.core.api.util.type.KualiPercent;
020 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
021
022
023 /**
024 * BookOrder Business Object class file.
025 */
026 public class BookOrder extends PersistableBusinessObjectBase {
027
028 private static final long serialVersionUID = -3602318476248146613L;
029
030 private Long id;
031 private String documentId;
032 private Long bookId;
033 private Integer quantity;
034 private KualiPercent discount;
035 private KualiDecimal unitPrice;
036 private KualiDecimal totalPrice;
037
038 private Book book;
039
040 public Long getId() {
041 return id;
042 }
043
044 public void setId(Long id) {
045 this.id = id;
046 }
047
048 public Integer getQuantity() {
049 return quantity;
050 }
051
052 public void setQuantity(Integer quantity) {
053 this.quantity = quantity;
054 }
055
056 public String getDocumentId() {
057 return documentId;
058 }
059
060 public void setDocumentId(String documentId) {
061 this.documentId = documentId;
062 }
063
064 public Long getBookId() {
065 return bookId;
066 }
067
068 public void setBookId(Long bookId) {
069 this.bookId = bookId;
070 }
071
072 public Book getBook() {
073 return book;
074 }
075
076 public void setBook(Book book) {
077 this.book = book;
078 }
079
080 public KualiPercent getDiscount() {
081 return discount;
082 }
083
084 public void setDiscount(KualiPercent discount) {
085 this.discount = discount;
086 }
087
088 public KualiDecimal getUnitPrice() {
089 return unitPrice;
090 }
091
092 public void setUnitPrice(KualiDecimal unitPrice) {
093 this.unitPrice = unitPrice;
094 }
095
096 public KualiDecimal getTotalPrice() {
097 return totalPrice;
098 }
099
100 public void setTotalPrice(KualiDecimal totalPrice) {
101 this.totalPrice = totalPrice;
102 }
103
104
105
106 }