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 ShoppingOrderItem}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       ShoppingOrderItem
026     * @generated
027     */
028    public class ShoppingOrderItemWrapper implements ShoppingOrderItem,
029            ModelWrapper<ShoppingOrderItem> {
030            public ShoppingOrderItemWrapper(ShoppingOrderItem shoppingOrderItem) {
031                    _shoppingOrderItem = shoppingOrderItem;
032            }
033    
034            public Class<?> getModelClass() {
035                    return ShoppingOrderItem.class;
036            }
037    
038            public String getModelClassName() {
039                    return ShoppingOrderItem.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this shopping order item.
044            *
045            * @return the primary key of this shopping order item
046            */
047            public long getPrimaryKey() {
048                    return _shoppingOrderItem.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this shopping order item.
053            *
054            * @param primaryKey the primary key of this shopping order item
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _shoppingOrderItem.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the order item ID of this shopping order item.
062            *
063            * @return the order item ID of this shopping order item
064            */
065            public long getOrderItemId() {
066                    return _shoppingOrderItem.getOrderItemId();
067            }
068    
069            /**
070            * Sets the order item ID of this shopping order item.
071            *
072            * @param orderItemId the order item ID of this shopping order item
073            */
074            public void setOrderItemId(long orderItemId) {
075                    _shoppingOrderItem.setOrderItemId(orderItemId);
076            }
077    
078            /**
079            * Returns the order ID of this shopping order item.
080            *
081            * @return the order ID of this shopping order item
082            */
083            public long getOrderId() {
084                    return _shoppingOrderItem.getOrderId();
085            }
086    
087            /**
088            * Sets the order ID of this shopping order item.
089            *
090            * @param orderId the order ID of this shopping order item
091            */
092            public void setOrderId(long orderId) {
093                    _shoppingOrderItem.setOrderId(orderId);
094            }
095    
096            /**
097            * Returns the item ID of this shopping order item.
098            *
099            * @return the item ID of this shopping order item
100            */
101            public java.lang.String getItemId() {
102                    return _shoppingOrderItem.getItemId();
103            }
104    
105            /**
106            * Sets the item ID of this shopping order item.
107            *
108            * @param itemId the item ID of this shopping order item
109            */
110            public void setItemId(java.lang.String itemId) {
111                    _shoppingOrderItem.setItemId(itemId);
112            }
113    
114            /**
115            * Returns the sku of this shopping order item.
116            *
117            * @return the sku of this shopping order item
118            */
119            public java.lang.String getSku() {
120                    return _shoppingOrderItem.getSku();
121            }
122    
123            /**
124            * Sets the sku of this shopping order item.
125            *
126            * @param sku the sku of this shopping order item
127            */
128            public void setSku(java.lang.String sku) {
129                    _shoppingOrderItem.setSku(sku);
130            }
131    
132            /**
133            * Returns the name of this shopping order item.
134            *
135            * @return the name of this shopping order item
136            */
137            public java.lang.String getName() {
138                    return _shoppingOrderItem.getName();
139            }
140    
141            /**
142            * Sets the name of this shopping order item.
143            *
144            * @param name the name of this shopping order item
145            */
146            public void setName(java.lang.String name) {
147                    _shoppingOrderItem.setName(name);
148            }
149    
150            /**
151            * Returns the description of this shopping order item.
152            *
153            * @return the description of this shopping order item
154            */
155            public java.lang.String getDescription() {
156                    return _shoppingOrderItem.getDescription();
157            }
158    
159            /**
160            * Sets the description of this shopping order item.
161            *
162            * @param description the description of this shopping order item
163            */
164            public void setDescription(java.lang.String description) {
165                    _shoppingOrderItem.setDescription(description);
166            }
167    
168            /**
169            * Returns the properties of this shopping order item.
170            *
171            * @return the properties of this shopping order item
172            */
173            public java.lang.String getProperties() {
174                    return _shoppingOrderItem.getProperties();
175            }
176    
177            /**
178            * Sets the properties of this shopping order item.
179            *
180            * @param properties the properties of this shopping order item
181            */
182            public void setProperties(java.lang.String properties) {
183                    _shoppingOrderItem.setProperties(properties);
184            }
185    
186            /**
187            * Returns the price of this shopping order item.
188            *
189            * @return the price of this shopping order item
190            */
191            public double getPrice() {
192                    return _shoppingOrderItem.getPrice();
193            }
194    
195            /**
196            * Sets the price of this shopping order item.
197            *
198            * @param price the price of this shopping order item
199            */
200            public void setPrice(double price) {
201                    _shoppingOrderItem.setPrice(price);
202            }
203    
204            /**
205            * Returns the quantity of this shopping order item.
206            *
207            * @return the quantity of this shopping order item
208            */
209            public int getQuantity() {
210                    return _shoppingOrderItem.getQuantity();
211            }
212    
213            /**
214            * Sets the quantity of this shopping order item.
215            *
216            * @param quantity the quantity of this shopping order item
217            */
218            public void setQuantity(int quantity) {
219                    _shoppingOrderItem.setQuantity(quantity);
220            }
221    
222            /**
223            * Returns the shipped date of this shopping order item.
224            *
225            * @return the shipped date of this shopping order item
226            */
227            public java.util.Date getShippedDate() {
228                    return _shoppingOrderItem.getShippedDate();
229            }
230    
231            /**
232            * Sets the shipped date of this shopping order item.
233            *
234            * @param shippedDate the shipped date of this shopping order item
235            */
236            public void setShippedDate(java.util.Date shippedDate) {
237                    _shoppingOrderItem.setShippedDate(shippedDate);
238            }
239    
240            public boolean isNew() {
241                    return _shoppingOrderItem.isNew();
242            }
243    
244            public void setNew(boolean n) {
245                    _shoppingOrderItem.setNew(n);
246            }
247    
248            public boolean isCachedModel() {
249                    return _shoppingOrderItem.isCachedModel();
250            }
251    
252            public void setCachedModel(boolean cachedModel) {
253                    _shoppingOrderItem.setCachedModel(cachedModel);
254            }
255    
256            public boolean isEscapedModel() {
257                    return _shoppingOrderItem.isEscapedModel();
258            }
259    
260            public java.io.Serializable getPrimaryKeyObj() {
261                    return _shoppingOrderItem.getPrimaryKeyObj();
262            }
263    
264            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
265                    _shoppingOrderItem.setPrimaryKeyObj(primaryKeyObj);
266            }
267    
268            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
269                    return _shoppingOrderItem.getExpandoBridge();
270            }
271    
272            public void setExpandoBridgeAttributes(
273                    com.liferay.portal.service.ServiceContext serviceContext) {
274                    _shoppingOrderItem.setExpandoBridgeAttributes(serviceContext);
275            }
276    
277            @Override
278            public java.lang.Object clone() {
279                    return new ShoppingOrderItemWrapper((ShoppingOrderItem)_shoppingOrderItem.clone());
280            }
281    
282            public int compareTo(
283                    com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem) {
284                    return _shoppingOrderItem.compareTo(shoppingOrderItem);
285            }
286    
287            @Override
288            public int hashCode() {
289                    return _shoppingOrderItem.hashCode();
290            }
291    
292            public com.liferay.portal.model.CacheModel<com.liferay.portlet.shopping.model.ShoppingOrderItem> toCacheModel() {
293                    return _shoppingOrderItem.toCacheModel();
294            }
295    
296            public com.liferay.portlet.shopping.model.ShoppingOrderItem toEscapedModel() {
297                    return new ShoppingOrderItemWrapper(_shoppingOrderItem.toEscapedModel());
298            }
299    
300            @Override
301            public java.lang.String toString() {
302                    return _shoppingOrderItem.toString();
303            }
304    
305            public java.lang.String toXmlString() {
306                    return _shoppingOrderItem.toXmlString();
307            }
308    
309            public void persist()
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    _shoppingOrderItem.persist();
312            }
313    
314            /**
315             * @deprecated Renamed to {@link #getWrappedModel}
316             */
317            public ShoppingOrderItem getWrappedShoppingOrderItem() {
318                    return _shoppingOrderItem;
319            }
320    
321            public ShoppingOrderItem getWrappedModel() {
322                    return _shoppingOrderItem;
323            }
324    
325            public void resetOriginalValues() {
326                    _shoppingOrderItem.resetOriginalValues();
327            }
328    
329            private ShoppingOrderItem _shoppingOrderItem;
330    }