001: /**
002: * Copyright (c) 2004 Red Hat, Inc. All rights reserved.
003: *
004: * This library is free software; you can redistribute it and/or
005: * modify it under the terms of the GNU Lesser General Public
006: * License as published by the Free Software Foundation; either
007: * version 2.1 of the License, or any later version.
008: *
009: * This library is distributed in the hope that it will be useful,
010: * but WITHOUT ANY WARRANTY; without even the implied warranty of
011: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012: * Lesser General Public License for more details.
013: *
014: * You should have received a copy of the GNU Lesser General Public
015: * License along with this library; if not, write to the Free Software
016: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
017: * USA
018: *
019: * Component of: Red Hat Application Server
020: *
021: * Initial Developers: Aizaz Ahmed
022: * Vivek Lakshmanan
023: * Andrew Overholt
024: * Matthew Wringe
025: *
026: */package olstore.dto;
027:
028: import java.lang.Integer;
029:
030: import java.util.Collection;
031: import java.math.BigDecimal;
032:
033: public class ItemValue {
034:
035: private Integer ItemId;
036: private String Name;
037: private BigDecimal Price;
038: private String ShortDesc;
039: private String LongDesc;
040: private Boolean MainPage;
041: private Boolean SpecialOffer;
042:
043: //Fields that differ from their backend
044: //representation
045: private String TypeId;
046: private Collection Properties;
047: private Collection Pictures;
048:
049: public Integer getItemId() {
050: return ItemId;
051: }
052:
053: public void setItemId(Integer itemId) {
054: ItemId = itemId;
055: }
056:
057: public String getName() {
058: return Name;
059: }
060:
061: public void setName(String name) {
062: Name = name;
063: }
064:
065: public BigDecimal getPrice() {
066: return Price;
067: }
068:
069: public void setPrice(BigDecimal price) {
070: Price = price;
071: }
072:
073: public String getShortDesc() {
074: return ShortDesc;
075: }
076:
077: public void setShortDesc(String shortDesc) {
078: ShortDesc = shortDesc;
079: }
080:
081: public String getLongDesc() {
082: return LongDesc;
083: }
084:
085: public void setLongDesc(String longDesc) {
086: LongDesc = longDesc;
087: }
088:
089: public Boolean getMainPage() {
090: return MainPage;
091: }
092:
093: public void setMainPage(Boolean mainPage) {
094: MainPage = mainPage;
095: }
096:
097: public Boolean getSpecialOffer() {
098: return SpecialOffer;
099: }
100:
101: public void setSpecialOffer(Boolean specialOffer) {
102: SpecialOffer = specialOffer;
103: }
104:
105: public String getTypeId() {
106: return TypeId;
107: }
108:
109: public void setTypeId(String typeId) {
110: TypeId = typeId;
111: }
112:
113: public Collection getProperties() {
114: return Properties;
115: }
116:
117: public void setProperties(Collection properties) {
118: Properties = properties;
119: }
120:
121: public Collection getPictures() {
122: return Pictures;
123: }
124:
125: public void setPictures(Collection pictures) {
126: Pictures = pictures;
127: }
128:
129: }
|