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