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.model.BaseModel; 019 import com.liferay.portal.model.CacheModel; 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 * The base model interface for the ShoppingOrderItem service. Represents a row in the "ShoppingOrderItem" database table, with each column mapped to a property of this class. 030 * 031 * <p> 032 * This interface and its corresponding implementation {@link com.liferay.portlet.shopping.model.impl.ShoppingOrderItemModelImpl} 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.ShoppingOrderItemImpl}. 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see ShoppingOrderItem 037 * @see com.liferay.portlet.shopping.model.impl.ShoppingOrderItemImpl 038 * @see com.liferay.portlet.shopping.model.impl.ShoppingOrderItemModelImpl 039 * @generated 040 */ 041 public interface ShoppingOrderItemModel extends BaseModel<ShoppingOrderItem> { 042 /* 043 * NOTE FOR DEVELOPERS: 044 * 045 * Never modify or reference this interface directly. All methods that expect a shopping order item model instance should use the {@link ShoppingOrderItem} interface instead. 046 */ 047 048 /** 049 * Returns the primary key of this shopping order item. 050 * 051 * @return the primary key of this shopping order item 052 */ 053 public long getPrimaryKey(); 054 055 /** 056 * Sets the primary key of this shopping order item. 057 * 058 * @param primaryKey the primary key of this shopping order item 059 */ 060 public void setPrimaryKey(long primaryKey); 061 062 /** 063 * Returns the order item ID of this shopping order item. 064 * 065 * @return the order item ID of this shopping order item 066 */ 067 public long getOrderItemId(); 068 069 /** 070 * Sets the order item ID of this shopping order item. 071 * 072 * @param orderItemId the order item ID of this shopping order item 073 */ 074 public void setOrderItemId(long orderItemId); 075 076 /** 077 * Returns the order ID of this shopping order item. 078 * 079 * @return the order ID of this shopping order item 080 */ 081 public long getOrderId(); 082 083 /** 084 * Sets the order ID of this shopping order item. 085 * 086 * @param orderId the order ID of this shopping order item 087 */ 088 public void setOrderId(long orderId); 089 090 /** 091 * Returns the item ID of this shopping order item. 092 * 093 * @return the item ID of this shopping order item 094 */ 095 @AutoEscape 096 public String getItemId(); 097 098 /** 099 * Sets the item ID of this shopping order item. 100 * 101 * @param itemId the item ID of this shopping order item 102 */ 103 public void setItemId(String itemId); 104 105 /** 106 * Returns the sku of this shopping order item. 107 * 108 * @return the sku of this shopping order item 109 */ 110 @AutoEscape 111 public String getSku(); 112 113 /** 114 * Sets the sku of this shopping order item. 115 * 116 * @param sku the sku of this shopping order item 117 */ 118 public void setSku(String sku); 119 120 /** 121 * Returns the name of this shopping order item. 122 * 123 * @return the name of this shopping order item 124 */ 125 @AutoEscape 126 public String getName(); 127 128 /** 129 * Sets the name of this shopping order item. 130 * 131 * @param name the name of this shopping order item 132 */ 133 public void setName(String name); 134 135 /** 136 * Returns the description of this shopping order item. 137 * 138 * @return the description of this shopping order item 139 */ 140 @AutoEscape 141 public String getDescription(); 142 143 /** 144 * Sets the description of this shopping order item. 145 * 146 * @param description the description of this shopping order item 147 */ 148 public void setDescription(String description); 149 150 /** 151 * Returns the properties of this shopping order item. 152 * 153 * @return the properties of this shopping order item 154 */ 155 @AutoEscape 156 public String getProperties(); 157 158 /** 159 * Sets the properties of this shopping order item. 160 * 161 * @param properties the properties of this shopping order item 162 */ 163 public void setProperties(String properties); 164 165 /** 166 * Returns the price of this shopping order item. 167 * 168 * @return the price of this shopping order item 169 */ 170 public double getPrice(); 171 172 /** 173 * Sets the price of this shopping order item. 174 * 175 * @param price the price of this shopping order item 176 */ 177 public void setPrice(double price); 178 179 /** 180 * Returns the quantity of this shopping order item. 181 * 182 * @return the quantity of this shopping order item 183 */ 184 public int getQuantity(); 185 186 /** 187 * Sets the quantity of this shopping order item. 188 * 189 * @param quantity the quantity of this shopping order item 190 */ 191 public void setQuantity(int quantity); 192 193 /** 194 * Returns the shipped date of this shopping order item. 195 * 196 * @return the shipped date of this shopping order item 197 */ 198 public Date getShippedDate(); 199 200 /** 201 * Sets the shipped date of this shopping order item. 202 * 203 * @param shippedDate the shipped date of this shopping order item 204 */ 205 public void setShippedDate(Date shippedDate); 206 207 public boolean isNew(); 208 209 public void setNew(boolean n); 210 211 public boolean isCachedModel(); 212 213 public void setCachedModel(boolean cachedModel); 214 215 public boolean isEscapedModel(); 216 217 public Serializable getPrimaryKeyObj(); 218 219 public void setPrimaryKeyObj(Serializable primaryKeyObj); 220 221 public ExpandoBridge getExpandoBridge(); 222 223 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 224 225 public Object clone(); 226 227 public int compareTo(ShoppingOrderItem shoppingOrderItem); 228 229 public int hashCode(); 230 231 public CacheModel<ShoppingOrderItem> toCacheModel(); 232 233 public ShoppingOrderItem toEscapedModel(); 234 235 public ShoppingOrderItem toUnescapedModel(); 236 237 public String toString(); 238 239 public String toXmlString(); 240 }