001 /** 002 * Copyright (c) 2000-2012 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.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.shopping.model.ShoppingItemPrice; 020 021 /** 022 * The persistence interface for the shopping item price service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see ShoppingItemPricePersistenceImpl 030 * @see ShoppingItemPriceUtil 031 * @generated 032 */ 033 public interface ShoppingItemPricePersistence extends BasePersistence<ShoppingItemPrice> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link ShoppingItemPriceUtil} to access the shopping item price persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the shopping item price in the entity cache if it is enabled. 042 * 043 * @param shoppingItemPrice the shopping item price 044 */ 045 public void cacheResult( 046 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice); 047 048 /** 049 * Caches the shopping item prices in the entity cache if it is enabled. 050 * 051 * @param shoppingItemPrices the shopping item prices 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> shoppingItemPrices); 055 056 /** 057 * Creates a new shopping item price with the primary key. Does not add the shopping item price to the database. 058 * 059 * @param itemPriceId the primary key for the new shopping item price 060 * @return the new shopping item price 061 */ 062 public com.liferay.portlet.shopping.model.ShoppingItemPrice create( 063 long itemPriceId); 064 065 /** 066 * Removes the shopping item price with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param itemPriceId the primary key of the shopping item price 069 * @return the shopping item price that was removed 070 * @throws com.liferay.portlet.shopping.NoSuchItemPriceException if a shopping item price with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.shopping.model.ShoppingItemPrice remove( 074 long itemPriceId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.shopping.NoSuchItemPriceException; 077 078 public com.liferay.portlet.shopping.model.ShoppingItemPrice updateImpl( 079 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice) 080 throws com.liferay.portal.kernel.exception.SystemException; 081 082 /** 083 * Returns the shopping item price with the primary key or throws a {@link com.liferay.portlet.shopping.NoSuchItemPriceException} if it could not be found. 084 * 085 * @param itemPriceId the primary key of the shopping item price 086 * @return the shopping item price 087 * @throws com.liferay.portlet.shopping.NoSuchItemPriceException if a shopping item price with the primary key could not be found 088 * @throws SystemException if a system exception occurred 089 */ 090 public com.liferay.portlet.shopping.model.ShoppingItemPrice findByPrimaryKey( 091 long itemPriceId) 092 throws com.liferay.portal.kernel.exception.SystemException, 093 com.liferay.portlet.shopping.NoSuchItemPriceException; 094 095 /** 096 * Returns the shopping item price with the primary key or returns <code>null</code> if it could not be found. 097 * 098 * @param itemPriceId the primary key of the shopping item price 099 * @return the shopping item price, or <code>null</code> if a shopping item price with the primary key could not be found 100 * @throws SystemException if a system exception occurred 101 */ 102 public com.liferay.portlet.shopping.model.ShoppingItemPrice fetchByPrimaryKey( 103 long itemPriceId) 104 throws com.liferay.portal.kernel.exception.SystemException; 105 106 /** 107 * Returns all the shopping item prices where itemId = ?. 108 * 109 * @param itemId the item ID 110 * @return the matching shopping item prices 111 * @throws SystemException if a system exception occurred 112 */ 113 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId( 114 long itemId) throws com.liferay.portal.kernel.exception.SystemException; 115 116 /** 117 * Returns a range of all the shopping item prices where itemId = ?. 118 * 119 * <p> 120 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 121 * </p> 122 * 123 * @param itemId the item ID 124 * @param start the lower bound of the range of shopping item prices 125 * @param end the upper bound of the range of shopping item prices (not inclusive) 126 * @return the range of matching shopping item prices 127 * @throws SystemException if a system exception occurred 128 */ 129 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId( 130 long itemId, int start, int end) 131 throws com.liferay.portal.kernel.exception.SystemException; 132 133 /** 134 * Returns an ordered range of all the shopping item prices where itemId = ?. 135 * 136 * <p> 137 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 138 * </p> 139 * 140 * @param itemId the item ID 141 * @param start the lower bound of the range of shopping item prices 142 * @param end the upper bound of the range of shopping item prices (not inclusive) 143 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 144 * @return the ordered range of matching shopping item prices 145 * @throws SystemException if a system exception occurred 146 */ 147 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId( 148 long itemId, int start, int end, 149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 150 throws com.liferay.portal.kernel.exception.SystemException; 151 152 /** 153 * Returns the first shopping item price in the ordered set where itemId = ?. 154 * 155 * @param itemId the item ID 156 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 157 * @return the first matching shopping item price 158 * @throws com.liferay.portlet.shopping.NoSuchItemPriceException if a matching shopping item price could not be found 159 * @throws SystemException if a system exception occurred 160 */ 161 public com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_First( 162 long itemId, 163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 164 throws com.liferay.portal.kernel.exception.SystemException, 165 com.liferay.portlet.shopping.NoSuchItemPriceException; 166 167 /** 168 * Returns the first shopping item price in the ordered set where itemId = ?. 169 * 170 * @param itemId the item ID 171 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 172 * @return the first matching shopping item price, or <code>null</code> if a matching shopping item price could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public com.liferay.portlet.shopping.model.ShoppingItemPrice fetchByItemId_First( 176 long itemId, 177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 178 throws com.liferay.portal.kernel.exception.SystemException; 179 180 /** 181 * Returns the last shopping item price in the ordered set where itemId = ?. 182 * 183 * @param itemId the item ID 184 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 185 * @return the last matching shopping item price 186 * @throws com.liferay.portlet.shopping.NoSuchItemPriceException if a matching shopping item price could not be found 187 * @throws SystemException if a system exception occurred 188 */ 189 public com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_Last( 190 long itemId, 191 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 192 throws com.liferay.portal.kernel.exception.SystemException, 193 com.liferay.portlet.shopping.NoSuchItemPriceException; 194 195 /** 196 * Returns the last shopping item price in the ordered set where itemId = ?. 197 * 198 * @param itemId the item ID 199 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 200 * @return the last matching shopping item price, or <code>null</code> if a matching shopping item price could not be found 201 * @throws SystemException if a system exception occurred 202 */ 203 public com.liferay.portlet.shopping.model.ShoppingItemPrice fetchByItemId_Last( 204 long itemId, 205 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 206 throws com.liferay.portal.kernel.exception.SystemException; 207 208 /** 209 * Returns the shopping item prices before and after the current shopping item price in the ordered set where itemId = ?. 210 * 211 * @param itemPriceId the primary key of the current shopping item price 212 * @param itemId the item ID 213 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 214 * @return the previous, current, and next shopping item price 215 * @throws com.liferay.portlet.shopping.NoSuchItemPriceException if a shopping item price with the primary key could not be found 216 * @throws SystemException if a system exception occurred 217 */ 218 public com.liferay.portlet.shopping.model.ShoppingItemPrice[] findByItemId_PrevAndNext( 219 long itemPriceId, long itemId, 220 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 221 throws com.liferay.portal.kernel.exception.SystemException, 222 com.liferay.portlet.shopping.NoSuchItemPriceException; 223 224 /** 225 * Returns all the shopping item prices. 226 * 227 * @return the shopping item prices 228 * @throws SystemException if a system exception occurred 229 */ 230 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll() 231 throws com.liferay.portal.kernel.exception.SystemException; 232 233 /** 234 * Returns a range of all the shopping item prices. 235 * 236 * <p> 237 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 238 * </p> 239 * 240 * @param start the lower bound of the range of shopping item prices 241 * @param end the upper bound of the range of shopping item prices (not inclusive) 242 * @return the range of shopping item prices 243 * @throws SystemException if a system exception occurred 244 */ 245 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll( 246 int start, int end) 247 throws com.liferay.portal.kernel.exception.SystemException; 248 249 /** 250 * Returns an ordered range of all the shopping item prices. 251 * 252 * <p> 253 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 254 * </p> 255 * 256 * @param start the lower bound of the range of shopping item prices 257 * @param end the upper bound of the range of shopping item prices (not inclusive) 258 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 259 * @return the ordered range of shopping item prices 260 * @throws SystemException if a system exception occurred 261 */ 262 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll( 263 int start, int end, 264 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 265 throws com.liferay.portal.kernel.exception.SystemException; 266 267 /** 268 * Removes all the shopping item prices where itemId = ? from the database. 269 * 270 * @param itemId the item ID 271 * @throws SystemException if a system exception occurred 272 */ 273 public void removeByItemId(long itemId) 274 throws com.liferay.portal.kernel.exception.SystemException; 275 276 /** 277 * Removes all the shopping item prices from the database. 278 * 279 * @throws SystemException if a system exception occurred 280 */ 281 public void removeAll() 282 throws com.liferay.portal.kernel.exception.SystemException; 283 284 /** 285 * Returns the number of shopping item prices where itemId = ?. 286 * 287 * @param itemId the item ID 288 * @return the number of matching shopping item prices 289 * @throws SystemException if a system exception occurred 290 */ 291 public int countByItemId(long itemId) 292 throws com.liferay.portal.kernel.exception.SystemException; 293 294 /** 295 * Returns the number of shopping item prices. 296 * 297 * @return the number of shopping item prices 298 * @throws SystemException if a system exception occurred 299 */ 300 public int countAll() 301 throws com.liferay.portal.kernel.exception.SystemException; 302 }