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