1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  
28  import java.util.Date;
29  
30  /**
31   * <a href="ShoppingItemModel.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This interface is a model that represents the <code>ShoppingItem</code>
40   * table in the database.
41   * </p>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   * @see com.liferay.portlet.shopping.model.ShoppingItem
46   * @see com.liferay.portlet.shopping.model.impl.ShoppingItemImpl
47   * @see com.liferay.portlet.shopping.model.impl.ShoppingItemModelImpl
48   *
49   */
50  public interface ShoppingItemModel extends BaseModel<ShoppingItem> {
51      public long getPrimaryKey();
52  
53      public void setPrimaryKey(long pk);
54  
55      public long getItemId();
56  
57      public void setItemId(long itemId);
58  
59      public long getCompanyId();
60  
61      public void setCompanyId(long companyId);
62  
63      public long getUserId();
64  
65      public void setUserId(long userId);
66  
67      public String getUserUuid() throws SystemException;
68  
69      public void setUserUuid(String userUuid);
70  
71      public String getUserName();
72  
73      public void setUserName(String userName);
74  
75      public Date getCreateDate();
76  
77      public void setCreateDate(Date createDate);
78  
79      public Date getModifiedDate();
80  
81      public void setModifiedDate(Date modifiedDate);
82  
83      public long getCategoryId();
84  
85      public void setCategoryId(long categoryId);
86  
87      public String getSku();
88  
89      public void setSku(String sku);
90  
91      public String getName();
92  
93      public void setName(String name);
94  
95      public String getDescription();
96  
97      public void setDescription(String description);
98  
99      public String getProperties();
100 
101     public void setProperties(String properties);
102 
103     public boolean getFields();
104 
105     public boolean isFields();
106 
107     public void setFields(boolean fields);
108 
109     public String getFieldsQuantities();
110 
111     public void setFieldsQuantities(String fieldsQuantities);
112 
113     public int getMinQuantity();
114 
115     public void setMinQuantity(int minQuantity);
116 
117     public int getMaxQuantity();
118 
119     public void setMaxQuantity(int maxQuantity);
120 
121     public double getPrice();
122 
123     public void setPrice(double price);
124 
125     public double getDiscount();
126 
127     public void setDiscount(double discount);
128 
129     public boolean getTaxable();
130 
131     public boolean isTaxable();
132 
133     public void setTaxable(boolean taxable);
134 
135     public double getShipping();
136 
137     public void setShipping(double shipping);
138 
139     public boolean getUseShippingFormula();
140 
141     public boolean isUseShippingFormula();
142 
143     public void setUseShippingFormula(boolean useShippingFormula);
144 
145     public boolean getRequiresShipping();
146 
147     public boolean isRequiresShipping();
148 
149     public void setRequiresShipping(boolean requiresShipping);
150 
151     public int getStockQuantity();
152 
153     public void setStockQuantity(int stockQuantity);
154 
155     public boolean getFeatured();
156 
157     public boolean isFeatured();
158 
159     public void setFeatured(boolean featured);
160 
161     public boolean getSale();
162 
163     public boolean isSale();
164 
165     public void setSale(boolean sale);
166 
167     public boolean getSmallImage();
168 
169     public boolean isSmallImage();
170 
171     public void setSmallImage(boolean smallImage);
172 
173     public long getSmallImageId();
174 
175     public void setSmallImageId(long smallImageId);
176 
177     public String getSmallImageURL();
178 
179     public void setSmallImageURL(String smallImageURL);
180 
181     public boolean getMediumImage();
182 
183     public boolean isMediumImage();
184 
185     public void setMediumImage(boolean mediumImage);
186 
187     public long getMediumImageId();
188 
189     public void setMediumImageId(long mediumImageId);
190 
191     public String getMediumImageURL();
192 
193     public void setMediumImageURL(String mediumImageURL);
194 
195     public boolean getLargeImage();
196 
197     public boolean isLargeImage();
198 
199     public void setLargeImage(boolean largeImage);
200 
201     public long getLargeImageId();
202 
203     public void setLargeImageId(long largeImageId);
204 
205     public String getLargeImageURL();
206 
207     public void setLargeImageURL(String largeImageURL);
208 
209     public ShoppingItem toEscapedModel();
210 }