1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.shopping.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="ShoppingItemSoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * <code>com.liferay.portlet.shopping.service.http.ShoppingItemServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.shopping.service.http.ShoppingItemServiceSoap
47   *
48   */
49  public class ShoppingItemSoap implements Serializable {
50      public static ShoppingItemSoap toSoapModel(ShoppingItem model) {
51          ShoppingItemSoap soapModel = new ShoppingItemSoap();
52  
53          soapModel.setItemId(model.getItemId());
54          soapModel.setCompanyId(model.getCompanyId());
55          soapModel.setUserId(model.getUserId());
56          soapModel.setUserName(model.getUserName());
57          soapModel.setCreateDate(model.getCreateDate());
58          soapModel.setModifiedDate(model.getModifiedDate());
59          soapModel.setCategoryId(model.getCategoryId());
60          soapModel.setSku(model.getSku());
61          soapModel.setName(model.getName());
62          soapModel.setDescription(model.getDescription());
63          soapModel.setProperties(model.getProperties());
64          soapModel.setFields(model.getFields());
65          soapModel.setFieldsQuantities(model.getFieldsQuantities());
66          soapModel.setMinQuantity(model.getMinQuantity());
67          soapModel.setMaxQuantity(model.getMaxQuantity());
68          soapModel.setPrice(model.getPrice());
69          soapModel.setDiscount(model.getDiscount());
70          soapModel.setTaxable(model.getTaxable());
71          soapModel.setShipping(model.getShipping());
72          soapModel.setUseShippingFormula(model.getUseShippingFormula());
73          soapModel.setRequiresShipping(model.getRequiresShipping());
74          soapModel.setStockQuantity(model.getStockQuantity());
75          soapModel.setFeatured(model.getFeatured());
76          soapModel.setSale(model.getSale());
77          soapModel.setSmallImage(model.getSmallImage());
78          soapModel.setSmallImageId(model.getSmallImageId());
79          soapModel.setSmallImageURL(model.getSmallImageURL());
80          soapModel.setMediumImage(model.getMediumImage());
81          soapModel.setMediumImageId(model.getMediumImageId());
82          soapModel.setMediumImageURL(model.getMediumImageURL());
83          soapModel.setLargeImage(model.getLargeImage());
84          soapModel.setLargeImageId(model.getLargeImageId());
85          soapModel.setLargeImageURL(model.getLargeImageURL());
86  
87          return soapModel;
88      }
89  
90      public static ShoppingItemSoap[] toSoapModels(List models) {
91          List soapModels = new ArrayList(models.size());
92  
93          for (int i = 0; i < models.size(); i++) {
94              ShoppingItem model = (ShoppingItem)models.get(i);
95  
96              soapModels.add(toSoapModel(model));
97          }
98  
99          return (ShoppingItemSoap[])soapModels.toArray(new ShoppingItemSoap[0]);
100     }
101 
102     public ShoppingItemSoap() {
103     }
104 
105     public long getPrimaryKey() {
106         return _itemId;
107     }
108 
109     public void setPrimaryKey(long pk) {
110         setItemId(pk);
111     }
112 
113     public long getItemId() {
114         return _itemId;
115     }
116 
117     public void setItemId(long itemId) {
118         _itemId = itemId;
119     }
120 
121     public long getCompanyId() {
122         return _companyId;
123     }
124 
125     public void setCompanyId(long companyId) {
126         _companyId = companyId;
127     }
128 
129     public long getUserId() {
130         return _userId;
131     }
132 
133     public void setUserId(long userId) {
134         _userId = userId;
135     }
136 
137     public String getUserName() {
138         return _userName;
139     }
140 
141     public void setUserName(String userName) {
142         _userName = userName;
143     }
144 
145     public Date getCreateDate() {
146         return _createDate;
147     }
148 
149     public void setCreateDate(Date createDate) {
150         _createDate = createDate;
151     }
152 
153     public Date getModifiedDate() {
154         return _modifiedDate;
155     }
156 
157     public void setModifiedDate(Date modifiedDate) {
158         _modifiedDate = modifiedDate;
159     }
160 
161     public long getCategoryId() {
162         return _categoryId;
163     }
164 
165     public void setCategoryId(long categoryId) {
166         _categoryId = categoryId;
167     }
168 
169     public String getSku() {
170         return _sku;
171     }
172 
173     public void setSku(String sku) {
174         _sku = sku;
175     }
176 
177     public String getName() {
178         return _name;
179     }
180 
181     public void setName(String name) {
182         _name = name;
183     }
184 
185     public String getDescription() {
186         return _description;
187     }
188 
189     public void setDescription(String description) {
190         _description = description;
191     }
192 
193     public String getProperties() {
194         return _properties;
195     }
196 
197     public void setProperties(String properties) {
198         _properties = properties;
199     }
200 
201     public boolean getFields() {
202         return _fields;
203     }
204 
205     public boolean isFields() {
206         return _fields;
207     }
208 
209     public void setFields(boolean fields) {
210         _fields = fields;
211     }
212 
213     public String getFieldsQuantities() {
214         return _fieldsQuantities;
215     }
216 
217     public void setFieldsQuantities(String fieldsQuantities) {
218         _fieldsQuantities = fieldsQuantities;
219     }
220 
221     public int getMinQuantity() {
222         return _minQuantity;
223     }
224 
225     public void setMinQuantity(int minQuantity) {
226         _minQuantity = minQuantity;
227     }
228 
229     public int getMaxQuantity() {
230         return _maxQuantity;
231     }
232 
233     public void setMaxQuantity(int maxQuantity) {
234         _maxQuantity = maxQuantity;
235     }
236 
237     public double getPrice() {
238         return _price;
239     }
240 
241     public void setPrice(double price) {
242         _price = price;
243     }
244 
245     public double getDiscount() {
246         return _discount;
247     }
248 
249     public void setDiscount(double discount) {
250         _discount = discount;
251     }
252 
253     public boolean getTaxable() {
254         return _taxable;
255     }
256 
257     public boolean isTaxable() {
258         return _taxable;
259     }
260 
261     public void setTaxable(boolean taxable) {
262         _taxable = taxable;
263     }
264 
265     public double getShipping() {
266         return _shipping;
267     }
268 
269     public void setShipping(double shipping) {
270         _shipping = shipping;
271     }
272 
273     public boolean getUseShippingFormula() {
274         return _useShippingFormula;
275     }
276 
277     public boolean isUseShippingFormula() {
278         return _useShippingFormula;
279     }
280 
281     public void setUseShippingFormula(boolean useShippingFormula) {
282         _useShippingFormula = useShippingFormula;
283     }
284 
285     public boolean getRequiresShipping() {
286         return _requiresShipping;
287     }
288 
289     public boolean isRequiresShipping() {
290         return _requiresShipping;
291     }
292 
293     public void setRequiresShipping(boolean requiresShipping) {
294         _requiresShipping = requiresShipping;
295     }
296 
297     public int getStockQuantity() {
298         return _stockQuantity;
299     }
300 
301     public void setStockQuantity(int stockQuantity) {
302         _stockQuantity = stockQuantity;
303     }
304 
305     public boolean getFeatured() {
306         return _featured;
307     }
308 
309     public boolean isFeatured() {
310         return _featured;
311     }
312 
313     public void setFeatured(boolean featured) {
314         _featured = featured;
315     }
316 
317     public boolean getSale() {
318         return _sale;
319     }
320 
321     public boolean isSale() {
322         return _sale;
323     }
324 
325     public void setSale(boolean sale) {
326         _sale = sale;
327     }
328 
329     public boolean getSmallImage() {
330         return _smallImage;
331     }
332 
333     public boolean isSmallImage() {
334         return _smallImage;
335     }
336 
337     public void setSmallImage(boolean smallImage) {
338         _smallImage = smallImage;
339     }
340 
341     public long getSmallImageId() {
342         return _smallImageId;
343     }
344 
345     public void setSmallImageId(long smallImageId) {
346         _smallImageId = smallImageId;
347     }
348 
349     public String getSmallImageURL() {
350         return _smallImageURL;
351     }
352 
353     public void setSmallImageURL(String smallImageURL) {
354         _smallImageURL = smallImageURL;
355     }
356 
357     public boolean getMediumImage() {
358         return _mediumImage;
359     }
360 
361     public boolean isMediumImage() {
362         return _mediumImage;
363     }
364 
365     public void setMediumImage(boolean mediumImage) {
366         _mediumImage = mediumImage;
367     }
368 
369     public long getMediumImageId() {
370         return _mediumImageId;
371     }
372 
373     public void setMediumImageId(long mediumImageId) {
374         _mediumImageId = mediumImageId;
375     }
376 
377     public String getMediumImageURL() {
378         return _mediumImageURL;
379     }
380 
381     public void setMediumImageURL(String mediumImageURL) {
382         _mediumImageURL = mediumImageURL;
383     }
384 
385     public boolean getLargeImage() {
386         return _largeImage;
387     }
388 
389     public boolean isLargeImage() {
390         return _largeImage;
391     }
392 
393     public void setLargeImage(boolean largeImage) {
394         _largeImage = largeImage;
395     }
396 
397     public long getLargeImageId() {
398         return _largeImageId;
399     }
400 
401     public void setLargeImageId(long largeImageId) {
402         _largeImageId = largeImageId;
403     }
404 
405     public String getLargeImageURL() {
406         return _largeImageURL;
407     }
408 
409     public void setLargeImageURL(String largeImageURL) {
410         _largeImageURL = largeImageURL;
411     }
412 
413     private long _itemId;
414     private long _companyId;
415     private long _userId;
416     private String _userName;
417     private Date _createDate;
418     private Date _modifiedDate;
419     private long _categoryId;
420     private String _sku;
421     private String _name;
422     private String _description;
423     private String _properties;
424     private boolean _fields;
425     private String _fieldsQuantities;
426     private int _minQuantity;
427     private int _maxQuantity;
428     private double _price;
429     private double _discount;
430     private boolean _taxable;
431     private double _shipping;
432     private boolean _useShippingFormula;
433     private boolean _requiresShipping;
434     private int _stockQuantity;
435     private boolean _featured;
436     private boolean _sale;
437     private boolean _smallImage;
438     private long _smallImageId;
439     private String _smallImageURL;
440     private boolean _mediumImage;
441     private long _mediumImageId;
442     private String _mediumImageURL;
443     private boolean _largeImage;
444     private long _largeImageId;
445     private String _largeImageURL;
446 }