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