View Javadoc

1   /*
2    * The SmartWeb Framework
3    * Copyright (C) 2004-2006
4    *
5    * This library is free software; you can redistribute it and/or
6    * modify it under the terms of the GNU Lesser General Public
7    * License as published by the Free Software Foundation; either
8    * version 2.1 of the License, or (at your option) any later version.
9    *
10   * This library is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   * Lesser General Public License for more details.
14   *
15   * You should have received a copy of the GNU Lesser General Public
16   * License along with this library; if not, write to the Free Software
17   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
18   *
19   * For further informations on the SmartWeb Framework please visit
20   *
21   *                        http://smartweb.sourceforge.net
22   */
23   
24  package net.smartlab.web.shop;
25  
26  import java.math.BigDecimal;
27  import java.util.Set;
28  
29  import net.smartlab.web.BusinessObject;
30  
31  /**
32   * @TODO documentation
33   * 
34   * @author rlogiacco@smartlab.net
35   */
36  public class Service extends BusinessObject implements Product {
37  
38  	private final static long serialVersionUID = -2173890291159454508L;
39  
40  	/**
41  	 * @TODO documentation
42  	 */
43  	private long id;
44  	/**
45  	 * @TODO documentation
46  	 */
47  	private String name;
48  	/**
49  	 * @TODO documentation
50  	 */
51  	private String description;
52  	/**
53  	 * @TODO documentation
54  	 */
55  	private Set images;
56  	/**
57  	 * @TODO documentation
58  	 */
59  	private Set documents;
60  
61  	/**
62  	 * @TODO documentation
63  	 */
64  	private BigDecimal value;
65  	/**
66  	 * @TODO documentation
67  	 */
68  	private BigDecimal price;
69  	/**
70  	 * @TODO documentation
71  	 */
72  	private BigDecimal taxes;
73  
74  	/**
75  	 * @TODO documentation
76  	 */
77  	private int minimum;
78  	/**
79  	 * @TODO documentation
80  	 */
81  	private int maximum;
82  	
83  	private long duration;
84  
85  	/**
86  	 * @TODO documentation
87  	 * 
88  	 * @return Returns the id.
89  	 * @hibernate.id column="`id`" unsaved-value="0" generator-class="native"
90  	 */
91  	public long getId() {
92  		return id;
93  	}
94  
95  	/**
96  	 * @TODO documentation
97  	 * 
98  	 * @param id The id to set.
99  	 */
100 	public void setId(long id) {
101 		this.id = id;
102 	}
103 
104 	/**
105 	 * @TODO documentation
106 	 * 
107 	 * @return Returns the name.
108 	 */
109 	public String getName() {
110 		return name;
111 	}
112 
113 	/**
114 	 * @TODO documentation
115 	 * 
116 	 * @param name The name to set.
117 	 */
118 	public void setName(String name) {
119 		this.name = name;
120 	}
121 
122 	/**
123 	 * @TODO documentation
124 	 * 
125 	 * @return Returns the description.
126 	 */
127 	public String getDescription() {
128 		return description;
129 	}
130 
131 	/**
132 	 * @TODO documentation
133 	 * 
134 	 * @param description The description to set.
135 	 */
136 	public void setDescription(String description) {
137 		this.description = description;
138 	}
139 
140 	/**
141 	 * @see net.smartlab.web.shop.Product#getDocuments()
142 	 */
143 	public Set getDocuments() {
144 		return documents;
145 	}
146 
147 	/**
148 	 * @see net.smartlab.web.shop.Product#setDocuments(java.util.Set)
149 	 */
150 	public void setDocuments(Set documents) {
151 		this.documents = documents;
152 	}
153 
154 	/**
155 	 * @see net.smartlab.web.shop.Product#getImages()
156 	 */
157 	public Set getImages() {
158 		return images;
159 	}
160 
161 	/**
162 	 * @see net.smartlab.web.shop.Product#setImages(java.util.Set)
163 	 */
164 	public void setImages(Set images) {
165 		this.images = images;
166 	}
167 
168 	/**
169 	 * @see net.smartlab.web.shop.Product#getMaximum()
170 	 */
171 	public int getMaximum() {
172 		return maximum;
173 	}
174 
175 	/**
176 	 * @see net.smartlab.web.shop.Product#setMaximum(int)
177 	 */
178 	public void setMaximum(int maximum) {
179 		this.maximum = maximum;
180 	}
181 
182 	/**
183 	 * @see net.smartlab.web.shop.Product#getMinimum()
184 	 */
185 	public int getMinimum() {
186 		return minimum;
187 	}
188 
189 	/**
190 	 * @see net.smartlab.web.shop.Product#setMinimum(int)
191 	 */
192 	public void setMinimum(int minimum) {
193 		this.minimum = minimum;
194 	}
195 
196 	/**
197 	 * @see net.smartlab.web.shop.Product#getPrice()
198 	 */
199 	public BigDecimal getPrice() {
200 		return price;
201 	}
202 
203 	/**
204 	 * @see net.smartlab.web.shop.Product#setPrice(float)
205 	 */
206 	public void setPrice(BigDecimal price) {
207 		this.price = price;
208 	}
209 
210 	/**
211 	 * @see net.smartlab.web.shop.Product#getTaxes()
212 	 */
213 	public BigDecimal getTaxes() {
214 		return taxes;
215 	}
216 
217 	/**
218 	 * @see net.smartlab.web.shop.Product#setTaxes(float)
219 	 */
220 	public void setTaxes(BigDecimal taxes) {
221 		this.taxes = taxes;
222 	}
223 
224 	/**
225 	 * @see net.smartlab.web.shop.Product#getValue()
226 	 */
227 	public BigDecimal getValue() {
228 		return value;
229 	}
230 
231 	/**
232 	 * @see net.smartlab.web.shop.Product#setValue(float)
233 	 */
234 	public void setValue(BigDecimal value) {
235 		this.value = value;
236 	}
237 	/**
238 	 * @TODO documentation 
239 	 * @return returns the <code>duration</code>.
240 	 */
241 	public long getDuration() {
242 		return duration;
243 	}
244 	/**
245 	 * @TODO documentation 
246 	 * @param duration the <code>duration</code> to set.
247 	 */
248 	public void setDuration(long duration) {
249 		this.duration = duration;
250 	}
251 }