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