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