KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > olstore > dto > ItemValue


1 /**
2  * Copyright (c) 2004 Red Hat, Inc. All rights reserved.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
17  * USA
18  *
19  * Component of: Red Hat Application Server
20  *
21  * Initial Developers: Aizaz Ahmed
22  * Vivek Lakshmanan
23  * Andrew Overholt
24  * Matthew Wringe
25  *
26  */

27 package olstore.dto;
28
29
30 import java.lang.Integer;
31
32 import java.util.Collection;
33 import java.math.BigDecimal;
34
35 public class ItemValue {
36     
37     private Integer ItemId;
38     private String Name;
39     private BigDecimal Price;
40     private String ShortDesc;
41     private String LongDesc;
42     private Boolean MainPage;
43     private Boolean SpecialOffer;
44     
45     
46     //Fields that differ from their backend
47
//representation
48
private String TypeId;
49     private Collection Properties;
50     private Collection Pictures;
51     
52     
53     
54     public Integer getItemId () {
55         return ItemId;
56     }
57     public void setItemId ( Integer itemId ) {
58         ItemId = itemId;
59     }
60     
61     public String getName () {
62         return Name ;
63     }
64     public void setName ( String name) {
65         Name = name ;
66     }
67     
68     public BigDecimal getPrice () {
69         return Price ;
70     }
71     public void setPrice ( BigDecimal price ) {
72         Price = price ;
73     }
74     
75     public String getShortDesc () {
76         return ShortDesc;
77     }
78     public void setShortDesc ( String shortDesc ) {
79         ShortDesc = shortDesc ;
80     }
81     
82     public String getLongDesc () {
83         return LongDesc ;
84     }
85     public void setLongDesc ( String longDesc ) {
86         LongDesc = longDesc ;
87     }
88     
89     public Boolean getMainPage () {
90         return MainPage ;
91     }
92     public void setMainPage ( Boolean mainPage ) {
93         MainPage = mainPage;
94     }
95     
96     public Boolean getSpecialOffer () {
97         return SpecialOffer;
98     }
99     public void setSpecialOffer ( Boolean specialOffer ) {
100         SpecialOffer = specialOffer ;
101     }
102     
103     public String getTypeId () {
104         return TypeId;
105     }
106     public void setTypeId ( String typeId ) {
107         TypeId = typeId;
108     }
109     
110     public Collection getProperties () {
111         return Properties ;
112     }
113     public void setProperties ( Collection properties ) {
114         Properties = properties;
115     }
116     
117     public Collection getPictures () {
118         return Pictures;
119     }
120     public void setPictures ( Collection pictures ) {
121         Pictures = pictures ;
122     }
123     
124 }
125
Popular Tags