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