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