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