001    /**
002     * Copyright (c) 2000-2013 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.BaseModel;
018    import com.liferay.portal.model.CacheModel;
019    import com.liferay.portal.service.ServiceContext;
020    
021    import com.liferay.portlet.expando.model.ExpandoBridge;
022    
023    import java.io.Serializable;
024    
025    /**
026     * The base model interface for the ShoppingItemPrice service. Represents a row in the "ShoppingItemPrice" database table, with each column mapped to a property of this class.
027     *
028     * <p>
029     * This interface and its corresponding implementation {@link com.liferay.portlet.shopping.model.impl.ShoppingItemPriceModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portlet.shopping.model.impl.ShoppingItemPriceImpl}.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see ShoppingItemPrice
034     * @see com.liferay.portlet.shopping.model.impl.ShoppingItemPriceImpl
035     * @see com.liferay.portlet.shopping.model.impl.ShoppingItemPriceModelImpl
036     * @generated
037     */
038    public interface ShoppingItemPriceModel extends BaseModel<ShoppingItemPrice> {
039            /*
040             * NOTE FOR DEVELOPERS:
041             *
042             * Never modify or reference this interface directly. All methods that expect a shopping item price model instance should use the {@link ShoppingItemPrice} interface instead.
043             */
044    
045            /**
046             * Returns the primary key of this shopping item price.
047             *
048             * @return the primary key of this shopping item price
049             */
050            public long getPrimaryKey();
051    
052            /**
053             * Sets the primary key of this shopping item price.
054             *
055             * @param primaryKey the primary key of this shopping item price
056             */
057            public void setPrimaryKey(long primaryKey);
058    
059            /**
060             * Returns the item price ID of this shopping item price.
061             *
062             * @return the item price ID of this shopping item price
063             */
064            public long getItemPriceId();
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    
073            /**
074             * Returns the item ID of this shopping item price.
075             *
076             * @return the item ID of this shopping item price
077             */
078            public long getItemId();
079    
080            /**
081             * Sets the item ID of this shopping item price.
082             *
083             * @param itemId the item ID of this shopping item price
084             */
085            public void setItemId(long itemId);
086    
087            /**
088             * Returns the min quantity of this shopping item price.
089             *
090             * @return the min quantity of this shopping item price
091             */
092            public int getMinQuantity();
093    
094            /**
095             * Sets the min quantity of this shopping item price.
096             *
097             * @param minQuantity the min quantity of this shopping item price
098             */
099            public void setMinQuantity(int minQuantity);
100    
101            /**
102             * Returns the max quantity of this shopping item price.
103             *
104             * @return the max quantity of this shopping item price
105             */
106            public int getMaxQuantity();
107    
108            /**
109             * Sets the max quantity of this shopping item price.
110             *
111             * @param maxQuantity the max quantity of this shopping item price
112             */
113            public void setMaxQuantity(int maxQuantity);
114    
115            /**
116             * Returns the price of this shopping item price.
117             *
118             * @return the price of this shopping item price
119             */
120            public double getPrice();
121    
122            /**
123             * Sets the price of this shopping item price.
124             *
125             * @param price the price of this shopping item price
126             */
127            public void setPrice(double price);
128    
129            /**
130             * Returns the discount of this shopping item price.
131             *
132             * @return the discount of this shopping item price
133             */
134            public double getDiscount();
135    
136            /**
137             * Sets the discount of this shopping item price.
138             *
139             * @param discount the discount of this shopping item price
140             */
141            public void setDiscount(double discount);
142    
143            /**
144             * Returns the taxable of this shopping item price.
145             *
146             * @return the taxable of this shopping item price
147             */
148            public boolean getTaxable();
149    
150            /**
151             * Returns <code>true</code> if this shopping item price is taxable.
152             *
153             * @return <code>true</code> if this shopping item price is taxable; <code>false</code> otherwise
154             */
155            public boolean isTaxable();
156    
157            /**
158             * Sets whether this shopping item price is taxable.
159             *
160             * @param taxable the taxable of this shopping item price
161             */
162            public void setTaxable(boolean taxable);
163    
164            /**
165             * Returns the shipping of this shopping item price.
166             *
167             * @return the shipping of this shopping item price
168             */
169            public double getShipping();
170    
171            /**
172             * Sets the shipping of this shopping item price.
173             *
174             * @param shipping the shipping of this shopping item price
175             */
176            public void setShipping(double shipping);
177    
178            /**
179             * Returns the use shipping formula of this shopping item price.
180             *
181             * @return the use shipping formula of this shopping item price
182             */
183            public boolean getUseShippingFormula();
184    
185            /**
186             * Returns <code>true</code> if this shopping item price is use shipping formula.
187             *
188             * @return <code>true</code> if this shopping item price is use shipping formula; <code>false</code> otherwise
189             */
190            public boolean isUseShippingFormula();
191    
192            /**
193             * Sets whether this shopping item price is use shipping formula.
194             *
195             * @param useShippingFormula the use shipping formula of this shopping item price
196             */
197            public void setUseShippingFormula(boolean useShippingFormula);
198    
199            /**
200             * Returns the status of this shopping item price.
201             *
202             * @return the status of this shopping item price
203             */
204            public int getStatus();
205    
206            /**
207             * Sets the status of this shopping item price.
208             *
209             * @param status the status of this shopping item price
210             */
211            public void setStatus(int status);
212    
213            public boolean isNew();
214    
215            public void setNew(boolean n);
216    
217            public boolean isCachedModel();
218    
219            public void setCachedModel(boolean cachedModel);
220    
221            public boolean isEscapedModel();
222    
223            public Serializable getPrimaryKeyObj();
224    
225            public void setPrimaryKeyObj(Serializable primaryKeyObj);
226    
227            public ExpandoBridge getExpandoBridge();
228    
229            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
230    
231            public Object clone();
232    
233            public int compareTo(ShoppingItemPrice shoppingItemPrice);
234    
235            public int hashCode();
236    
237            public CacheModel<ShoppingItemPrice> toCacheModel();
238    
239            public ShoppingItemPrice toEscapedModel();
240    
241            public ShoppingItemPrice toUnescapedModel();
242    
243            public String toString();
244    
245            public String toXmlString();
246    }