001    /**
002     * Copyright (c) 2000-2010 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.annotation.AutoEscape;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.model.BaseModel;
020    import com.liferay.portal.service.ServiceContext;
021    
022    import com.liferay.portlet.expando.model.ExpandoBridge;
023    
024    import java.io.Serializable;
025    
026    import java.util.Date;
027    
028    /**
029     * <p>
030     * This interface is a model that represents the ShoppingCart table in the
031     * database.
032     * </p>
033     *
034     * @author    Brian Wing Shun Chan
035     * @see       ShoppingCart
036     * @see       com.liferay.portlet.shopping.model.impl.ShoppingCartImpl
037     * @see       com.liferay.portlet.shopping.model.impl.ShoppingCartModelImpl
038     * @generated
039     */
040    public interface ShoppingCartModel extends BaseModel<ShoppingCart> {
041            public long getPrimaryKey();
042    
043            public void setPrimaryKey(long pk);
044    
045            public long getCartId();
046    
047            public void setCartId(long cartId);
048    
049            public long getGroupId();
050    
051            public void setGroupId(long groupId);
052    
053            public long getCompanyId();
054    
055            public void setCompanyId(long companyId);
056    
057            public long getUserId();
058    
059            public void setUserId(long userId);
060    
061            public String getUserUuid() throws SystemException;
062    
063            public void setUserUuid(String userUuid);
064    
065            @AutoEscape
066            public String getUserName();
067    
068            public void setUserName(String userName);
069    
070            public Date getCreateDate();
071    
072            public void setCreateDate(Date createDate);
073    
074            public Date getModifiedDate();
075    
076            public void setModifiedDate(Date modifiedDate);
077    
078            @AutoEscape
079            public String getItemIds();
080    
081            public void setItemIds(String itemIds);
082    
083            @AutoEscape
084            public String getCouponCodes();
085    
086            public void setCouponCodes(String couponCodes);
087    
088            public int getAltShipping();
089    
090            public void setAltShipping(int altShipping);
091    
092            public boolean getInsure();
093    
094            public boolean isInsure();
095    
096            public void setInsure(boolean insure);
097    
098            public ShoppingCart toEscapedModel();
099    
100            public boolean isNew();
101    
102            public void setNew(boolean n);
103    
104            public boolean isCachedModel();
105    
106            public void setCachedModel(boolean cachedModel);
107    
108            public boolean isEscapedModel();
109    
110            public void setEscapedModel(boolean escapedModel);
111    
112            public Serializable getPrimaryKeyObj();
113    
114            public ExpandoBridge getExpandoBridge();
115    
116            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
117    
118            public Object clone();
119    
120            public int compareTo(ShoppingCart shoppingCart);
121    
122            public int hashCode();
123    
124            public String toString();
125    
126            public String toXmlString();
127    }