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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.AutoEscape;
020    import com.liferay.portal.model.BaseModel;
021    import com.liferay.portal.model.CacheModel;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.expando.model.ExpandoBridge;
025    
026    import java.io.Serializable;
027    
028    import java.util.Date;
029    
030    /**
031     * The base model interface for the ShoppingOrderItem service. Represents a row in the "ShoppingOrderItem" database table, with each column mapped to a property of this class.
032     *
033     * <p>
034     * This interface and its corresponding implementation {@link com.liferay.portlet.shopping.model.impl.ShoppingOrderItemModelImpl} 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.ShoppingOrderItemImpl}.
035     * </p>
036     *
037     * @author Brian Wing Shun Chan
038     * @see ShoppingOrderItem
039     * @see com.liferay.portlet.shopping.model.impl.ShoppingOrderItemImpl
040     * @see com.liferay.portlet.shopping.model.impl.ShoppingOrderItemModelImpl
041     * @generated
042     */
043    @ProviderType
044    public interface ShoppingOrderItemModel extends BaseModel<ShoppingOrderItem> {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * Never modify or reference this interface directly. All methods that expect a shopping order item model instance should use the {@link ShoppingOrderItem} interface instead.
049             */
050    
051            /**
052             * Returns the primary key of this shopping order item.
053             *
054             * @return the primary key of this shopping order item
055             */
056            public long getPrimaryKey();
057    
058            /**
059             * Sets the primary key of this shopping order item.
060             *
061             * @param primaryKey the primary key of this shopping order item
062             */
063            public void setPrimaryKey(long primaryKey);
064    
065            /**
066             * Returns the order item ID of this shopping order item.
067             *
068             * @return the order item ID of this shopping order item
069             */
070            public long getOrderItemId();
071    
072            /**
073             * Sets the order item ID of this shopping order item.
074             *
075             * @param orderItemId the order item ID of this shopping order item
076             */
077            public void setOrderItemId(long orderItemId);
078    
079            /**
080             * Returns the order ID of this shopping order item.
081             *
082             * @return the order ID of this shopping order item
083             */
084            public long getOrderId();
085    
086            /**
087             * Sets the order ID of this shopping order item.
088             *
089             * @param orderId the order ID of this shopping order item
090             */
091            public void setOrderId(long orderId);
092    
093            /**
094             * Returns the item ID of this shopping order item.
095             *
096             * @return the item ID of this shopping order item
097             */
098            @AutoEscape
099            public String getItemId();
100    
101            /**
102             * Sets the item ID of this shopping order item.
103             *
104             * @param itemId the item ID of this shopping order item
105             */
106            public void setItemId(String itemId);
107    
108            /**
109             * Returns the sku of this shopping order item.
110             *
111             * @return the sku of this shopping order item
112             */
113            @AutoEscape
114            public String getSku();
115    
116            /**
117             * Sets the sku of this shopping order item.
118             *
119             * @param sku the sku of this shopping order item
120             */
121            public void setSku(String sku);
122    
123            /**
124             * Returns the name of this shopping order item.
125             *
126             * @return the name of this shopping order item
127             */
128            @AutoEscape
129            public String getName();
130    
131            /**
132             * Sets the name of this shopping order item.
133             *
134             * @param name the name of this shopping order item
135             */
136            public void setName(String name);
137    
138            /**
139             * Returns the description of this shopping order item.
140             *
141             * @return the description of this shopping order item
142             */
143            @AutoEscape
144            public String getDescription();
145    
146            /**
147             * Sets the description of this shopping order item.
148             *
149             * @param description the description of this shopping order item
150             */
151            public void setDescription(String description);
152    
153            /**
154             * Returns the properties of this shopping order item.
155             *
156             * @return the properties of this shopping order item
157             */
158            @AutoEscape
159            public String getProperties();
160    
161            /**
162             * Sets the properties of this shopping order item.
163             *
164             * @param properties the properties of this shopping order item
165             */
166            public void setProperties(String properties);
167    
168            /**
169             * Returns the price of this shopping order item.
170             *
171             * @return the price of this shopping order item
172             */
173            public double getPrice();
174    
175            /**
176             * Sets the price of this shopping order item.
177             *
178             * @param price the price of this shopping order item
179             */
180            public void setPrice(double price);
181    
182            /**
183             * Returns the quantity of this shopping order item.
184             *
185             * @return the quantity of this shopping order item
186             */
187            public int getQuantity();
188    
189            /**
190             * Sets the quantity of this shopping order item.
191             *
192             * @param quantity the quantity of this shopping order item
193             */
194            public void setQuantity(int quantity);
195    
196            /**
197             * Returns the shipped date of this shopping order item.
198             *
199             * @return the shipped date of this shopping order item
200             */
201            public Date getShippedDate();
202    
203            /**
204             * Sets the shipped date of this shopping order item.
205             *
206             * @param shippedDate the shipped date of this shopping order item
207             */
208            public void setShippedDate(Date shippedDate);
209    
210            @Override
211            public boolean isNew();
212    
213            @Override
214            public void setNew(boolean n);
215    
216            @Override
217            public boolean isCachedModel();
218    
219            @Override
220            public void setCachedModel(boolean cachedModel);
221    
222            @Override
223            public boolean isEscapedModel();
224    
225            @Override
226            public Serializable getPrimaryKeyObj();
227    
228            @Override
229            public void setPrimaryKeyObj(Serializable primaryKeyObj);
230    
231            @Override
232            public ExpandoBridge getExpandoBridge();
233    
234            @Override
235            public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
236    
237            @Override
238            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
239    
240            @Override
241            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
242    
243            @Override
244            public Object clone();
245    
246            @Override
247            public int compareTo(ShoppingOrderItem shoppingOrderItem);
248    
249            @Override
250            public int hashCode();
251    
252            @Override
253            public CacheModel<ShoppingOrderItem> toCacheModel();
254    
255            @Override
256            public ShoppingOrderItem toEscapedModel();
257    
258            @Override
259            public ShoppingOrderItem toUnescapedModel();
260    
261            @Override
262            public String toString();
263    
264            @Override
265            public String toXmlString();
266    }