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 com.liferay.portal.kernel.util.Validator;
018    import com.liferay.portal.model.ModelWrapper;
019    
020    import java.util.Date;
021    import java.util.HashMap;
022    import java.util.Map;
023    
024    /**
025     * <p>
026     * This class is a wrapper for {@link ShoppingItem}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       ShoppingItem
031     * @generated
032     */
033    public class ShoppingItemWrapper implements ShoppingItem,
034            ModelWrapper<ShoppingItem> {
035            public ShoppingItemWrapper(ShoppingItem shoppingItem) {
036                    _shoppingItem = shoppingItem;
037            }
038    
039            public Class<?> getModelClass() {
040                    return ShoppingItem.class;
041            }
042    
043            public String getModelClassName() {
044                    return ShoppingItem.class.getName();
045            }
046    
047            public Map<String, Object> getModelAttributes() {
048                    Map<String, Object> attributes = new HashMap<String, Object>();
049    
050                    attributes.put("itemId", getItemId());
051                    attributes.put("groupId", getGroupId());
052                    attributes.put("companyId", getCompanyId());
053                    attributes.put("userId", getUserId());
054                    attributes.put("userName", getUserName());
055                    attributes.put("createDate", getCreateDate());
056                    attributes.put("modifiedDate", getModifiedDate());
057                    attributes.put("categoryId", getCategoryId());
058                    attributes.put("sku", getSku());
059                    attributes.put("name", getName());
060                    attributes.put("description", getDescription());
061                    attributes.put("properties", getProperties());
062                    attributes.put("fields", getFields());
063                    attributes.put("fieldsQuantities", getFieldsQuantities());
064                    attributes.put("minQuantity", getMinQuantity());
065                    attributes.put("maxQuantity", getMaxQuantity());
066                    attributes.put("price", getPrice());
067                    attributes.put("discount", getDiscount());
068                    attributes.put("taxable", getTaxable());
069                    attributes.put("shipping", getShipping());
070                    attributes.put("useShippingFormula", getUseShippingFormula());
071                    attributes.put("requiresShipping", getRequiresShipping());
072                    attributes.put("stockQuantity", getStockQuantity());
073                    attributes.put("featured", getFeatured());
074                    attributes.put("sale", getSale());
075                    attributes.put("smallImage", getSmallImage());
076                    attributes.put("smallImageId", getSmallImageId());
077                    attributes.put("smallImageURL", getSmallImageURL());
078                    attributes.put("mediumImage", getMediumImage());
079                    attributes.put("mediumImageId", getMediumImageId());
080                    attributes.put("mediumImageURL", getMediumImageURL());
081                    attributes.put("largeImage", getLargeImage());
082                    attributes.put("largeImageId", getLargeImageId());
083                    attributes.put("largeImageURL", getLargeImageURL());
084    
085                    return attributes;
086            }
087    
088            public void setModelAttributes(Map<String, Object> attributes) {
089                    Long itemId = (Long)attributes.get("itemId");
090    
091                    if (itemId != null) {
092                            setItemId(itemId);
093                    }
094    
095                    Long groupId = (Long)attributes.get("groupId");
096    
097                    if (groupId != null) {
098                            setGroupId(groupId);
099                    }
100    
101                    Long companyId = (Long)attributes.get("companyId");
102    
103                    if (companyId != null) {
104                            setCompanyId(companyId);
105                    }
106    
107                    Long userId = (Long)attributes.get("userId");
108    
109                    if (userId != null) {
110                            setUserId(userId);
111                    }
112    
113                    String userName = (String)attributes.get("userName");
114    
115                    if (userName != null) {
116                            setUserName(userName);
117                    }
118    
119                    Date createDate = (Date)attributes.get("createDate");
120    
121                    if (createDate != null) {
122                            setCreateDate(createDate);
123                    }
124    
125                    Date modifiedDate = (Date)attributes.get("modifiedDate");
126    
127                    if (modifiedDate != null) {
128                            setModifiedDate(modifiedDate);
129                    }
130    
131                    Long categoryId = (Long)attributes.get("categoryId");
132    
133                    if (categoryId != null) {
134                            setCategoryId(categoryId);
135                    }
136    
137                    String sku = (String)attributes.get("sku");
138    
139                    if (sku != null) {
140                            setSku(sku);
141                    }
142    
143                    String name = (String)attributes.get("name");
144    
145                    if (name != null) {
146                            setName(name);
147                    }
148    
149                    String description = (String)attributes.get("description");
150    
151                    if (description != null) {
152                            setDescription(description);
153                    }
154    
155                    String properties = (String)attributes.get("properties");
156    
157                    if (properties != null) {
158                            setProperties(properties);
159                    }
160    
161                    Boolean fields = (Boolean)attributes.get("fields");
162    
163                    if (fields != null) {
164                            setFields(fields);
165                    }
166    
167                    String fieldsQuantities = (String)attributes.get("fieldsQuantities");
168    
169                    if (fieldsQuantities != null) {
170                            setFieldsQuantities(fieldsQuantities);
171                    }
172    
173                    Integer minQuantity = (Integer)attributes.get("minQuantity");
174    
175                    if (minQuantity != null) {
176                            setMinQuantity(minQuantity);
177                    }
178    
179                    Integer maxQuantity = (Integer)attributes.get("maxQuantity");
180    
181                    if (maxQuantity != null) {
182                            setMaxQuantity(maxQuantity);
183                    }
184    
185                    Double price = (Double)attributes.get("price");
186    
187                    if (price != null) {
188                            setPrice(price);
189                    }
190    
191                    Double discount = (Double)attributes.get("discount");
192    
193                    if (discount != null) {
194                            setDiscount(discount);
195                    }
196    
197                    Boolean taxable = (Boolean)attributes.get("taxable");
198    
199                    if (taxable != null) {
200                            setTaxable(taxable);
201                    }
202    
203                    Double shipping = (Double)attributes.get("shipping");
204    
205                    if (shipping != null) {
206                            setShipping(shipping);
207                    }
208    
209                    Boolean useShippingFormula = (Boolean)attributes.get(
210                                    "useShippingFormula");
211    
212                    if (useShippingFormula != null) {
213                            setUseShippingFormula(useShippingFormula);
214                    }
215    
216                    Boolean requiresShipping = (Boolean)attributes.get("requiresShipping");
217    
218                    if (requiresShipping != null) {
219                            setRequiresShipping(requiresShipping);
220                    }
221    
222                    Integer stockQuantity = (Integer)attributes.get("stockQuantity");
223    
224                    if (stockQuantity != null) {
225                            setStockQuantity(stockQuantity);
226                    }
227    
228                    Boolean featured = (Boolean)attributes.get("featured");
229    
230                    if (featured != null) {
231                            setFeatured(featured);
232                    }
233    
234                    Boolean sale = (Boolean)attributes.get("sale");
235    
236                    if (sale != null) {
237                            setSale(sale);
238                    }
239    
240                    Boolean smallImage = (Boolean)attributes.get("smallImage");
241    
242                    if (smallImage != null) {
243                            setSmallImage(smallImage);
244                    }
245    
246                    Long smallImageId = (Long)attributes.get("smallImageId");
247    
248                    if (smallImageId != null) {
249                            setSmallImageId(smallImageId);
250                    }
251    
252                    String smallImageURL = (String)attributes.get("smallImageURL");
253    
254                    if (smallImageURL != null) {
255                            setSmallImageURL(smallImageURL);
256                    }
257    
258                    Boolean mediumImage = (Boolean)attributes.get("mediumImage");
259    
260                    if (mediumImage != null) {
261                            setMediumImage(mediumImage);
262                    }
263    
264                    Long mediumImageId = (Long)attributes.get("mediumImageId");
265    
266                    if (mediumImageId != null) {
267                            setMediumImageId(mediumImageId);
268                    }
269    
270                    String mediumImageURL = (String)attributes.get("mediumImageURL");
271    
272                    if (mediumImageURL != null) {
273                            setMediumImageURL(mediumImageURL);
274                    }
275    
276                    Boolean largeImage = (Boolean)attributes.get("largeImage");
277    
278                    if (largeImage != null) {
279                            setLargeImage(largeImage);
280                    }
281    
282                    Long largeImageId = (Long)attributes.get("largeImageId");
283    
284                    if (largeImageId != null) {
285                            setLargeImageId(largeImageId);
286                    }
287    
288                    String largeImageURL = (String)attributes.get("largeImageURL");
289    
290                    if (largeImageURL != null) {
291                            setLargeImageURL(largeImageURL);
292                    }
293            }
294    
295            /**
296            * Returns the primary key of this shopping item.
297            *
298            * @return the primary key of this shopping item
299            */
300            public long getPrimaryKey() {
301                    return _shoppingItem.getPrimaryKey();
302            }
303    
304            /**
305            * Sets the primary key of this shopping item.
306            *
307            * @param primaryKey the primary key of this shopping item
308            */
309            public void setPrimaryKey(long primaryKey) {
310                    _shoppingItem.setPrimaryKey(primaryKey);
311            }
312    
313            /**
314            * Returns the item ID of this shopping item.
315            *
316            * @return the item ID of this shopping item
317            */
318            public long getItemId() {
319                    return _shoppingItem.getItemId();
320            }
321    
322            /**
323            * Sets the item ID of this shopping item.
324            *
325            * @param itemId the item ID of this shopping item
326            */
327            public void setItemId(long itemId) {
328                    _shoppingItem.setItemId(itemId);
329            }
330    
331            /**
332            * Returns the group ID of this shopping item.
333            *
334            * @return the group ID of this shopping item
335            */
336            public long getGroupId() {
337                    return _shoppingItem.getGroupId();
338            }
339    
340            /**
341            * Sets the group ID of this shopping item.
342            *
343            * @param groupId the group ID of this shopping item
344            */
345            public void setGroupId(long groupId) {
346                    _shoppingItem.setGroupId(groupId);
347            }
348    
349            /**
350            * Returns the company ID of this shopping item.
351            *
352            * @return the company ID of this shopping item
353            */
354            public long getCompanyId() {
355                    return _shoppingItem.getCompanyId();
356            }
357    
358            /**
359            * Sets the company ID of this shopping item.
360            *
361            * @param companyId the company ID of this shopping item
362            */
363            public void setCompanyId(long companyId) {
364                    _shoppingItem.setCompanyId(companyId);
365            }
366    
367            /**
368            * Returns the user ID of this shopping item.
369            *
370            * @return the user ID of this shopping item
371            */
372            public long getUserId() {
373                    return _shoppingItem.getUserId();
374            }
375    
376            /**
377            * Sets the user ID of this shopping item.
378            *
379            * @param userId the user ID of this shopping item
380            */
381            public void setUserId(long userId) {
382                    _shoppingItem.setUserId(userId);
383            }
384    
385            /**
386            * Returns the user uuid of this shopping item.
387            *
388            * @return the user uuid of this shopping item
389            * @throws SystemException if a system exception occurred
390            */
391            public java.lang.String getUserUuid()
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return _shoppingItem.getUserUuid();
394            }
395    
396            /**
397            * Sets the user uuid of this shopping item.
398            *
399            * @param userUuid the user uuid of this shopping item
400            */
401            public void setUserUuid(java.lang.String userUuid) {
402                    _shoppingItem.setUserUuid(userUuid);
403            }
404    
405            /**
406            * Returns the user name of this shopping item.
407            *
408            * @return the user name of this shopping item
409            */
410            public java.lang.String getUserName() {
411                    return _shoppingItem.getUserName();
412            }
413    
414            /**
415            * Sets the user name of this shopping item.
416            *
417            * @param userName the user name of this shopping item
418            */
419            public void setUserName(java.lang.String userName) {
420                    _shoppingItem.setUserName(userName);
421            }
422    
423            /**
424            * Returns the create date of this shopping item.
425            *
426            * @return the create date of this shopping item
427            */
428            public java.util.Date getCreateDate() {
429                    return _shoppingItem.getCreateDate();
430            }
431    
432            /**
433            * Sets the create date of this shopping item.
434            *
435            * @param createDate the create date of this shopping item
436            */
437            public void setCreateDate(java.util.Date createDate) {
438                    _shoppingItem.setCreateDate(createDate);
439            }
440    
441            /**
442            * Returns the modified date of this shopping item.
443            *
444            * @return the modified date of this shopping item
445            */
446            public java.util.Date getModifiedDate() {
447                    return _shoppingItem.getModifiedDate();
448            }
449    
450            /**
451            * Sets the modified date of this shopping item.
452            *
453            * @param modifiedDate the modified date of this shopping item
454            */
455            public void setModifiedDate(java.util.Date modifiedDate) {
456                    _shoppingItem.setModifiedDate(modifiedDate);
457            }
458    
459            /**
460            * Returns the category ID of this shopping item.
461            *
462            * @return the category ID of this shopping item
463            */
464            public long getCategoryId() {
465                    return _shoppingItem.getCategoryId();
466            }
467    
468            /**
469            * Sets the category ID of this shopping item.
470            *
471            * @param categoryId the category ID of this shopping item
472            */
473            public void setCategoryId(long categoryId) {
474                    _shoppingItem.setCategoryId(categoryId);
475            }
476    
477            /**
478            * Returns the sku of this shopping item.
479            *
480            * @return the sku of this shopping item
481            */
482            public java.lang.String getSku() {
483                    return _shoppingItem.getSku();
484            }
485    
486            /**
487            * Sets the sku of this shopping item.
488            *
489            * @param sku the sku of this shopping item
490            */
491            public void setSku(java.lang.String sku) {
492                    _shoppingItem.setSku(sku);
493            }
494    
495            /**
496            * Returns the name of this shopping item.
497            *
498            * @return the name of this shopping item
499            */
500            public java.lang.String getName() {
501                    return _shoppingItem.getName();
502            }
503    
504            /**
505            * Sets the name of this shopping item.
506            *
507            * @param name the name of this shopping item
508            */
509            public void setName(java.lang.String name) {
510                    _shoppingItem.setName(name);
511            }
512    
513            /**
514            * Returns the description of this shopping item.
515            *
516            * @return the description of this shopping item
517            */
518            public java.lang.String getDescription() {
519                    return _shoppingItem.getDescription();
520            }
521    
522            /**
523            * Sets the description of this shopping item.
524            *
525            * @param description the description of this shopping item
526            */
527            public void setDescription(java.lang.String description) {
528                    _shoppingItem.setDescription(description);
529            }
530    
531            /**
532            * Returns the properties of this shopping item.
533            *
534            * @return the properties of this shopping item
535            */
536            public java.lang.String getProperties() {
537                    return _shoppingItem.getProperties();
538            }
539    
540            /**
541            * Sets the properties of this shopping item.
542            *
543            * @param properties the properties of this shopping item
544            */
545            public void setProperties(java.lang.String properties) {
546                    _shoppingItem.setProperties(properties);
547            }
548    
549            /**
550            * Returns the fields of this shopping item.
551            *
552            * @return the fields of this shopping item
553            */
554            public boolean getFields() {
555                    return _shoppingItem.getFields();
556            }
557    
558            /**
559            * Returns <code>true</code> if this shopping item is fields.
560            *
561            * @return <code>true</code> if this shopping item is fields; <code>false</code> otherwise
562            */
563            public boolean isFields() {
564                    return _shoppingItem.isFields();
565            }
566    
567            /**
568            * Sets whether this shopping item is fields.
569            *
570            * @param fields the fields of this shopping item
571            */
572            public void setFields(boolean fields) {
573                    _shoppingItem.setFields(fields);
574            }
575    
576            /**
577            * Returns the fields quantities of this shopping item.
578            *
579            * @return the fields quantities of this shopping item
580            */
581            public java.lang.String getFieldsQuantities() {
582                    return _shoppingItem.getFieldsQuantities();
583            }
584    
585            /**
586            * Sets the fields quantities of this shopping item.
587            *
588            * @param fieldsQuantities the fields quantities of this shopping item
589            */
590            public void setFieldsQuantities(java.lang.String fieldsQuantities) {
591                    _shoppingItem.setFieldsQuantities(fieldsQuantities);
592            }
593    
594            /**
595            * Returns the min quantity of this shopping item.
596            *
597            * @return the min quantity of this shopping item
598            */
599            public int getMinQuantity() {
600                    return _shoppingItem.getMinQuantity();
601            }
602    
603            /**
604            * Sets the min quantity of this shopping item.
605            *
606            * @param minQuantity the min quantity of this shopping item
607            */
608            public void setMinQuantity(int minQuantity) {
609                    _shoppingItem.setMinQuantity(minQuantity);
610            }
611    
612            /**
613            * Returns the max quantity of this shopping item.
614            *
615            * @return the max quantity of this shopping item
616            */
617            public int getMaxQuantity() {
618                    return _shoppingItem.getMaxQuantity();
619            }
620    
621            /**
622            * Sets the max quantity of this shopping item.
623            *
624            * @param maxQuantity the max quantity of this shopping item
625            */
626            public void setMaxQuantity(int maxQuantity) {
627                    _shoppingItem.setMaxQuantity(maxQuantity);
628            }
629    
630            /**
631            * Returns the price of this shopping item.
632            *
633            * @return the price of this shopping item
634            */
635            public double getPrice() {
636                    return _shoppingItem.getPrice();
637            }
638    
639            /**
640            * Sets the price of this shopping item.
641            *
642            * @param price the price of this shopping item
643            */
644            public void setPrice(double price) {
645                    _shoppingItem.setPrice(price);
646            }
647    
648            /**
649            * Returns the discount of this shopping item.
650            *
651            * @return the discount of this shopping item
652            */
653            public double getDiscount() {
654                    return _shoppingItem.getDiscount();
655            }
656    
657            /**
658            * Sets the discount of this shopping item.
659            *
660            * @param discount the discount of this shopping item
661            */
662            public void setDiscount(double discount) {
663                    _shoppingItem.setDiscount(discount);
664            }
665    
666            /**
667            * Returns the taxable of this shopping item.
668            *
669            * @return the taxable of this shopping item
670            */
671            public boolean getTaxable() {
672                    return _shoppingItem.getTaxable();
673            }
674    
675            /**
676            * Returns <code>true</code> if this shopping item is taxable.
677            *
678            * @return <code>true</code> if this shopping item is taxable; <code>false</code> otherwise
679            */
680            public boolean isTaxable() {
681                    return _shoppingItem.isTaxable();
682            }
683    
684            /**
685            * Sets whether this shopping item is taxable.
686            *
687            * @param taxable the taxable of this shopping item
688            */
689            public void setTaxable(boolean taxable) {
690                    _shoppingItem.setTaxable(taxable);
691            }
692    
693            /**
694            * Returns the shipping of this shopping item.
695            *
696            * @return the shipping of this shopping item
697            */
698            public double getShipping() {
699                    return _shoppingItem.getShipping();
700            }
701    
702            /**
703            * Sets the shipping of this shopping item.
704            *
705            * @param shipping the shipping of this shopping item
706            */
707            public void setShipping(double shipping) {
708                    _shoppingItem.setShipping(shipping);
709            }
710    
711            /**
712            * Returns the use shipping formula of this shopping item.
713            *
714            * @return the use shipping formula of this shopping item
715            */
716            public boolean getUseShippingFormula() {
717                    return _shoppingItem.getUseShippingFormula();
718            }
719    
720            /**
721            * Returns <code>true</code> if this shopping item is use shipping formula.
722            *
723            * @return <code>true</code> if this shopping item is use shipping formula; <code>false</code> otherwise
724            */
725            public boolean isUseShippingFormula() {
726                    return _shoppingItem.isUseShippingFormula();
727            }
728    
729            /**
730            * Sets whether this shopping item is use shipping formula.
731            *
732            * @param useShippingFormula the use shipping formula of this shopping item
733            */
734            public void setUseShippingFormula(boolean useShippingFormula) {
735                    _shoppingItem.setUseShippingFormula(useShippingFormula);
736            }
737    
738            /**
739            * Returns the requires shipping of this shopping item.
740            *
741            * @return the requires shipping of this shopping item
742            */
743            public boolean getRequiresShipping() {
744                    return _shoppingItem.getRequiresShipping();
745            }
746    
747            /**
748            * Returns <code>true</code> if this shopping item is requires shipping.
749            *
750            * @return <code>true</code> if this shopping item is requires shipping; <code>false</code> otherwise
751            */
752            public boolean isRequiresShipping() {
753                    return _shoppingItem.isRequiresShipping();
754            }
755    
756            /**
757            * Sets whether this shopping item is requires shipping.
758            *
759            * @param requiresShipping the requires shipping of this shopping item
760            */
761            public void setRequiresShipping(boolean requiresShipping) {
762                    _shoppingItem.setRequiresShipping(requiresShipping);
763            }
764    
765            /**
766            * Returns the stock quantity of this shopping item.
767            *
768            * @return the stock quantity of this shopping item
769            */
770            public int getStockQuantity() {
771                    return _shoppingItem.getStockQuantity();
772            }
773    
774            /**
775            * Sets the stock quantity of this shopping item.
776            *
777            * @param stockQuantity the stock quantity of this shopping item
778            */
779            public void setStockQuantity(int stockQuantity) {
780                    _shoppingItem.setStockQuantity(stockQuantity);
781            }
782    
783            /**
784            * Returns the featured of this shopping item.
785            *
786            * @return the featured of this shopping item
787            */
788            public boolean getFeatured() {
789                    return _shoppingItem.getFeatured();
790            }
791    
792            /**
793            * Returns <code>true</code> if this shopping item is featured.
794            *
795            * @return <code>true</code> if this shopping item is featured; <code>false</code> otherwise
796            */
797            public boolean isFeatured() {
798                    return _shoppingItem.isFeatured();
799            }
800    
801            /**
802            * Sets whether this shopping item is featured.
803            *
804            * @param featured the featured of this shopping item
805            */
806            public void setFeatured(boolean featured) {
807                    _shoppingItem.setFeatured(featured);
808            }
809    
810            /**
811            * Returns the sale of this shopping item.
812            *
813            * @return the sale of this shopping item
814            */
815            public boolean getSale() {
816                    return _shoppingItem.getSale();
817            }
818    
819            /**
820            * Returns <code>true</code> if this shopping item is sale.
821            *
822            * @return <code>true</code> if this shopping item is sale; <code>false</code> otherwise
823            */
824            public boolean isSale() {
825                    return _shoppingItem.isSale();
826            }
827    
828            /**
829            * Sets whether this shopping item is sale.
830            *
831            * @param sale the sale of this shopping item
832            */
833            public void setSale(boolean sale) {
834                    _shoppingItem.setSale(sale);
835            }
836    
837            /**
838            * Returns the small image of this shopping item.
839            *
840            * @return the small image of this shopping item
841            */
842            public boolean getSmallImage() {
843                    return _shoppingItem.getSmallImage();
844            }
845    
846            /**
847            * Returns <code>true</code> if this shopping item is small image.
848            *
849            * @return <code>true</code> if this shopping item is small image; <code>false</code> otherwise
850            */
851            public boolean isSmallImage() {
852                    return _shoppingItem.isSmallImage();
853            }
854    
855            /**
856            * Sets whether this shopping item is small image.
857            *
858            * @param smallImage the small image of this shopping item
859            */
860            public void setSmallImage(boolean smallImage) {
861                    _shoppingItem.setSmallImage(smallImage);
862            }
863    
864            /**
865            * Returns the small image ID of this shopping item.
866            *
867            * @return the small image ID of this shopping item
868            */
869            public long getSmallImageId() {
870                    return _shoppingItem.getSmallImageId();
871            }
872    
873            /**
874            * Sets the small image ID of this shopping item.
875            *
876            * @param smallImageId the small image ID of this shopping item
877            */
878            public void setSmallImageId(long smallImageId) {
879                    _shoppingItem.setSmallImageId(smallImageId);
880            }
881    
882            /**
883            * Returns the small image u r l of this shopping item.
884            *
885            * @return the small image u r l of this shopping item
886            */
887            public java.lang.String getSmallImageURL() {
888                    return _shoppingItem.getSmallImageURL();
889            }
890    
891            /**
892            * Sets the small image u r l of this shopping item.
893            *
894            * @param smallImageURL the small image u r l of this shopping item
895            */
896            public void setSmallImageURL(java.lang.String smallImageURL) {
897                    _shoppingItem.setSmallImageURL(smallImageURL);
898            }
899    
900            /**
901            * Returns the medium image of this shopping item.
902            *
903            * @return the medium image of this shopping item
904            */
905            public boolean getMediumImage() {
906                    return _shoppingItem.getMediumImage();
907            }
908    
909            /**
910            * Returns <code>true</code> if this shopping item is medium image.
911            *
912            * @return <code>true</code> if this shopping item is medium image; <code>false</code> otherwise
913            */
914            public boolean isMediumImage() {
915                    return _shoppingItem.isMediumImage();
916            }
917    
918            /**
919            * Sets whether this shopping item is medium image.
920            *
921            * @param mediumImage the medium image of this shopping item
922            */
923            public void setMediumImage(boolean mediumImage) {
924                    _shoppingItem.setMediumImage(mediumImage);
925            }
926    
927            /**
928            * Returns the medium image ID of this shopping item.
929            *
930            * @return the medium image ID of this shopping item
931            */
932            public long getMediumImageId() {
933                    return _shoppingItem.getMediumImageId();
934            }
935    
936            /**
937            * Sets the medium image ID of this shopping item.
938            *
939            * @param mediumImageId the medium image ID of this shopping item
940            */
941            public void setMediumImageId(long mediumImageId) {
942                    _shoppingItem.setMediumImageId(mediumImageId);
943            }
944    
945            /**
946            * Returns the medium image u r l of this shopping item.
947            *
948            * @return the medium image u r l of this shopping item
949            */
950            public java.lang.String getMediumImageURL() {
951                    return _shoppingItem.getMediumImageURL();
952            }
953    
954            /**
955            * Sets the medium image u r l of this shopping item.
956            *
957            * @param mediumImageURL the medium image u r l of this shopping item
958            */
959            public void setMediumImageURL(java.lang.String mediumImageURL) {
960                    _shoppingItem.setMediumImageURL(mediumImageURL);
961            }
962    
963            /**
964            * Returns the large image of this shopping item.
965            *
966            * @return the large image of this shopping item
967            */
968            public boolean getLargeImage() {
969                    return _shoppingItem.getLargeImage();
970            }
971    
972            /**
973            * Returns <code>true</code> if this shopping item is large image.
974            *
975            * @return <code>true</code> if this shopping item is large image; <code>false</code> otherwise
976            */
977            public boolean isLargeImage() {
978                    return _shoppingItem.isLargeImage();
979            }
980    
981            /**
982            * Sets whether this shopping item is large image.
983            *
984            * @param largeImage the large image of this shopping item
985            */
986            public void setLargeImage(boolean largeImage) {
987                    _shoppingItem.setLargeImage(largeImage);
988            }
989    
990            /**
991            * Returns the large image ID of this shopping item.
992            *
993            * @return the large image ID of this shopping item
994            */
995            public long getLargeImageId() {
996                    return _shoppingItem.getLargeImageId();
997            }
998    
999            /**
1000            * Sets the large image ID of this shopping item.
1001            *
1002            * @param largeImageId the large image ID of this shopping item
1003            */
1004            public void setLargeImageId(long largeImageId) {
1005                    _shoppingItem.setLargeImageId(largeImageId);
1006            }
1007    
1008            /**
1009            * Returns the large image u r l of this shopping item.
1010            *
1011            * @return the large image u r l of this shopping item
1012            */
1013            public java.lang.String getLargeImageURL() {
1014                    return _shoppingItem.getLargeImageURL();
1015            }
1016    
1017            /**
1018            * Sets the large image u r l of this shopping item.
1019            *
1020            * @param largeImageURL the large image u r l of this shopping item
1021            */
1022            public void setLargeImageURL(java.lang.String largeImageURL) {
1023                    _shoppingItem.setLargeImageURL(largeImageURL);
1024            }
1025    
1026            public boolean isNew() {
1027                    return _shoppingItem.isNew();
1028            }
1029    
1030            public void setNew(boolean n) {
1031                    _shoppingItem.setNew(n);
1032            }
1033    
1034            public boolean isCachedModel() {
1035                    return _shoppingItem.isCachedModel();
1036            }
1037    
1038            public void setCachedModel(boolean cachedModel) {
1039                    _shoppingItem.setCachedModel(cachedModel);
1040            }
1041    
1042            public boolean isEscapedModel() {
1043                    return _shoppingItem.isEscapedModel();
1044            }
1045    
1046            public java.io.Serializable getPrimaryKeyObj() {
1047                    return _shoppingItem.getPrimaryKeyObj();
1048            }
1049    
1050            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1051                    _shoppingItem.setPrimaryKeyObj(primaryKeyObj);
1052            }
1053    
1054            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
1055                    return _shoppingItem.getExpandoBridge();
1056            }
1057    
1058            public void setExpandoBridgeAttributes(
1059                    com.liferay.portal.service.ServiceContext serviceContext) {
1060                    _shoppingItem.setExpandoBridgeAttributes(serviceContext);
1061            }
1062    
1063            @Override
1064            public java.lang.Object clone() {
1065                    return new ShoppingItemWrapper((ShoppingItem)_shoppingItem.clone());
1066            }
1067    
1068            public int compareTo(
1069                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem) {
1070                    return _shoppingItem.compareTo(shoppingItem);
1071            }
1072    
1073            @Override
1074            public int hashCode() {
1075                    return _shoppingItem.hashCode();
1076            }
1077    
1078            public com.liferay.portal.model.CacheModel<com.liferay.portlet.shopping.model.ShoppingItem> toCacheModel() {
1079                    return _shoppingItem.toCacheModel();
1080            }
1081    
1082            public com.liferay.portlet.shopping.model.ShoppingItem toEscapedModel() {
1083                    return new ShoppingItemWrapper(_shoppingItem.toEscapedModel());
1084            }
1085    
1086            public com.liferay.portlet.shopping.model.ShoppingItem toUnescapedModel() {
1087                    return new ShoppingItemWrapper(_shoppingItem.toUnescapedModel());
1088            }
1089    
1090            @Override
1091            public java.lang.String toString() {
1092                    return _shoppingItem.toString();
1093            }
1094    
1095            public java.lang.String toXmlString() {
1096                    return _shoppingItem.toXmlString();
1097            }
1098    
1099            public void persist()
1100                    throws com.liferay.portal.kernel.exception.SystemException {
1101                    _shoppingItem.persist();
1102            }
1103    
1104            public com.liferay.portlet.shopping.model.ShoppingCategory getCategory() {
1105                    return _shoppingItem.getCategory();
1106            }
1107    
1108            public java.lang.String[] getFieldsQuantitiesArray() {
1109                    return _shoppingItem.getFieldsQuantitiesArray();
1110            }
1111    
1112            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getItemPrices()
1113                    throws com.liferay.portal.kernel.exception.PortalException,
1114                            com.liferay.portal.kernel.exception.SystemException {
1115                    return _shoppingItem.getItemPrices();
1116            }
1117    
1118            public void setFieldsQuantitiesArray(
1119                    java.lang.String[] fieldsQuantitiesArray) {
1120                    _shoppingItem.setFieldsQuantitiesArray(fieldsQuantitiesArray);
1121            }
1122    
1123            @Override
1124            public boolean equals(Object obj) {
1125                    if (this == obj) {
1126                            return true;
1127                    }
1128    
1129                    if (!(obj instanceof ShoppingItemWrapper)) {
1130                            return false;
1131                    }
1132    
1133                    ShoppingItemWrapper shoppingItemWrapper = (ShoppingItemWrapper)obj;
1134    
1135                    if (Validator.equals(_shoppingItem, shoppingItemWrapper._shoppingItem)) {
1136                            return true;
1137                    }
1138    
1139                    return false;
1140            }
1141    
1142            /**
1143             * @deprecated Renamed to {@link #getWrappedModel}
1144             */
1145            public ShoppingItem getWrappedShoppingItem() {
1146                    return _shoppingItem;
1147            }
1148    
1149            public ShoppingItem getWrappedModel() {
1150                    return _shoppingItem;
1151            }
1152    
1153            public void resetOriginalValues() {
1154                    _shoppingItem.resetOriginalValues();
1155            }
1156    
1157            private ShoppingItem _shoppingItem;
1158    }