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.kernel.exception.SystemException;
021    import com.liferay.portal.model.BaseModel;
022    import com.liferay.portal.model.CacheModel;
023    import com.liferay.portal.model.GroupedModel;
024    import com.liferay.portal.service.ServiceContext;
025    
026    import com.liferay.portlet.expando.model.ExpandoBridge;
027    
028    import java.io.Serializable;
029    
030    import java.util.Date;
031    
032    /**
033     * The base model interface for the ShoppingCart service. Represents a row in the "ShoppingCart" database table, with each column mapped to a property of this class.
034     *
035     * <p>
036     * This interface and its corresponding implementation {@link com.liferay.portlet.shopping.model.impl.ShoppingCartModelImpl} 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.ShoppingCartImpl}.
037     * </p>
038     *
039     * @author Brian Wing Shun Chan
040     * @see ShoppingCart
041     * @see com.liferay.portlet.shopping.model.impl.ShoppingCartImpl
042     * @see com.liferay.portlet.shopping.model.impl.ShoppingCartModelImpl
043     * @generated
044     */
045    @ProviderType
046    public interface ShoppingCartModel extends BaseModel<ShoppingCart>, GroupedModel {
047            /*
048             * NOTE FOR DEVELOPERS:
049             *
050             * Never modify or reference this interface directly. All methods that expect a shopping cart model instance should use the {@link ShoppingCart} interface instead.
051             */
052    
053            /**
054             * Returns the primary key of this shopping cart.
055             *
056             * @return the primary key of this shopping cart
057             */
058            public long getPrimaryKey();
059    
060            /**
061             * Sets the primary key of this shopping cart.
062             *
063             * @param primaryKey the primary key of this shopping cart
064             */
065            public void setPrimaryKey(long primaryKey);
066    
067            /**
068             * Returns the cart ID of this shopping cart.
069             *
070             * @return the cart ID of this shopping cart
071             */
072            public long getCartId();
073    
074            /**
075             * Sets the cart ID of this shopping cart.
076             *
077             * @param cartId the cart ID of this shopping cart
078             */
079            public void setCartId(long cartId);
080    
081            /**
082             * Returns the group ID of this shopping cart.
083             *
084             * @return the group ID of this shopping cart
085             */
086            @Override
087            public long getGroupId();
088    
089            /**
090             * Sets the group ID of this shopping cart.
091             *
092             * @param groupId the group ID of this shopping cart
093             */
094            @Override
095            public void setGroupId(long groupId);
096    
097            /**
098             * Returns the company ID of this shopping cart.
099             *
100             * @return the company ID of this shopping cart
101             */
102            @Override
103            public long getCompanyId();
104    
105            /**
106             * Sets the company ID of this shopping cart.
107             *
108             * @param companyId the company ID of this shopping cart
109             */
110            @Override
111            public void setCompanyId(long companyId);
112    
113            /**
114             * Returns the user ID of this shopping cart.
115             *
116             * @return the user ID of this shopping cart
117             */
118            @Override
119            public long getUserId();
120    
121            /**
122             * Sets the user ID of this shopping cart.
123             *
124             * @param userId the user ID of this shopping cart
125             */
126            @Override
127            public void setUserId(long userId);
128    
129            /**
130             * Returns the user uuid of this shopping cart.
131             *
132             * @return the user uuid of this shopping cart
133             * @throws SystemException if a system exception occurred
134             */
135            @Override
136            public String getUserUuid() throws SystemException;
137    
138            /**
139             * Sets the user uuid of this shopping cart.
140             *
141             * @param userUuid the user uuid of this shopping cart
142             */
143            @Override
144            public void setUserUuid(String userUuid);
145    
146            /**
147             * Returns the user name of this shopping cart.
148             *
149             * @return the user name of this shopping cart
150             */
151            @AutoEscape
152            @Override
153            public String getUserName();
154    
155            /**
156             * Sets the user name of this shopping cart.
157             *
158             * @param userName the user name of this shopping cart
159             */
160            @Override
161            public void setUserName(String userName);
162    
163            /**
164             * Returns the create date of this shopping cart.
165             *
166             * @return the create date of this shopping cart
167             */
168            @Override
169            public Date getCreateDate();
170    
171            /**
172             * Sets the create date of this shopping cart.
173             *
174             * @param createDate the create date of this shopping cart
175             */
176            @Override
177            public void setCreateDate(Date createDate);
178    
179            /**
180             * Returns the modified date of this shopping cart.
181             *
182             * @return the modified date of this shopping cart
183             */
184            @Override
185            public Date getModifiedDate();
186    
187            /**
188             * Sets the modified date of this shopping cart.
189             *
190             * @param modifiedDate the modified date of this shopping cart
191             */
192            @Override
193            public void setModifiedDate(Date modifiedDate);
194    
195            /**
196             * Returns the item IDs of this shopping cart.
197             *
198             * @return the item IDs of this shopping cart
199             */
200            @AutoEscape
201            public String getItemIds();
202    
203            /**
204             * Sets the item IDs of this shopping cart.
205             *
206             * @param itemIds the item IDs of this shopping cart
207             */
208            public void setItemIds(String itemIds);
209    
210            /**
211             * Returns the coupon codes of this shopping cart.
212             *
213             * @return the coupon codes of this shopping cart
214             */
215            @AutoEscape
216            public String getCouponCodes();
217    
218            /**
219             * Sets the coupon codes of this shopping cart.
220             *
221             * @param couponCodes the coupon codes of this shopping cart
222             */
223            public void setCouponCodes(String couponCodes);
224    
225            /**
226             * Returns the alt shipping of this shopping cart.
227             *
228             * @return the alt shipping of this shopping cart
229             */
230            public int getAltShipping();
231    
232            /**
233             * Sets the alt shipping of this shopping cart.
234             *
235             * @param altShipping the alt shipping of this shopping cart
236             */
237            public void setAltShipping(int altShipping);
238    
239            /**
240             * Returns the insure of this shopping cart.
241             *
242             * @return the insure of this shopping cart
243             */
244            public boolean getInsure();
245    
246            /**
247             * Returns <code>true</code> if this shopping cart is insure.
248             *
249             * @return <code>true</code> if this shopping cart is insure; <code>false</code> otherwise
250             */
251            public boolean isInsure();
252    
253            /**
254             * Sets whether this shopping cart is insure.
255             *
256             * @param insure the insure of this shopping cart
257             */
258            public void setInsure(boolean insure);
259    
260            @Override
261            public boolean isNew();
262    
263            @Override
264            public void setNew(boolean n);
265    
266            @Override
267            public boolean isCachedModel();
268    
269            @Override
270            public void setCachedModel(boolean cachedModel);
271    
272            @Override
273            public boolean isEscapedModel();
274    
275            @Override
276            public Serializable getPrimaryKeyObj();
277    
278            @Override
279            public void setPrimaryKeyObj(Serializable primaryKeyObj);
280    
281            @Override
282            public ExpandoBridge getExpandoBridge();
283    
284            @Override
285            public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
286    
287            @Override
288            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
289    
290            @Override
291            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
292    
293            @Override
294            public Object clone();
295    
296            @Override
297            public int compareTo(ShoppingCart shoppingCart);
298    
299            @Override
300            public int hashCode();
301    
302            @Override
303            public CacheModel<ShoppingCart> toCacheModel();
304    
305            @Override
306            public ShoppingCart toEscapedModel();
307    
308            @Override
309            public ShoppingCart toUnescapedModel();
310    
311            @Override
312            public String toString();
313    
314            @Override
315            public String toXmlString();
316    }