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