001 package edu.sampleu.bookstore.bo; 002 003 import java.util.LinkedHashMap; 004 005 import org.kuali.rice.core.util.type.KualiPercent; 006 import org.kuali.rice.core.util.type.KualiDecimal; 007 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 008 009 010 /** 011 * BookOrder Business Object class file. 012 */ 013 public class BookOrder extends PersistableBusinessObjectBase { 014 015 private static final long serialVersionUID = -3602318476248146613L; 016 017 private Long id; 018 private String documentId; 019 private Long bookId; 020 private Integer quantity; 021 private KualiPercent discount; 022 private KualiDecimal unitPrice; 023 private KualiDecimal totalPrice; 024 025 private Book book; 026 027 public Long getId() { 028 return id; 029 } 030 031 public void setId(Long id) { 032 this.id = id; 033 } 034 035 public Integer getQuantity() { 036 return quantity; 037 } 038 039 public void setQuantity(Integer quantity) { 040 this.quantity = quantity; 041 } 042 043 public String getDocumentId() { 044 return documentId; 045 } 046 047 public void setDocumentId(String documentId) { 048 this.documentId = documentId; 049 } 050 051 public Long getBookId() { 052 return bookId; 053 } 054 055 public void setBookId(Long bookId) { 056 this.bookId = bookId; 057 } 058 059 public Book getBook() { 060 return book; 061 } 062 063 public void setBook(Book book) { 064 this.book = book; 065 } 066 067 public KualiPercent getDiscount() { 068 return discount; 069 } 070 071 public void setDiscount(KualiPercent discount) { 072 this.discount = discount; 073 } 074 075 public KualiDecimal getUnitPrice() { 076 return unitPrice; 077 } 078 079 public void setUnitPrice(KualiDecimal unitPrice) { 080 this.unitPrice = unitPrice; 081 } 082 083 public KualiDecimal getTotalPrice() { 084 return totalPrice; 085 } 086 087 public void setTotalPrice(KualiDecimal totalPrice) { 088 this.totalPrice = totalPrice; 089 } 090 091 092 093 }