001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.shopping.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * <p>
025     * This class is used by
026     * {@link com.liferay.portlet.shopping.service.http.ShoppingItemServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portlet.shopping.service.http.ShoppingItemServiceSoap
031     * @generated
032     */
033    public class ShoppingItemSoap implements Serializable {
034            public static ShoppingItemSoap toSoapModel(ShoppingItem model) {
035                    ShoppingItemSoap soapModel = new ShoppingItemSoap();
036    
037                    soapModel.setItemId(model.getItemId());
038                    soapModel.setGroupId(model.getGroupId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setUserId(model.getUserId());
041                    soapModel.setUserName(model.getUserName());
042                    soapModel.setCreateDate(model.getCreateDate());
043                    soapModel.setModifiedDate(model.getModifiedDate());
044                    soapModel.setCategoryId(model.getCategoryId());
045                    soapModel.setSku(model.getSku());
046                    soapModel.setName(model.getName());
047                    soapModel.setDescription(model.getDescription());
048                    soapModel.setProperties(model.getProperties());
049                    soapModel.setFields(model.getFields());
050                    soapModel.setFieldsQuantities(model.getFieldsQuantities());
051                    soapModel.setMinQuantity(model.getMinQuantity());
052                    soapModel.setMaxQuantity(model.getMaxQuantity());
053                    soapModel.setPrice(model.getPrice());
054                    soapModel.setDiscount(model.getDiscount());
055                    soapModel.setTaxable(model.getTaxable());
056                    soapModel.setShipping(model.getShipping());
057                    soapModel.setUseShippingFormula(model.getUseShippingFormula());
058                    soapModel.setRequiresShipping(model.getRequiresShipping());
059                    soapModel.setStockQuantity(model.getStockQuantity());
060                    soapModel.setFeatured(model.getFeatured());
061                    soapModel.setSale(model.getSale());
062                    soapModel.setSmallImage(model.getSmallImage());
063                    soapModel.setSmallImageId(model.getSmallImageId());
064                    soapModel.setSmallImageURL(model.getSmallImageURL());
065                    soapModel.setMediumImage(model.getMediumImage());
066                    soapModel.setMediumImageId(model.getMediumImageId());
067                    soapModel.setMediumImageURL(model.getMediumImageURL());
068                    soapModel.setLargeImage(model.getLargeImage());
069                    soapModel.setLargeImageId(model.getLargeImageId());
070                    soapModel.setLargeImageURL(model.getLargeImageURL());
071    
072                    return soapModel;
073            }
074    
075            public static ShoppingItemSoap[] toSoapModels(ShoppingItem[] models) {
076                    ShoppingItemSoap[] soapModels = new ShoppingItemSoap[models.length];
077    
078                    for (int i = 0; i < models.length; i++) {
079                            soapModels[i] = toSoapModel(models[i]);
080                    }
081    
082                    return soapModels;
083            }
084    
085            public static ShoppingItemSoap[][] toSoapModels(ShoppingItem[][] models) {
086                    ShoppingItemSoap[][] soapModels = null;
087    
088                    if (models.length > 0) {
089                            soapModels = new ShoppingItemSoap[models.length][models[0].length];
090                    }
091                    else {
092                            soapModels = new ShoppingItemSoap[0][0];
093                    }
094    
095                    for (int i = 0; i < models.length; i++) {
096                            soapModels[i] = toSoapModels(models[i]);
097                    }
098    
099                    return soapModels;
100            }
101    
102            public static ShoppingItemSoap[] toSoapModels(List<ShoppingItem> models) {
103                    List<ShoppingItemSoap> soapModels = new ArrayList<ShoppingItemSoap>(models.size());
104    
105                    for (ShoppingItem model : models) {
106                            soapModels.add(toSoapModel(model));
107                    }
108    
109                    return soapModels.toArray(new ShoppingItemSoap[soapModels.size()]);
110            }
111    
112            public ShoppingItemSoap() {
113            }
114    
115            public long getPrimaryKey() {
116                    return _itemId;
117            }
118    
119            public void setPrimaryKey(long pk) {
120                    setItemId(pk);
121            }
122    
123            public long getItemId() {
124                    return _itemId;
125            }
126    
127            public void setItemId(long itemId) {
128                    _itemId = itemId;
129            }
130    
131            public long getGroupId() {
132                    return _groupId;
133            }
134    
135            public void setGroupId(long groupId) {
136                    _groupId = groupId;
137            }
138    
139            public long getCompanyId() {
140                    return _companyId;
141            }
142    
143            public void setCompanyId(long companyId) {
144                    _companyId = companyId;
145            }
146    
147            public long getUserId() {
148                    return _userId;
149            }
150    
151            public void setUserId(long userId) {
152                    _userId = userId;
153            }
154    
155            public String getUserName() {
156                    return _userName;
157            }
158    
159            public void setUserName(String userName) {
160                    _userName = userName;
161            }
162    
163            public Date getCreateDate() {
164                    return _createDate;
165            }
166    
167            public void setCreateDate(Date createDate) {
168                    _createDate = createDate;
169            }
170    
171            public Date getModifiedDate() {
172                    return _modifiedDate;
173            }
174    
175            public void setModifiedDate(Date modifiedDate) {
176                    _modifiedDate = modifiedDate;
177            }
178    
179            public long getCategoryId() {
180                    return _categoryId;
181            }
182    
183            public void setCategoryId(long categoryId) {
184                    _categoryId = categoryId;
185            }
186    
187            public String getSku() {
188                    return _sku;
189            }
190    
191            public void setSku(String sku) {
192                    _sku = sku;
193            }
194    
195            public String getName() {
196                    return _name;
197            }
198    
199            public void setName(String name) {
200                    _name = name;
201            }
202    
203            public String getDescription() {
204                    return _description;
205            }
206    
207            public void setDescription(String description) {
208                    _description = description;
209            }
210    
211            public String getProperties() {
212                    return _properties;
213            }
214    
215            public void setProperties(String properties) {
216                    _properties = properties;
217            }
218    
219            public boolean getFields() {
220                    return _fields;
221            }
222    
223            public boolean isFields() {
224                    return _fields;
225            }
226    
227            public void setFields(boolean fields) {
228                    _fields = fields;
229            }
230    
231            public String getFieldsQuantities() {
232                    return _fieldsQuantities;
233            }
234    
235            public void setFieldsQuantities(String fieldsQuantities) {
236                    _fieldsQuantities = fieldsQuantities;
237            }
238    
239            public int getMinQuantity() {
240                    return _minQuantity;
241            }
242    
243            public void setMinQuantity(int minQuantity) {
244                    _minQuantity = minQuantity;
245            }
246    
247            public int getMaxQuantity() {
248                    return _maxQuantity;
249            }
250    
251            public void setMaxQuantity(int maxQuantity) {
252                    _maxQuantity = maxQuantity;
253            }
254    
255            public double getPrice() {
256                    return _price;
257            }
258    
259            public void setPrice(double price) {
260                    _price = price;
261            }
262    
263            public double getDiscount() {
264                    return _discount;
265            }
266    
267            public void setDiscount(double discount) {
268                    _discount = discount;
269            }
270    
271            public boolean getTaxable() {
272                    return _taxable;
273            }
274    
275            public boolean isTaxable() {
276                    return _taxable;
277            }
278    
279            public void setTaxable(boolean taxable) {
280                    _taxable = taxable;
281            }
282    
283            public double getShipping() {
284                    return _shipping;
285            }
286    
287            public void setShipping(double shipping) {
288                    _shipping = shipping;
289            }
290    
291            public boolean getUseShippingFormula() {
292                    return _useShippingFormula;
293            }
294    
295            public boolean isUseShippingFormula() {
296                    return _useShippingFormula;
297            }
298    
299            public void setUseShippingFormula(boolean useShippingFormula) {
300                    _useShippingFormula = useShippingFormula;
301            }
302    
303            public boolean getRequiresShipping() {
304                    return _requiresShipping;
305            }
306    
307            public boolean isRequiresShipping() {
308                    return _requiresShipping;
309            }
310    
311            public void setRequiresShipping(boolean requiresShipping) {
312                    _requiresShipping = requiresShipping;
313            }
314    
315            public int getStockQuantity() {
316                    return _stockQuantity;
317            }
318    
319            public void setStockQuantity(int stockQuantity) {
320                    _stockQuantity = stockQuantity;
321            }
322    
323            public boolean getFeatured() {
324                    return _featured;
325            }
326    
327            public boolean isFeatured() {
328                    return _featured;
329            }
330    
331            public void setFeatured(boolean featured) {
332                    _featured = featured;
333            }
334    
335            public boolean getSale() {
336                    return _sale;
337            }
338    
339            public boolean isSale() {
340                    return _sale;
341            }
342    
343            public void setSale(boolean sale) {
344                    _sale = sale;
345            }
346    
347            public boolean getSmallImage() {
348                    return _smallImage;
349            }
350    
351            public boolean isSmallImage() {
352                    return _smallImage;
353            }
354    
355            public void setSmallImage(boolean smallImage) {
356                    _smallImage = smallImage;
357            }
358    
359            public long getSmallImageId() {
360                    return _smallImageId;
361            }
362    
363            public void setSmallImageId(long smallImageId) {
364                    _smallImageId = smallImageId;
365            }
366    
367            public String getSmallImageURL() {
368                    return _smallImageURL;
369            }
370    
371            public void setSmallImageURL(String smallImageURL) {
372                    _smallImageURL = smallImageURL;
373            }
374    
375            public boolean getMediumImage() {
376                    return _mediumImage;
377            }
378    
379            public boolean isMediumImage() {
380                    return _mediumImage;
381            }
382    
383            public void setMediumImage(boolean mediumImage) {
384                    _mediumImage = mediumImage;
385            }
386    
387            public long getMediumImageId() {
388                    return _mediumImageId;
389            }
390    
391            public void setMediumImageId(long mediumImageId) {
392                    _mediumImageId = mediumImageId;
393            }
394    
395            public String getMediumImageURL() {
396                    return _mediumImageURL;
397            }
398    
399            public void setMediumImageURL(String mediumImageURL) {
400                    _mediumImageURL = mediumImageURL;
401            }
402    
403            public boolean getLargeImage() {
404                    return _largeImage;
405            }
406    
407            public boolean isLargeImage() {
408                    return _largeImage;
409            }
410    
411            public void setLargeImage(boolean largeImage) {
412                    _largeImage = largeImage;
413            }
414    
415            public long getLargeImageId() {
416                    return _largeImageId;
417            }
418    
419            public void setLargeImageId(long largeImageId) {
420                    _largeImageId = largeImageId;
421            }
422    
423            public String getLargeImageURL() {
424                    return _largeImageURL;
425            }
426    
427            public void setLargeImageURL(String largeImageURL) {
428                    _largeImageURL = largeImageURL;
429            }
430    
431            private long _itemId;
432            private long _groupId;
433            private long _companyId;
434            private long _userId;
435            private String _userName;
436            private Date _createDate;
437            private Date _modifiedDate;
438            private long _categoryId;
439            private String _sku;
440            private String _name;
441            private String _description;
442            private String _properties;
443            private boolean _fields;
444            private String _fieldsQuantities;
445            private int _minQuantity;
446            private int _maxQuantity;
447            private double _price;
448            private double _discount;
449            private boolean _taxable;
450            private double _shipping;
451            private boolean _useShippingFormula;
452            private boolean _requiresShipping;
453            private int _stockQuantity;
454            private boolean _featured;
455            private boolean _sale;
456            private boolean _smallImage;
457            private long _smallImageId;
458            private String _smallImageURL;
459            private boolean _mediumImage;
460            private long _mediumImageId;
461            private String _mediumImageURL;
462            private boolean _largeImage;
463            private long _largeImageId;
464            private String _largeImageURL;
465    }