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