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