001 /** 002 * 003 */ 004 package edu.sampleu.bookstore.bo; 005 006 import java.util.Date; 007 import java.util.ArrayList; 008 import java.util.LinkedHashMap; 009 import java.util.List; 010 011 import org.kuali.rice.core.util.type.KualiDecimal; 012 import org.kuali.rice.core.util.type.KualiInteger; 013 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 014 015 016 /** 017 * A business object class for the Book maintenance object. 018 */ 019 public class Book extends PersistableBusinessObjectBase { 020 021 private static final long serialVersionUID = -2406918292069639330L; 022 023 private Long id; 024 private String title; 025 private String typeCode; 026 private String isbn; 027 private String publisher; 028 private Date publicationDate; 029 private KualiDecimal price; 030 private KualiInteger rating; 031 032 private BookType bookType; 033 034 private List<Author> authors = new ArrayList<Author>(); 035 036 public Long getId() { 037 return id; 038 } 039 040 public void setId(Long id) { 041 this.id = id; 042 } 043 044 public String getTitle() { 045 return title; 046 } 047 048 public void setTitle(String title) { 049 this.title = title; 050 } 051 052 public String getTypeCode() { 053 return typeCode; 054 } 055 056 public void setTypeCode(String typeCode) { 057 this.typeCode = typeCode; 058 } 059 060 public BookType getBookType() { 061 return bookType; 062 } 063 064 public void setBookType(BookType bookType) { 065 this.bookType = bookType; 066 } 067 068 public String getIsbn() { 069 return isbn; 070 } 071 072 public void setIsbn(String isbn) { 073 this.isbn = isbn; 074 } 075 076 public String getPublisher() { 077 return publisher; 078 } 079 080 public void setPublisher(String publisher) { 081 this.publisher = publisher; 082 } 083 084 public Date getPublicationDate() { 085 return publicationDate; 086 } 087 088 public void setPublicationDate(Date publicationDate) { 089 this.publicationDate = publicationDate; 090 } 091 092 public KualiInteger getRating() { 093 return rating; 094 } 095 096 public void setRating(KualiInteger rating) { 097 this.rating = rating; 098 } 099 100 public KualiDecimal getPrice() { 101 return price; 102 } 103 104 public void setPrice(KualiDecimal price) { 105 this.price = price; 106 } 107 108 public List<Author> getAuthors() { 109 return authors; 110 } 111 112 public void setAuthors(List<Author> authors) { 113 this.authors = authors; 114 } 115 116 }