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 @Override 084 public long getGroupId(); 085 086 /** 087 * Sets the group ID of this shopping cart. 088 * 089 * @param groupId the group ID of this shopping cart 090 */ 091 @Override 092 public void setGroupId(long groupId); 093 094 /** 095 * Returns the company ID of this shopping cart. 096 * 097 * @return the company ID of this shopping cart 098 */ 099 @Override 100 public long getCompanyId(); 101 102 /** 103 * Sets the company ID of this shopping cart. 104 * 105 * @param companyId the company ID of this shopping cart 106 */ 107 @Override 108 public void setCompanyId(long companyId); 109 110 /** 111 * Returns the user ID of this shopping cart. 112 * 113 * @return the user ID of this shopping cart 114 */ 115 @Override 116 public long getUserId(); 117 118 /** 119 * Sets the user ID of this shopping cart. 120 * 121 * @param userId the user ID of this shopping cart 122 */ 123 @Override 124 public void setUserId(long userId); 125 126 /** 127 * Returns the user uuid of this shopping cart. 128 * 129 * @return the user uuid of this shopping cart 130 * @throws SystemException if a system exception occurred 131 */ 132 @Override 133 public String getUserUuid() throws SystemException; 134 135 /** 136 * Sets the user uuid of this shopping cart. 137 * 138 * @param userUuid the user uuid of this shopping cart 139 */ 140 @Override 141 public void setUserUuid(String userUuid); 142 143 /** 144 * Returns the user name of this shopping cart. 145 * 146 * @return the user name of this shopping cart 147 */ 148 @AutoEscape 149 @Override 150 public String getUserName(); 151 152 /** 153 * Sets the user name of this shopping cart. 154 * 155 * @param userName the user name of this shopping cart 156 */ 157 @Override 158 public void setUserName(String userName); 159 160 /** 161 * Returns the create date of this shopping cart. 162 * 163 * @return the create date of this shopping cart 164 */ 165 @Override 166 public Date getCreateDate(); 167 168 /** 169 * Sets the create date of this shopping cart. 170 * 171 * @param createDate the create date of this shopping cart 172 */ 173 @Override 174 public void setCreateDate(Date createDate); 175 176 /** 177 * Returns the modified date of this shopping cart. 178 * 179 * @return the modified date of this shopping cart 180 */ 181 @Override 182 public Date getModifiedDate(); 183 184 /** 185 * Sets the modified date of this shopping cart. 186 * 187 * @param modifiedDate the modified date of this shopping cart 188 */ 189 @Override 190 public void setModifiedDate(Date modifiedDate); 191 192 /** 193 * Returns the item IDs of this shopping cart. 194 * 195 * @return the item IDs of this shopping cart 196 */ 197 @AutoEscape 198 public String getItemIds(); 199 200 /** 201 * Sets the item IDs of this shopping cart. 202 * 203 * @param itemIds the item IDs of this shopping cart 204 */ 205 public void setItemIds(String itemIds); 206 207 /** 208 * Returns the coupon codes of this shopping cart. 209 * 210 * @return the coupon codes of this shopping cart 211 */ 212 @AutoEscape 213 public String getCouponCodes(); 214 215 /** 216 * Sets the coupon codes of this shopping cart. 217 * 218 * @param couponCodes the coupon codes of this shopping cart 219 */ 220 public void setCouponCodes(String couponCodes); 221 222 /** 223 * Returns the alt shipping of this shopping cart. 224 * 225 * @return the alt shipping of this shopping cart 226 */ 227 public int getAltShipping(); 228 229 /** 230 * Sets the alt shipping of this shopping cart. 231 * 232 * @param altShipping the alt shipping of this shopping cart 233 */ 234 public void setAltShipping(int altShipping); 235 236 /** 237 * Returns the insure of this shopping cart. 238 * 239 * @return the insure of this shopping cart 240 */ 241 public boolean getInsure(); 242 243 /** 244 * Returns <code>true</code> if this shopping cart is insure. 245 * 246 * @return <code>true</code> if this shopping cart is insure; <code>false</code> otherwise 247 */ 248 public boolean isInsure(); 249 250 /** 251 * Sets whether this shopping cart is insure. 252 * 253 * @param insure the insure of this shopping cart 254 */ 255 public void setInsure(boolean insure); 256 257 @Override 258 public boolean isNew(); 259 260 @Override 261 public void setNew(boolean n); 262 263 @Override 264 public boolean isCachedModel(); 265 266 @Override 267 public void setCachedModel(boolean cachedModel); 268 269 @Override 270 public boolean isEscapedModel(); 271 272 @Override 273 public Serializable getPrimaryKeyObj(); 274 275 @Override 276 public void setPrimaryKeyObj(Serializable primaryKeyObj); 277 278 @Override 279 public ExpandoBridge getExpandoBridge(); 280 281 @Override 282 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 283 284 @Override 285 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 286 287 @Override 288 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 289 290 @Override 291 public Object clone(); 292 293 @Override 294 public int compareTo(ShoppingCart shoppingCart); 295 296 @Override 297 public int hashCode(); 298 299 @Override 300 public CacheModel<ShoppingCart> toCacheModel(); 301 302 @Override 303 public ShoppingCart toEscapedModel(); 304 305 @Override 306 public ShoppingCart toUnescapedModel(); 307 308 @Override 309 public String toString(); 310 311 @Override 312 public String toXmlString(); 313 }