1   /**
2    * Copyright (c) 2000-2009 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<ShoppingItem> models) {
91          List<ShoppingItemSoap> soapModels = new ArrayList<ShoppingItemSoap>(models.size());
92  
93          for (ShoppingItem model : models) {
94              soapModels.add(toSoapModel(model));
95          }
96  
97          return soapModels.toArray(new ShoppingItemSoap[soapModels.size()]);
98      }
99  
100     public ShoppingItemSoap() {
101     }
102 
103     public long getPrimaryKey() {
104         return _itemId;
105     }
106 
107     public void setPrimaryKey(long pk) {
108         setItemId(pk);
109     }
110 
111     public long getItemId() {
112         return _itemId;
113     }
114 
115     public void setItemId(long itemId) {
116         _itemId = itemId;
117     }
118 
119     public long getCompanyId() {
120         return _companyId;
121     }
122 
123     public void setCompanyId(long companyId) {
124         _companyId = companyId;
125     }
126 
127     public long getUserId() {
128         return _userId;
129     }
130 
131     public void setUserId(long userId) {
132         _userId = userId;
133     }
134 
135     public String getUserName() {
136         return _userName;
137     }
138 
139     public void setUserName(String userName) {
140         _userName = userName;
141     }
142 
143     public Date getCreateDate() {
144         return _createDate;
145     }
146 
147     public void setCreateDate(Date createDate) {
148         _createDate = createDate;
149     }
150 
151     public Date getModifiedDate() {
152         return _modifiedDate;
153     }
154 
155     public void setModifiedDate(Date modifiedDate) {
156         _modifiedDate = modifiedDate;
157     }
158 
159     public long getCategoryId() {
160         return _categoryId;
161     }
162 
163     public void setCategoryId(long categoryId) {
164         _categoryId = categoryId;
165     }
166 
167     public String getSku() {
168         return _sku;
169     }
170 
171     public void setSku(String sku) {
172         _sku = sku;
173     }
174 
175     public String getName() {
176         return _name;
177     }
178 
179     public void setName(String name) {
180         _name = name;
181     }
182 
183     public String getDescription() {
184         return _description;
185     }
186 
187     public void setDescription(String description) {
188         _description = description;
189     }
190 
191     public String getProperties() {
192         return _properties;
193     }
194 
195     public void setProperties(String properties) {
196         _properties = properties;
197     }
198 
199     public boolean getFields() {
200         return _fields;
201     }
202 
203     public boolean isFields() {
204         return _fields;
205     }
206 
207     public void setFields(boolean fields) {
208         _fields = fields;
209     }
210 
211     public String getFieldsQuantities() {
212         return _fieldsQuantities;
213     }
214 
215     public void setFieldsQuantities(String fieldsQuantities) {
216         _fieldsQuantities = fieldsQuantities;
217     }
218 
219     public int getMinQuantity() {
220         return _minQuantity;
221     }
222 
223     public void setMinQuantity(int minQuantity) {
224         _minQuantity = minQuantity;
225     }
226 
227     public int getMaxQuantity() {
228         return _maxQuantity;
229     }
230 
231     public void setMaxQuantity(int maxQuantity) {
232         _maxQuantity = maxQuantity;
233     }
234 
235     public double getPrice() {
236         return _price;
237     }
238 
239     public void setPrice(double price) {
240         _price = price;
241     }
242 
243     public double getDiscount() {
244         return _discount;
245     }
246 
247     public void setDiscount(double discount) {
248         _discount = discount;
249     }
250 
251     public boolean getTaxable() {
252         return _taxable;
253     }
254 
255     public boolean isTaxable() {
256         return _taxable;
257     }
258 
259     public void setTaxable(boolean taxable) {
260         _taxable = taxable;
261     }
262 
263     public double getShipping() {
264         return _shipping;
265     }
266 
267     public void setShipping(double shipping) {
268         _shipping = shipping;
269     }
270 
271     public boolean getUseShippingFormula() {
272         return _useShippingFormula;
273     }
274 
275     public boolean isUseShippingFormula() {
276         return _useShippingFormula;
277     }
278 
279     public void setUseShippingFormula(boolean useShippingFormula) {
280         _useShippingFormula = useShippingFormula;
281     }
282 
283     public boolean getRequiresShipping() {
284         return _requiresShipping;
285     }
286 
287     public boolean isRequiresShipping() {
288         return _requiresShipping;
289     }
290 
291     public void setRequiresShipping(boolean requiresShipping) {
292         _requiresShipping = requiresShipping;
293     }
294 
295     public int getStockQuantity() {
296         return _stockQuantity;
297     }
298 
299     public void setStockQuantity(int stockQuantity) {
300         _stockQuantity = stockQuantity;
301     }
302 
303     public boolean getFeatured() {
304         return _featured;
305     }
306 
307     public boolean isFeatured() {
308         return _featured;
309     }
310 
311     public void setFeatured(boolean featured) {
312         _featured = featured;
313     }
314 
315     public boolean getSale() {
316         return _sale;
317     }
318 
319     public boolean isSale() {
320         return _sale;
321     }
322 
323     public void setSale(boolean sale) {
324         _sale = sale;
325     }
326 
327     public boolean getSmallImage() {
328         return _smallImage;
329     }
330 
331     public boolean isSmallImage() {
332         return _smallImage;
333     }
334 
335     public void setSmallImage(boolean smallImage) {
336         _smallImage = smallImage;
337     }
338 
339     public long getSmallImageId() {
340         return _smallImageId;
341     }
342 
343     public void setSmallImageId(long smallImageId) {
344         _smallImageId = smallImageId;
345     }
346 
347     public String getSmallImageURL() {
348         return _smallImageURL;
349     }
350 
351     public void setSmallImageURL(String smallImageURL) {
352         _smallImageURL = smallImageURL;
353     }
354 
355     public boolean getMediumImage() {
356         return _mediumImage;
357     }
358 
359     public boolean isMediumImage() {
360         return _mediumImage;
361     }
362 
363     public void setMediumImage(boolean mediumImage) {
364         _mediumImage = mediumImage;
365     }
366 
367     public long getMediumImageId() {
368         return _mediumImageId;
369     }
370 
371     public void setMediumImageId(long mediumImageId) {
372         _mediumImageId = mediumImageId;
373     }
374 
375     public String getMediumImageURL() {
376         return _mediumImageURL;
377     }
378 
379     public void setMediumImageURL(String mediumImageURL) {
380         _mediumImageURL = mediumImageURL;
381     }
382 
383     public boolean getLargeImage() {
384         return _largeImage;
385     }
386 
387     public boolean isLargeImage() {
388         return _largeImage;
389     }
390 
391     public void setLargeImage(boolean largeImage) {
392         _largeImage = largeImage;
393     }
394 
395     public long getLargeImageId() {
396         return _largeImageId;
397     }
398 
399     public void setLargeImageId(long largeImageId) {
400         _largeImageId = largeImageId;
401     }
402 
403     public String getLargeImageURL() {
404         return _largeImageURL;
405     }
406 
407     public void setLargeImageURL(String largeImageURL) {
408         _largeImageURL = largeImageURL;
409     }
410 
411     private long _itemId;
412     private long _companyId;
413     private long _userId;
414     private String _userName;
415     private Date _createDate;
416     private Date _modifiedDate;
417     private long _categoryId;
418     private String _sku;
419     private String _name;
420     private String _description;
421     private String _properties;
422     private boolean _fields;
423     private String _fieldsQuantities;
424     private int _minQuantity;
425     private int _maxQuantity;
426     private double _price;
427     private double _discount;
428     private boolean _taxable;
429     private double _shipping;
430     private boolean _useShippingFormula;
431     private boolean _requiresShipping;
432     private int _stockQuantity;
433     private boolean _featured;
434     private boolean _sale;
435     private boolean _smallImage;
436     private long _smallImageId;
437     private String _smallImageURL;
438     private boolean _mediumImage;
439     private long _mediumImageId;
440     private String _mediumImageURL;
441     private boolean _largeImage;
442     private long _largeImageId;
443     private String _largeImageURL;
444 }