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.model.BaseModel; 018 import com.liferay.portal.service.ServiceContext; 019 020 import com.liferay.portlet.expando.model.ExpandoBridge; 021 022 import java.io.Serializable; 023 024 /** 025 * The base model interface for the ShoppingItemPrice service. Represents a row in the "ShoppingItemPrice" database table, with each column mapped to a property of this class. 026 * 027 * <p> 028 * This interface and its corresponding implementation {@link com.liferay.portlet.shopping.model.impl.ShoppingItemPriceModelImpl} 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.ShoppingItemPriceImpl}. 029 * </p> 030 * 031 * <p> 032 * Never modify or reference this interface directly. All methods that expect a shopping item price model instance should use the {@link ShoppingItemPrice} interface instead. 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see ShoppingItemPrice 037 * @see com.liferay.portlet.shopping.model.impl.ShoppingItemPriceImpl 038 * @see com.liferay.portlet.shopping.model.impl.ShoppingItemPriceModelImpl 039 * @generated 040 */ 041 public interface ShoppingItemPriceModel extends BaseModel<ShoppingItemPrice> { 042 /** 043 * Gets the primary key of this shopping item price. 044 * 045 * @return the primary key of this shopping item price 046 */ 047 public long getPrimaryKey(); 048 049 /** 050 * Sets the primary key of this shopping item price 051 * 052 * @param pk the primary key of this shopping item price 053 */ 054 public void setPrimaryKey(long pk); 055 056 /** 057 * Gets the item price id of this shopping item price. 058 * 059 * @return the item price id of this shopping item price 060 */ 061 public long getItemPriceId(); 062 063 /** 064 * Sets the item price id of this shopping item price. 065 * 066 * @param itemPriceId the item price id of this shopping item price 067 */ 068 public void setItemPriceId(long itemPriceId); 069 070 /** 071 * Gets the item id of this shopping item price. 072 * 073 * @return the item id of this shopping item price 074 */ 075 public long getItemId(); 076 077 /** 078 * Sets the item id of this shopping item price. 079 * 080 * @param itemId the item id of this shopping item price 081 */ 082 public void setItemId(long itemId); 083 084 /** 085 * Gets the min quantity of this shopping item price. 086 * 087 * @return the min quantity of this shopping item price 088 */ 089 public int getMinQuantity(); 090 091 /** 092 * Sets the min quantity of this shopping item price. 093 * 094 * @param minQuantity the min quantity of this shopping item price 095 */ 096 public void setMinQuantity(int minQuantity); 097 098 /** 099 * Gets the max quantity of this shopping item price. 100 * 101 * @return the max quantity of this shopping item price 102 */ 103 public int getMaxQuantity(); 104 105 /** 106 * Sets the max quantity of this shopping item price. 107 * 108 * @param maxQuantity the max quantity of this shopping item price 109 */ 110 public void setMaxQuantity(int maxQuantity); 111 112 /** 113 * Gets the price of this shopping item price. 114 * 115 * @return the price of this shopping item price 116 */ 117 public double getPrice(); 118 119 /** 120 * Sets the price of this shopping item price. 121 * 122 * @param price the price of this shopping item price 123 */ 124 public void setPrice(double price); 125 126 /** 127 * Gets the discount of this shopping item price. 128 * 129 * @return the discount of this shopping item price 130 */ 131 public double getDiscount(); 132 133 /** 134 * Sets the discount of this shopping item price. 135 * 136 * @param discount the discount of this shopping item price 137 */ 138 public void setDiscount(double discount); 139 140 /** 141 * Gets the taxable of this shopping item price. 142 * 143 * @return the taxable of this shopping item price 144 */ 145 public boolean getTaxable(); 146 147 /** 148 * Determines whether this shopping item price is taxable. 149 * 150 * @return whether this shopping item price is taxable 151 */ 152 public boolean isTaxable(); 153 154 /** 155 * Sets whether this {$entity.humanName} is taxable. 156 * 157 * @param taxable the taxable of this shopping item price 158 */ 159 public void setTaxable(boolean taxable); 160 161 /** 162 * Gets the shipping of this shopping item price. 163 * 164 * @return the shipping of this shopping item price 165 */ 166 public double getShipping(); 167 168 /** 169 * Sets the shipping of this shopping item price. 170 * 171 * @param shipping the shipping of this shopping item price 172 */ 173 public void setShipping(double shipping); 174 175 /** 176 * Gets the use shipping formula of this shopping item price. 177 * 178 * @return the use shipping formula of this shopping item price 179 */ 180 public boolean getUseShippingFormula(); 181 182 /** 183 * Determines whether this shopping item price is use shipping formula. 184 * 185 * @return whether this shopping item price is use shipping formula 186 */ 187 public boolean isUseShippingFormula(); 188 189 /** 190 * Sets whether this {$entity.humanName} is use shipping formula. 191 * 192 * @param useShippingFormula the use shipping formula of this shopping item price 193 */ 194 public void setUseShippingFormula(boolean useShippingFormula); 195 196 /** 197 * Gets the status of this shopping item price. 198 * 199 * @return the status of this shopping item price 200 */ 201 public int getStatus(); 202 203 /** 204 * Sets the status of this shopping item price. 205 * 206 * @param status the status of this shopping item price 207 */ 208 public void setStatus(int status); 209 210 /** 211 * Gets a copy of this shopping item price as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}. 212 * 213 * @return the escaped model instance 214 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler 215 */ 216 public ShoppingItemPrice toEscapedModel(); 217 218 public boolean isNew(); 219 220 public void setNew(boolean n); 221 222 public boolean isCachedModel(); 223 224 public void setCachedModel(boolean cachedModel); 225 226 public boolean isEscapedModel(); 227 228 public void setEscapedModel(boolean escapedModel); 229 230 public Serializable getPrimaryKeyObj(); 231 232 public ExpandoBridge getExpandoBridge(); 233 234 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 235 236 public Object clone(); 237 238 public int compareTo(ShoppingItemPrice shoppingItemPrice); 239 240 public int hashCode(); 241 242 public String toString(); 243 244 public String toXmlString(); 245 }