001    /**
002     * Copyright (c) 2000-2012 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.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link ShoppingItem}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       ShoppingItem
026     * @generated
027     */
028    public class ShoppingItemWrapper implements ShoppingItem,
029            ModelWrapper<ShoppingItem> {
030            public ShoppingItemWrapper(ShoppingItem shoppingItem) {
031                    _shoppingItem = shoppingItem;
032            }
033    
034            public Class<?> getModelClass() {
035                    return ShoppingItem.class;
036            }
037    
038            public String getModelClassName() {
039                    return ShoppingItem.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this shopping item.
044            *
045            * @return the primary key of this shopping item
046            */
047            public long getPrimaryKey() {
048                    return _shoppingItem.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this shopping item.
053            *
054            * @param primaryKey the primary key of this shopping item
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _shoppingItem.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the item ID of this shopping item.
062            *
063            * @return the item ID of this shopping item
064            */
065            public long getItemId() {
066                    return _shoppingItem.getItemId();
067            }
068    
069            /**
070            * Sets the item ID of this shopping item.
071            *
072            * @param itemId the item ID of this shopping item
073            */
074            public void setItemId(long itemId) {
075                    _shoppingItem.setItemId(itemId);
076            }
077    
078            /**
079            * Returns the group ID of this shopping item.
080            *
081            * @return the group ID of this shopping item
082            */
083            public long getGroupId() {
084                    return _shoppingItem.getGroupId();
085            }
086    
087            /**
088            * Sets the group ID of this shopping item.
089            *
090            * @param groupId the group ID of this shopping item
091            */
092            public void setGroupId(long groupId) {
093                    _shoppingItem.setGroupId(groupId);
094            }
095    
096            /**
097            * Returns the company ID of this shopping item.
098            *
099            * @return the company ID of this shopping item
100            */
101            public long getCompanyId() {
102                    return _shoppingItem.getCompanyId();
103            }
104    
105            /**
106            * Sets the company ID of this shopping item.
107            *
108            * @param companyId the company ID of this shopping item
109            */
110            public void setCompanyId(long companyId) {
111                    _shoppingItem.setCompanyId(companyId);
112            }
113    
114            /**
115            * Returns the user ID of this shopping item.
116            *
117            * @return the user ID of this shopping item
118            */
119            public long getUserId() {
120                    return _shoppingItem.getUserId();
121            }
122    
123            /**
124            * Sets the user ID of this shopping item.
125            *
126            * @param userId the user ID of this shopping item
127            */
128            public void setUserId(long userId) {
129                    _shoppingItem.setUserId(userId);
130            }
131    
132            /**
133            * Returns the user uuid of this shopping item.
134            *
135            * @return the user uuid of this shopping item
136            * @throws SystemException if a system exception occurred
137            */
138            public java.lang.String getUserUuid()
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return _shoppingItem.getUserUuid();
141            }
142    
143            /**
144            * Sets the user uuid of this shopping item.
145            *
146            * @param userUuid the user uuid of this shopping item
147            */
148            public void setUserUuid(java.lang.String userUuid) {
149                    _shoppingItem.setUserUuid(userUuid);
150            }
151    
152            /**
153            * Returns the user name of this shopping item.
154            *
155            * @return the user name of this shopping item
156            */
157            public java.lang.String getUserName() {
158                    return _shoppingItem.getUserName();
159            }
160    
161            /**
162            * Sets the user name of this shopping item.
163            *
164            * @param userName the user name of this shopping item
165            */
166            public void setUserName(java.lang.String userName) {
167                    _shoppingItem.setUserName(userName);
168            }
169    
170            /**
171            * Returns the create date of this shopping item.
172            *
173            * @return the create date of this shopping item
174            */
175            public java.util.Date getCreateDate() {
176                    return _shoppingItem.getCreateDate();
177            }
178    
179            /**
180            * Sets the create date of this shopping item.
181            *
182            * @param createDate the create date of this shopping item
183            */
184            public void setCreateDate(java.util.Date createDate) {
185                    _shoppingItem.setCreateDate(createDate);
186            }
187    
188            /**
189            * Returns the modified date of this shopping item.
190            *
191            * @return the modified date of this shopping item
192            */
193            public java.util.Date getModifiedDate() {
194                    return _shoppingItem.getModifiedDate();
195            }
196    
197            /**
198            * Sets the modified date of this shopping item.
199            *
200            * @param modifiedDate the modified date of this shopping item
201            */
202            public void setModifiedDate(java.util.Date modifiedDate) {
203                    _shoppingItem.setModifiedDate(modifiedDate);
204            }
205    
206            /**
207            * Returns the category ID of this shopping item.
208            *
209            * @return the category ID of this shopping item
210            */
211            public long getCategoryId() {
212                    return _shoppingItem.getCategoryId();
213            }
214    
215            /**
216            * Sets the category ID of this shopping item.
217            *
218            * @param categoryId the category ID of this shopping item
219            */
220            public void setCategoryId(long categoryId) {
221                    _shoppingItem.setCategoryId(categoryId);
222            }
223    
224            /**
225            * Returns the sku of this shopping item.
226            *
227            * @return the sku of this shopping item
228            */
229            public java.lang.String getSku() {
230                    return _shoppingItem.getSku();
231            }
232    
233            /**
234            * Sets the sku of this shopping item.
235            *
236            * @param sku the sku of this shopping item
237            */
238            public void setSku(java.lang.String sku) {
239                    _shoppingItem.setSku(sku);
240            }
241    
242            /**
243            * Returns the name of this shopping item.
244            *
245            * @return the name of this shopping item
246            */
247            public java.lang.String getName() {
248                    return _shoppingItem.getName();
249            }
250    
251            /**
252            * Sets the name of this shopping item.
253            *
254            * @param name the name of this shopping item
255            */
256            public void setName(java.lang.String name) {
257                    _shoppingItem.setName(name);
258            }
259    
260            /**
261            * Returns the description of this shopping item.
262            *
263            * @return the description of this shopping item
264            */
265            public java.lang.String getDescription() {
266                    return _shoppingItem.getDescription();
267            }
268    
269            /**
270            * Sets the description of this shopping item.
271            *
272            * @param description the description of this shopping item
273            */
274            public void setDescription(java.lang.String description) {
275                    _shoppingItem.setDescription(description);
276            }
277    
278            /**
279            * Returns the properties of this shopping item.
280            *
281            * @return the properties of this shopping item
282            */
283            public java.lang.String getProperties() {
284                    return _shoppingItem.getProperties();
285            }
286    
287            /**
288            * Sets the properties of this shopping item.
289            *
290            * @param properties the properties of this shopping item
291            */
292            public void setProperties(java.lang.String properties) {
293                    _shoppingItem.setProperties(properties);
294            }
295    
296            /**
297            * Returns the fields of this shopping item.
298            *
299            * @return the fields of this shopping item
300            */
301            public boolean getFields() {
302                    return _shoppingItem.getFields();
303            }
304    
305            /**
306            * Returns <code>true</code> if this shopping item is fields.
307            *
308            * @return <code>true</code> if this shopping item is fields; <code>false</code> otherwise
309            */
310            public boolean isFields() {
311                    return _shoppingItem.isFields();
312            }
313    
314            /**
315            * Sets whether this shopping item is fields.
316            *
317            * @param fields the fields of this shopping item
318            */
319            public void setFields(boolean fields) {
320                    _shoppingItem.setFields(fields);
321            }
322    
323            /**
324            * Returns the fields quantities of this shopping item.
325            *
326            * @return the fields quantities of this shopping item
327            */
328            public java.lang.String getFieldsQuantities() {
329                    return _shoppingItem.getFieldsQuantities();
330            }
331    
332            /**
333            * Sets the fields quantities of this shopping item.
334            *
335            * @param fieldsQuantities the fields quantities of this shopping item
336            */
337            public void setFieldsQuantities(java.lang.String fieldsQuantities) {
338                    _shoppingItem.setFieldsQuantities(fieldsQuantities);
339            }
340    
341            /**
342            * Returns the min quantity of this shopping item.
343            *
344            * @return the min quantity of this shopping item
345            */
346            public int getMinQuantity() {
347                    return _shoppingItem.getMinQuantity();
348            }
349    
350            /**
351            * Sets the min quantity of this shopping item.
352            *
353            * @param minQuantity the min quantity of this shopping item
354            */
355            public void setMinQuantity(int minQuantity) {
356                    _shoppingItem.setMinQuantity(minQuantity);
357            }
358    
359            /**
360            * Returns the max quantity of this shopping item.
361            *
362            * @return the max quantity of this shopping item
363            */
364            public int getMaxQuantity() {
365                    return _shoppingItem.getMaxQuantity();
366            }
367    
368            /**
369            * Sets the max quantity of this shopping item.
370            *
371            * @param maxQuantity the max quantity of this shopping item
372            */
373            public void setMaxQuantity(int maxQuantity) {
374                    _shoppingItem.setMaxQuantity(maxQuantity);
375            }
376    
377            /**
378            * Returns the price of this shopping item.
379            *
380            * @return the price of this shopping item
381            */
382            public double getPrice() {
383                    return _shoppingItem.getPrice();
384            }
385    
386            /**
387            * Sets the price of this shopping item.
388            *
389            * @param price the price of this shopping item
390            */
391            public void setPrice(double price) {
392                    _shoppingItem.setPrice(price);
393            }
394    
395            /**
396            * Returns the discount of this shopping item.
397            *
398            * @return the discount of this shopping item
399            */
400            public double getDiscount() {
401                    return _shoppingItem.getDiscount();
402            }
403    
404            /**
405            * Sets the discount of this shopping item.
406            *
407            * @param discount the discount of this shopping item
408            */
409            public void setDiscount(double discount) {
410                    _shoppingItem.setDiscount(discount);
411            }
412    
413            /**
414            * Returns the taxable of this shopping item.
415            *
416            * @return the taxable of this shopping item
417            */
418            public boolean getTaxable() {
419                    return _shoppingItem.getTaxable();
420            }
421    
422            /**
423            * Returns <code>true</code> if this shopping item is taxable.
424            *
425            * @return <code>true</code> if this shopping item is taxable; <code>false</code> otherwise
426            */
427            public boolean isTaxable() {
428                    return _shoppingItem.isTaxable();
429            }
430    
431            /**
432            * Sets whether this shopping item is taxable.
433            *
434            * @param taxable the taxable of this shopping item
435            */
436            public void setTaxable(boolean taxable) {
437                    _shoppingItem.setTaxable(taxable);
438            }
439    
440            /**
441            * Returns the shipping of this shopping item.
442            *
443            * @return the shipping of this shopping item
444            */
445            public double getShipping() {
446                    return _shoppingItem.getShipping();
447            }
448    
449            /**
450            * Sets the shipping of this shopping item.
451            *
452            * @param shipping the shipping of this shopping item
453            */
454            public void setShipping(double shipping) {
455                    _shoppingItem.setShipping(shipping);
456            }
457    
458            /**
459            * Returns the use shipping formula of this shopping item.
460            *
461            * @return the use shipping formula of this shopping item
462            */
463            public boolean getUseShippingFormula() {
464                    return _shoppingItem.getUseShippingFormula();
465            }
466    
467            /**
468            * Returns <code>true</code> if this shopping item is use shipping formula.
469            *
470            * @return <code>true</code> if this shopping item is use shipping formula; <code>false</code> otherwise
471            */
472            public boolean isUseShippingFormula() {
473                    return _shoppingItem.isUseShippingFormula();
474            }
475    
476            /**
477            * Sets whether this shopping item is use shipping formula.
478            *
479            * @param useShippingFormula the use shipping formula of this shopping item
480            */
481            public void setUseShippingFormula(boolean useShippingFormula) {
482                    _shoppingItem.setUseShippingFormula(useShippingFormula);
483            }
484    
485            /**
486            * Returns the requires shipping of this shopping item.
487            *
488            * @return the requires shipping of this shopping item
489            */
490            public boolean getRequiresShipping() {
491                    return _shoppingItem.getRequiresShipping();
492            }
493    
494            /**
495            * Returns <code>true</code> if this shopping item is requires shipping.
496            *
497            * @return <code>true</code> if this shopping item is requires shipping; <code>false</code> otherwise
498            */
499            public boolean isRequiresShipping() {
500                    return _shoppingItem.isRequiresShipping();
501            }
502    
503            /**
504            * Sets whether this shopping item is requires shipping.
505            *
506            * @param requiresShipping the requires shipping of this shopping item
507            */
508            public void setRequiresShipping(boolean requiresShipping) {
509                    _shoppingItem.setRequiresShipping(requiresShipping);
510            }
511    
512            /**
513            * Returns the stock quantity of this shopping item.
514            *
515            * @return the stock quantity of this shopping item
516            */
517            public int getStockQuantity() {
518                    return _shoppingItem.getStockQuantity();
519            }
520    
521            /**
522            * Sets the stock quantity of this shopping item.
523            *
524            * @param stockQuantity the stock quantity of this shopping item
525            */
526            public void setStockQuantity(int stockQuantity) {
527                    _shoppingItem.setStockQuantity(stockQuantity);
528            }
529    
530            /**
531            * Returns the featured of this shopping item.
532            *
533            * @return the featured of this shopping item
534            */
535            public boolean getFeatured() {
536                    return _shoppingItem.getFeatured();
537            }
538    
539            /**
540            * Returns <code>true</code> if this shopping item is featured.
541            *
542            * @return <code>true</code> if this shopping item is featured; <code>false</code> otherwise
543            */
544            public boolean isFeatured() {
545                    return _shoppingItem.isFeatured();
546            }
547    
548            /**
549            * Sets whether this shopping item is featured.
550            *
551            * @param featured the featured of this shopping item
552            */
553            public void setFeatured(boolean featured) {
554                    _shoppingItem.setFeatured(featured);
555            }
556    
557            /**
558            * Returns the sale of this shopping item.
559            *
560            * @return the sale of this shopping item
561            */
562            public boolean getSale() {
563                    return _shoppingItem.getSale();
564            }
565    
566            /**
567            * Returns <code>true</code> if this shopping item is sale.
568            *
569            * @return <code>true</code> if this shopping item is sale; <code>false</code> otherwise
570            */
571            public boolean isSale() {
572                    return _shoppingItem.isSale();
573            }
574    
575            /**
576            * Sets whether this shopping item is sale.
577            *
578            * @param sale the sale of this shopping item
579            */
580            public void setSale(boolean sale) {
581                    _shoppingItem.setSale(sale);
582            }
583    
584            /**
585            * Returns the small image of this shopping item.
586            *
587            * @return the small image of this shopping item
588            */
589            public boolean getSmallImage() {
590                    return _shoppingItem.getSmallImage();
591            }
592    
593            /**
594            * Returns <code>true</code> if this shopping item is small image.
595            *
596            * @return <code>true</code> if this shopping item is small image; <code>false</code> otherwise
597            */
598            public boolean isSmallImage() {
599                    return _shoppingItem.isSmallImage();
600            }
601    
602            /**
603            * Sets whether this shopping item is small image.
604            *
605            * @param smallImage the small image of this shopping item
606            */
607            public void setSmallImage(boolean smallImage) {
608                    _shoppingItem.setSmallImage(smallImage);
609            }
610    
611            /**
612            * Returns the small image ID of this shopping item.
613            *
614            * @return the small image ID of this shopping item
615            */
616            public long getSmallImageId() {
617                    return _shoppingItem.getSmallImageId();
618            }
619    
620            /**
621            * Sets the small image ID of this shopping item.
622            *
623            * @param smallImageId the small image ID of this shopping item
624            */
625            public void setSmallImageId(long smallImageId) {
626                    _shoppingItem.setSmallImageId(smallImageId);
627            }
628    
629            /**
630            * Returns the small image u r l of this shopping item.
631            *
632            * @return the small image u r l of this shopping item
633            */
634            public java.lang.String getSmallImageURL() {
635                    return _shoppingItem.getSmallImageURL();
636            }
637    
638            /**
639            * Sets the small image u r l of this shopping item.
640            *
641            * @param smallImageURL the small image u r l of this shopping item
642            */
643            public void setSmallImageURL(java.lang.String smallImageURL) {
644                    _shoppingItem.setSmallImageURL(smallImageURL);
645            }
646    
647            /**
648            * Returns the medium image of this shopping item.
649            *
650            * @return the medium image of this shopping item
651            */
652            public boolean getMediumImage() {
653                    return _shoppingItem.getMediumImage();
654            }
655    
656            /**
657            * Returns <code>true</code> if this shopping item is medium image.
658            *
659            * @return <code>true</code> if this shopping item is medium image; <code>false</code> otherwise
660            */
661            public boolean isMediumImage() {
662                    return _shoppingItem.isMediumImage();
663            }
664    
665            /**
666            * Sets whether this shopping item is medium image.
667            *
668            * @param mediumImage the medium image of this shopping item
669            */
670            public void setMediumImage(boolean mediumImage) {
671                    _shoppingItem.setMediumImage(mediumImage);
672            }
673    
674            /**
675            * Returns the medium image ID of this shopping item.
676            *
677            * @return the medium image ID of this shopping item
678            */
679            public long getMediumImageId() {
680                    return _shoppingItem.getMediumImageId();
681            }
682    
683            /**
684            * Sets the medium image ID of this shopping item.
685            *
686            * @param mediumImageId the medium image ID of this shopping item
687            */
688            public void setMediumImageId(long mediumImageId) {
689                    _shoppingItem.setMediumImageId(mediumImageId);
690            }
691    
692            /**
693            * Returns the medium image u r l of this shopping item.
694            *
695            * @return the medium image u r l of this shopping item
696            */
697            public java.lang.String getMediumImageURL() {
698                    return _shoppingItem.getMediumImageURL();
699            }
700    
701            /**
702            * Sets the medium image u r l of this shopping item.
703            *
704            * @param mediumImageURL the medium image u r l of this shopping item
705            */
706            public void setMediumImageURL(java.lang.String mediumImageURL) {
707                    _shoppingItem.setMediumImageURL(mediumImageURL);
708            }
709    
710            /**
711            * Returns the large image of this shopping item.
712            *
713            * @return the large image of this shopping item
714            */
715            public boolean getLargeImage() {
716                    return _shoppingItem.getLargeImage();
717            }
718    
719            /**
720            * Returns <code>true</code> if this shopping item is large image.
721            *
722            * @return <code>true</code> if this shopping item is large image; <code>false</code> otherwise
723            */
724            public boolean isLargeImage() {
725                    return _shoppingItem.isLargeImage();
726            }
727    
728            /**
729            * Sets whether this shopping item is large image.
730            *
731            * @param largeImage the large image of this shopping item
732            */
733            public void setLargeImage(boolean largeImage) {
734                    _shoppingItem.setLargeImage(largeImage);
735            }
736    
737            /**
738            * Returns the large image ID of this shopping item.
739            *
740            * @return the large image ID of this shopping item
741            */
742            public long getLargeImageId() {
743                    return _shoppingItem.getLargeImageId();
744            }
745    
746            /**
747            * Sets the large image ID of this shopping item.
748            *
749            * @param largeImageId the large image ID of this shopping item
750            */
751            public void setLargeImageId(long largeImageId) {
752                    _shoppingItem.setLargeImageId(largeImageId);
753            }
754    
755            /**
756            * Returns the large image u r l of this shopping item.
757            *
758            * @return the large image u r l of this shopping item
759            */
760            public java.lang.String getLargeImageURL() {
761                    return _shoppingItem.getLargeImageURL();
762            }
763    
764            /**
765            * Sets the large image u r l of this shopping item.
766            *
767            * @param largeImageURL the large image u r l of this shopping item
768            */
769            public void setLargeImageURL(java.lang.String largeImageURL) {
770                    _shoppingItem.setLargeImageURL(largeImageURL);
771            }
772    
773            public boolean isNew() {
774                    return _shoppingItem.isNew();
775            }
776    
777            public void setNew(boolean n) {
778                    _shoppingItem.setNew(n);
779            }
780    
781            public boolean isCachedModel() {
782                    return _shoppingItem.isCachedModel();
783            }
784    
785            public void setCachedModel(boolean cachedModel) {
786                    _shoppingItem.setCachedModel(cachedModel);
787            }
788    
789            public boolean isEscapedModel() {
790                    return _shoppingItem.isEscapedModel();
791            }
792    
793            public java.io.Serializable getPrimaryKeyObj() {
794                    return _shoppingItem.getPrimaryKeyObj();
795            }
796    
797            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
798                    _shoppingItem.setPrimaryKeyObj(primaryKeyObj);
799            }
800    
801            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
802                    return _shoppingItem.getExpandoBridge();
803            }
804    
805            public void setExpandoBridgeAttributes(
806                    com.liferay.portal.service.ServiceContext serviceContext) {
807                    _shoppingItem.setExpandoBridgeAttributes(serviceContext);
808            }
809    
810            @Override
811            public java.lang.Object clone() {
812                    return new ShoppingItemWrapper((ShoppingItem)_shoppingItem.clone());
813            }
814    
815            public int compareTo(
816                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem) {
817                    return _shoppingItem.compareTo(shoppingItem);
818            }
819    
820            @Override
821            public int hashCode() {
822                    return _shoppingItem.hashCode();
823            }
824    
825            public com.liferay.portal.model.CacheModel<com.liferay.portlet.shopping.model.ShoppingItem> toCacheModel() {
826                    return _shoppingItem.toCacheModel();
827            }
828    
829            public com.liferay.portlet.shopping.model.ShoppingItem toEscapedModel() {
830                    return new ShoppingItemWrapper(_shoppingItem.toEscapedModel());
831            }
832    
833            @Override
834            public java.lang.String toString() {
835                    return _shoppingItem.toString();
836            }
837    
838            public java.lang.String toXmlString() {
839                    return _shoppingItem.toXmlString();
840            }
841    
842            public void persist()
843                    throws com.liferay.portal.kernel.exception.SystemException {
844                    _shoppingItem.persist();
845            }
846    
847            public com.liferay.portlet.shopping.model.ShoppingCategory getCategory() {
848                    return _shoppingItem.getCategory();
849            }
850    
851            public java.lang.String[] getFieldsQuantitiesArray() {
852                    return _shoppingItem.getFieldsQuantitiesArray();
853            }
854    
855            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getItemPrices()
856                    throws com.liferay.portal.kernel.exception.PortalException,
857                            com.liferay.portal.kernel.exception.SystemException {
858                    return _shoppingItem.getItemPrices();
859            }
860    
861            public void setFieldsQuantitiesArray(
862                    java.lang.String[] fieldsQuantitiesArray) {
863                    _shoppingItem.setFieldsQuantitiesArray(fieldsQuantitiesArray);
864            }
865    
866            /**
867             * @deprecated Renamed to {@link #getWrappedModel}
868             */
869            public ShoppingItem getWrappedShoppingItem() {
870                    return _shoppingItem;
871            }
872    
873            public ShoppingItem getWrappedModel() {
874                    return _shoppingItem;
875            }
876    
877            public void resetOriginalValues() {
878                    _shoppingItem.resetOriginalValues();
879            }
880    
881            private ShoppingItem _shoppingItem;
882    }