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