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