1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.shopping.model;
24  
25  import com.liferay.portal.SystemException;
26  import com.liferay.portal.model.BaseModel;
27  import com.liferay.portal.service.ServiceContext;
28  
29  import com.liferay.portlet.expando.model.ExpandoBridge;
30  
31  import java.io.Serializable;
32  
33  import java.util.Date;
34  
35  /**
36   * <a href="ShoppingItemModel.java.html"><b><i>View Source</i></b></a>
37   *
38   * <p>
39   * ServiceBuilder generated this class. Modifications in this class will be
40   * overwritten the next time is generated.
41   * </p>
42   *
43   * <p>
44   * This interface is a model that represents the ShoppingItem table in the
45   * database.
46   * </p>
47   *
48   * @author    Brian Wing Shun Chan
49   * @see       ShoppingItem
50   * @see       com.liferay.portlet.shopping.model.impl.ShoppingItemImpl
51   * @see       com.liferay.portlet.shopping.model.impl.ShoppingItemModelImpl
52   * @generated
53   */
54  public interface ShoppingItemModel extends BaseModel<ShoppingItem> {
55      public long getPrimaryKey();
56  
57      public void setPrimaryKey(long pk);
58  
59      public long getItemId();
60  
61      public void setItemId(long itemId);
62  
63      public long getCompanyId();
64  
65      public void setCompanyId(long companyId);
66  
67      public long getUserId();
68  
69      public void setUserId(long userId);
70  
71      public String getUserUuid() throws SystemException;
72  
73      public void setUserUuid(String userUuid);
74  
75      public String getUserName();
76  
77      public void setUserName(String userName);
78  
79      public Date getCreateDate();
80  
81      public void setCreateDate(Date createDate);
82  
83      public Date getModifiedDate();
84  
85      public void setModifiedDate(Date modifiedDate);
86  
87      public long getCategoryId();
88  
89      public void setCategoryId(long categoryId);
90  
91      public String getSku();
92  
93      public void setSku(String sku);
94  
95      public String getName();
96  
97      public void setName(String name);
98  
99      public String getDescription();
100 
101     public void setDescription(String description);
102 
103     public String getProperties();
104 
105     public void setProperties(String properties);
106 
107     public boolean getFields();
108 
109     public boolean isFields();
110 
111     public void setFields(boolean fields);
112 
113     public String getFieldsQuantities();
114 
115     public void setFieldsQuantities(String fieldsQuantities);
116 
117     public int getMinQuantity();
118 
119     public void setMinQuantity(int minQuantity);
120 
121     public int getMaxQuantity();
122 
123     public void setMaxQuantity(int maxQuantity);
124 
125     public double getPrice();
126 
127     public void setPrice(double price);
128 
129     public double getDiscount();
130 
131     public void setDiscount(double discount);
132 
133     public boolean getTaxable();
134 
135     public boolean isTaxable();
136 
137     public void setTaxable(boolean taxable);
138 
139     public double getShipping();
140 
141     public void setShipping(double shipping);
142 
143     public boolean getUseShippingFormula();
144 
145     public boolean isUseShippingFormula();
146 
147     public void setUseShippingFormula(boolean useShippingFormula);
148 
149     public boolean getRequiresShipping();
150 
151     public boolean isRequiresShipping();
152 
153     public void setRequiresShipping(boolean requiresShipping);
154 
155     public int getStockQuantity();
156 
157     public void setStockQuantity(int stockQuantity);
158 
159     public boolean getFeatured();
160 
161     public boolean isFeatured();
162 
163     public void setFeatured(boolean featured);
164 
165     public boolean getSale();
166 
167     public boolean isSale();
168 
169     public void setSale(boolean sale);
170 
171     public boolean getSmallImage();
172 
173     public boolean isSmallImage();
174 
175     public void setSmallImage(boolean smallImage);
176 
177     public long getSmallImageId();
178 
179     public void setSmallImageId(long smallImageId);
180 
181     public String getSmallImageURL();
182 
183     public void setSmallImageURL(String smallImageURL);
184 
185     public boolean getMediumImage();
186 
187     public boolean isMediumImage();
188 
189     public void setMediumImage(boolean mediumImage);
190 
191     public long getMediumImageId();
192 
193     public void setMediumImageId(long mediumImageId);
194 
195     public String getMediumImageURL();
196 
197     public void setMediumImageURL(String mediumImageURL);
198 
199     public boolean getLargeImage();
200 
201     public boolean isLargeImage();
202 
203     public void setLargeImage(boolean largeImage);
204 
205     public long getLargeImageId();
206 
207     public void setLargeImageId(long largeImageId);
208 
209     public String getLargeImageURL();
210 
211     public void setLargeImageURL(String largeImageURL);
212 
213     public ShoppingItem toEscapedModel();
214 
215     public boolean isNew();
216 
217     public boolean setNew(boolean n);
218 
219     public boolean isCachedModel();
220 
221     public void setCachedModel(boolean cachedModel);
222 
223     public boolean isEscapedModel();
224 
225     public void setEscapedModel(boolean escapedModel);
226 
227     public Serializable getPrimaryKeyObj();
228 
229     public ExpandoBridge getExpandoBridge();
230 
231     public void setExpandoBridgeAttributes(ServiceContext serviceContext);
232 
233     public Object clone();
234 
235     public int compareTo(ShoppingItem shoppingItem);
236 
237     public int hashCode();
238 
239     public String toString();
240 
241     public String toXmlString();
242 }