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