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