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