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