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 ShoppingCart}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       ShoppingCart
026     * @generated
027     */
028    public class ShoppingCartWrapper implements ShoppingCart,
029            ModelWrapper<ShoppingCart> {
030            public ShoppingCartWrapper(ShoppingCart shoppingCart) {
031                    _shoppingCart = shoppingCart;
032            }
033    
034            public Class<?> getModelClass() {
035                    return ShoppingCart.class;
036            }
037    
038            public String getModelClassName() {
039                    return ShoppingCart.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this shopping cart.
044            *
045            * @return the primary key of this shopping cart
046            */
047            public long getPrimaryKey() {
048                    return _shoppingCart.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this shopping cart.
053            *
054            * @param primaryKey the primary key of this shopping cart
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _shoppingCart.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the cart ID of this shopping cart.
062            *
063            * @return the cart ID of this shopping cart
064            */
065            public long getCartId() {
066                    return _shoppingCart.getCartId();
067            }
068    
069            /**
070            * Sets the cart ID of this shopping cart.
071            *
072            * @param cartId the cart ID of this shopping cart
073            */
074            public void setCartId(long cartId) {
075                    _shoppingCart.setCartId(cartId);
076            }
077    
078            /**
079            * Returns the group ID of this shopping cart.
080            *
081            * @return the group ID of this shopping cart
082            */
083            public long getGroupId() {
084                    return _shoppingCart.getGroupId();
085            }
086    
087            /**
088            * Sets the group ID of this shopping cart.
089            *
090            * @param groupId the group ID of this shopping cart
091            */
092            public void setGroupId(long groupId) {
093                    _shoppingCart.setGroupId(groupId);
094            }
095    
096            /**
097            * Returns the company ID of this shopping cart.
098            *
099            * @return the company ID of this shopping cart
100            */
101            public long getCompanyId() {
102                    return _shoppingCart.getCompanyId();
103            }
104    
105            /**
106            * Sets the company ID of this shopping cart.
107            *
108            * @param companyId the company ID of this shopping cart
109            */
110            public void setCompanyId(long companyId) {
111                    _shoppingCart.setCompanyId(companyId);
112            }
113    
114            /**
115            * Returns the user ID of this shopping cart.
116            *
117            * @return the user ID of this shopping cart
118            */
119            public long getUserId() {
120                    return _shoppingCart.getUserId();
121            }
122    
123            /**
124            * Sets the user ID of this shopping cart.
125            *
126            * @param userId the user ID of this shopping cart
127            */
128            public void setUserId(long userId) {
129                    _shoppingCart.setUserId(userId);
130            }
131    
132            /**
133            * Returns the user uuid of this shopping cart.
134            *
135            * @return the user uuid of this shopping cart
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 _shoppingCart.getUserUuid();
141            }
142    
143            /**
144            * Sets the user uuid of this shopping cart.
145            *
146            * @param userUuid the user uuid of this shopping cart
147            */
148            public void setUserUuid(java.lang.String userUuid) {
149                    _shoppingCart.setUserUuid(userUuid);
150            }
151    
152            /**
153            * Returns the user name of this shopping cart.
154            *
155            * @return the user name of this shopping cart
156            */
157            public java.lang.String getUserName() {
158                    return _shoppingCart.getUserName();
159            }
160    
161            /**
162            * Sets the user name of this shopping cart.
163            *
164            * @param userName the user name of this shopping cart
165            */
166            public void setUserName(java.lang.String userName) {
167                    _shoppingCart.setUserName(userName);
168            }
169    
170            /**
171            * Returns the create date of this shopping cart.
172            *
173            * @return the create date of this shopping cart
174            */
175            public java.util.Date getCreateDate() {
176                    return _shoppingCart.getCreateDate();
177            }
178    
179            /**
180            * Sets the create date of this shopping cart.
181            *
182            * @param createDate the create date of this shopping cart
183            */
184            public void setCreateDate(java.util.Date createDate) {
185                    _shoppingCart.setCreateDate(createDate);
186            }
187    
188            /**
189            * Returns the modified date of this shopping cart.
190            *
191            * @return the modified date of this shopping cart
192            */
193            public java.util.Date getModifiedDate() {
194                    return _shoppingCart.getModifiedDate();
195            }
196    
197            /**
198            * Sets the modified date of this shopping cart.
199            *
200            * @param modifiedDate the modified date of this shopping cart
201            */
202            public void setModifiedDate(java.util.Date modifiedDate) {
203                    _shoppingCart.setModifiedDate(modifiedDate);
204            }
205    
206            /**
207            * Returns the item IDs of this shopping cart.
208            *
209            * @return the item IDs of this shopping cart
210            */
211            public java.lang.String getItemIds() {
212                    return _shoppingCart.getItemIds();
213            }
214    
215            /**
216            * Sets the item IDs of this shopping cart.
217            *
218            * @param itemIds the item IDs of this shopping cart
219            */
220            public void setItemIds(java.lang.String itemIds) {
221                    _shoppingCart.setItemIds(itemIds);
222            }
223    
224            /**
225            * Returns the coupon codes of this shopping cart.
226            *
227            * @return the coupon codes of this shopping cart
228            */
229            public java.lang.String getCouponCodes() {
230                    return _shoppingCart.getCouponCodes();
231            }
232    
233            /**
234            * Sets the coupon codes of this shopping cart.
235            *
236            * @param couponCodes the coupon codes of this shopping cart
237            */
238            public void setCouponCodes(java.lang.String couponCodes) {
239                    _shoppingCart.setCouponCodes(couponCodes);
240            }
241    
242            /**
243            * Returns the alt shipping of this shopping cart.
244            *
245            * @return the alt shipping of this shopping cart
246            */
247            public int getAltShipping() {
248                    return _shoppingCart.getAltShipping();
249            }
250    
251            /**
252            * Sets the alt shipping of this shopping cart.
253            *
254            * @param altShipping the alt shipping of this shopping cart
255            */
256            public void setAltShipping(int altShipping) {
257                    _shoppingCart.setAltShipping(altShipping);
258            }
259    
260            /**
261            * Returns the insure of this shopping cart.
262            *
263            * @return the insure of this shopping cart
264            */
265            public boolean getInsure() {
266                    return _shoppingCart.getInsure();
267            }
268    
269            /**
270            * Returns <code>true</code> if this shopping cart is insure.
271            *
272            * @return <code>true</code> if this shopping cart is insure; <code>false</code> otherwise
273            */
274            public boolean isInsure() {
275                    return _shoppingCart.isInsure();
276            }
277    
278            /**
279            * Sets whether this shopping cart is insure.
280            *
281            * @param insure the insure of this shopping cart
282            */
283            public void setInsure(boolean insure) {
284                    _shoppingCart.setInsure(insure);
285            }
286    
287            public boolean isNew() {
288                    return _shoppingCart.isNew();
289            }
290    
291            public void setNew(boolean n) {
292                    _shoppingCart.setNew(n);
293            }
294    
295            public boolean isCachedModel() {
296                    return _shoppingCart.isCachedModel();
297            }
298    
299            public void setCachedModel(boolean cachedModel) {
300                    _shoppingCart.setCachedModel(cachedModel);
301            }
302    
303            public boolean isEscapedModel() {
304                    return _shoppingCart.isEscapedModel();
305            }
306    
307            public java.io.Serializable getPrimaryKeyObj() {
308                    return _shoppingCart.getPrimaryKeyObj();
309            }
310    
311            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
312                    _shoppingCart.setPrimaryKeyObj(primaryKeyObj);
313            }
314    
315            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
316                    return _shoppingCart.getExpandoBridge();
317            }
318    
319            public void setExpandoBridgeAttributes(
320                    com.liferay.portal.service.ServiceContext serviceContext) {
321                    _shoppingCart.setExpandoBridgeAttributes(serviceContext);
322            }
323    
324            @Override
325            public java.lang.Object clone() {
326                    return new ShoppingCartWrapper((ShoppingCart)_shoppingCart.clone());
327            }
328    
329            public int compareTo(
330                    com.liferay.portlet.shopping.model.ShoppingCart shoppingCart) {
331                    return _shoppingCart.compareTo(shoppingCart);
332            }
333    
334            @Override
335            public int hashCode() {
336                    return _shoppingCart.hashCode();
337            }
338    
339            public com.liferay.portal.model.CacheModel<com.liferay.portlet.shopping.model.ShoppingCart> toCacheModel() {
340                    return _shoppingCart.toCacheModel();
341            }
342    
343            public com.liferay.portlet.shopping.model.ShoppingCart toEscapedModel() {
344                    return new ShoppingCartWrapper(_shoppingCart.toEscapedModel());
345            }
346    
347            @Override
348            public java.lang.String toString() {
349                    return _shoppingCart.toString();
350            }
351    
352            public java.lang.String toXmlString() {
353                    return _shoppingCart.toXmlString();
354            }
355    
356            public void persist()
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    _shoppingCart.persist();
359            }
360    
361            public void addItemId(long itemId, java.lang.String fields) {
362                    _shoppingCart.addItemId(itemId, fields);
363            }
364    
365            public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon()
366                    throws com.liferay.portal.kernel.exception.PortalException,
367                            com.liferay.portal.kernel.exception.SystemException {
368                    return _shoppingCart.getCoupon();
369            }
370    
371            public java.util.Map<com.liferay.portlet.shopping.model.ShoppingCartItem, java.lang.Integer> getItems()
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _shoppingCart.getItems();
374            }
375    
376            public int getItemsSize() {
377                    return _shoppingCart.getItemsSize();
378            }
379    
380            /**
381             * @deprecated Renamed to {@link #getWrappedModel}
382             */
383            public ShoppingCart getWrappedShoppingCart() {
384                    return _shoppingCart;
385            }
386    
387            public ShoppingCart getWrappedModel() {
388                    return _shoppingCart;
389            }
390    
391            public void resetOriginalValues() {
392                    _shoppingCart.resetOriginalValues();
393            }
394    
395            private ShoppingCart _shoppingCart;
396    }