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 aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.model.BaseModel; 020 import com.liferay.portal.model.CacheModel; 021 import com.liferay.portal.service.ServiceContext; 022 023 import com.liferay.portlet.expando.model.ExpandoBridge; 024 025 import java.io.Serializable; 026 027 /** 028 * 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. 029 * 030 * <p> 031 * 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}. 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see ShoppingItemPrice 036 * @see com.liferay.portlet.shopping.model.impl.ShoppingItemPriceImpl 037 * @see com.liferay.portlet.shopping.model.impl.ShoppingItemPriceModelImpl 038 * @generated 039 */ 040 @ProviderType 041 public interface ShoppingItemPriceModel extends BaseModel<ShoppingItemPrice> { 042 /* 043 * NOTE FOR DEVELOPERS: 044 * 045 * Never modify or reference this interface directly. All methods that expect a shopping item price model instance should use the {@link ShoppingItemPrice} interface instead. 046 */ 047 048 /** 049 * Returns the primary key of this shopping item price. 050 * 051 * @return the primary key of this shopping item price 052 */ 053 public long getPrimaryKey(); 054 055 /** 056 * Sets the primary key of this shopping item price. 057 * 058 * @param primaryKey the primary key of this shopping item price 059 */ 060 public void setPrimaryKey(long primaryKey); 061 062 /** 063 * Returns the item price ID of this shopping item price. 064 * 065 * @return the item price ID of this shopping item price 066 */ 067 public long getItemPriceId(); 068 069 /** 070 * Sets the item price ID of this shopping item price. 071 * 072 * @param itemPriceId the item price ID of this shopping item price 073 */ 074 public void setItemPriceId(long itemPriceId); 075 076 /** 077 * Returns the item ID of this shopping item price. 078 * 079 * @return the item ID of this shopping item price 080 */ 081 public long getItemId(); 082 083 /** 084 * Sets the item ID of this shopping item price. 085 * 086 * @param itemId the item ID of this shopping item price 087 */ 088 public void setItemId(long itemId); 089 090 /** 091 * Returns the min quantity of this shopping item price. 092 * 093 * @return the min quantity of this shopping item price 094 */ 095 public int getMinQuantity(); 096 097 /** 098 * Sets the min quantity of this shopping item price. 099 * 100 * @param minQuantity the min quantity of this shopping item price 101 */ 102 public void setMinQuantity(int minQuantity); 103 104 /** 105 * Returns the max quantity of this shopping item price. 106 * 107 * @return the max quantity of this shopping item price 108 */ 109 public int getMaxQuantity(); 110 111 /** 112 * Sets the max quantity of this shopping item price. 113 * 114 * @param maxQuantity the max quantity of this shopping item price 115 */ 116 public void setMaxQuantity(int maxQuantity); 117 118 /** 119 * Returns the price of this shopping item price. 120 * 121 * @return the price of this shopping item price 122 */ 123 public double getPrice(); 124 125 /** 126 * Sets the price of this shopping item price. 127 * 128 * @param price the price of this shopping item price 129 */ 130 public void setPrice(double price); 131 132 /** 133 * Returns the discount of this shopping item price. 134 * 135 * @return the discount of this shopping item price 136 */ 137 public double getDiscount(); 138 139 /** 140 * Sets the discount of this shopping item price. 141 * 142 * @param discount the discount of this shopping item price 143 */ 144 public void setDiscount(double discount); 145 146 /** 147 * Returns the taxable of this shopping item price. 148 * 149 * @return the taxable of this shopping item price 150 */ 151 public boolean getTaxable(); 152 153 /** 154 * Returns <code>true</code> if this shopping item price is taxable. 155 * 156 * @return <code>true</code> if this shopping item price is taxable; <code>false</code> otherwise 157 */ 158 public boolean isTaxable(); 159 160 /** 161 * Sets whether this shopping item price is taxable. 162 * 163 * @param taxable the taxable of this shopping item price 164 */ 165 public void setTaxable(boolean taxable); 166 167 /** 168 * Returns the shipping of this shopping item price. 169 * 170 * @return the shipping of this shopping item price 171 */ 172 public double getShipping(); 173 174 /** 175 * Sets the shipping of this shopping item price. 176 * 177 * @param shipping the shipping of this shopping item price 178 */ 179 public void setShipping(double shipping); 180 181 /** 182 * Returns the use shipping formula of this shopping item price. 183 * 184 * @return the use shipping formula of this shopping item price 185 */ 186 public boolean getUseShippingFormula(); 187 188 /** 189 * Returns <code>true</code> if this shopping item price is use shipping formula. 190 * 191 * @return <code>true</code> if this shopping item price is use shipping formula; <code>false</code> otherwise 192 */ 193 public boolean isUseShippingFormula(); 194 195 /** 196 * Sets whether this shopping item price is use shipping formula. 197 * 198 * @param useShippingFormula the use shipping formula of this shopping item price 199 */ 200 public void setUseShippingFormula(boolean useShippingFormula); 201 202 /** 203 * Returns the status of this shopping item price. 204 * 205 * @return the status of this shopping item price 206 */ 207 public int getStatus(); 208 209 /** 210 * Sets the status of this shopping item price. 211 * 212 * @param status the status of this shopping item price 213 */ 214 public void setStatus(int status); 215 216 @Override 217 public boolean isNew(); 218 219 @Override 220 public void setNew(boolean n); 221 222 @Override 223 public boolean isCachedModel(); 224 225 @Override 226 public void setCachedModel(boolean cachedModel); 227 228 @Override 229 public boolean isEscapedModel(); 230 231 @Override 232 public Serializable getPrimaryKeyObj(); 233 234 @Override 235 public void setPrimaryKeyObj(Serializable primaryKeyObj); 236 237 @Override 238 public ExpandoBridge getExpandoBridge(); 239 240 @Override 241 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 242 243 @Override 244 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 245 246 @Override 247 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 248 249 @Override 250 public Object clone(); 251 252 @Override 253 public int compareTo(ShoppingItemPrice shoppingItemPrice); 254 255 @Override 256 public int hashCode(); 257 258 @Override 259 public CacheModel<ShoppingItemPrice> toCacheModel(); 260 261 @Override 262 public ShoppingItemPrice toEscapedModel(); 263 264 @Override 265 public ShoppingItemPrice toUnescapedModel(); 266 267 @Override 268 public String toString(); 269 270 @Override 271 public String toXmlString(); 272 }