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 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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 void setEscapedModel(boolean escapedModel) {
258                    _shoppingOrderItem.setEscapedModel(escapedModel);
259            }
260    
261            public java.io.Serializable getPrimaryKeyObj() {
262                    return _shoppingOrderItem.getPrimaryKeyObj();
263            }
264    
265            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
266                    _shoppingOrderItem.setPrimaryKeyObj(primaryKeyObj);
267            }
268    
269            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
270                    return _shoppingOrderItem.getExpandoBridge();
271            }
272    
273            public void setExpandoBridgeAttributes(
274                    com.liferay.portal.service.ServiceContext serviceContext) {
275                    _shoppingOrderItem.setExpandoBridgeAttributes(serviceContext);
276            }
277    
278            @Override
279            public java.lang.Object clone() {
280                    return new ShoppingOrderItemWrapper((ShoppingOrderItem)_shoppingOrderItem.clone());
281            }
282    
283            public int compareTo(
284                    com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem) {
285                    return _shoppingOrderItem.compareTo(shoppingOrderItem);
286            }
287    
288            @Override
289            public int hashCode() {
290                    return _shoppingOrderItem.hashCode();
291            }
292    
293            public com.liferay.portal.model.CacheModel<com.liferay.portlet.shopping.model.ShoppingOrderItem> toCacheModel() {
294                    return _shoppingOrderItem.toCacheModel();
295            }
296    
297            public com.liferay.portlet.shopping.model.ShoppingOrderItem toEscapedModel() {
298                    return new ShoppingOrderItemWrapper(_shoppingOrderItem.toEscapedModel());
299            }
300    
301            @Override
302            public java.lang.String toString() {
303                    return _shoppingOrderItem.toString();
304            }
305    
306            public java.lang.String toXmlString() {
307                    return _shoppingOrderItem.toXmlString();
308            }
309    
310            public void persist()
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    _shoppingOrderItem.persist();
313            }
314    
315            public ShoppingOrderItem getWrappedShoppingOrderItem() {
316                    return _shoppingOrderItem;
317            }
318    
319            public void resetOriginalValues() {
320                    _shoppingOrderItem.resetOriginalValues();
321            }
322    
323            private ShoppingOrderItem _shoppingOrderItem;
324    }