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