001 /** 002 * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.shopping.model.ShoppingItem; 022 023 /** 024 * The persistence interface for the shopping item service. 025 * 026 * <p> 027 * Caching information and settings can be found in <code>portal.properties</code> 028 * </p> 029 * 030 * @author Brian Wing Shun Chan 031 * @see ShoppingItemPersistenceImpl 032 * @see ShoppingItemUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface ShoppingItemPersistence extends BasePersistence<ShoppingItem> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link ShoppingItemUtil} to access the shopping item persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns the shopping item where smallImageId = ? or throws a {@link com.liferay.portlet.shopping.NoSuchItemException} if it could not be found. 045 * 046 * @param smallImageId the small image ID 047 * @return the matching shopping item 048 * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found 049 */ 050 public com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId( 051 long smallImageId) 052 throws com.liferay.portlet.shopping.NoSuchItemException; 053 054 /** 055 * Returns the shopping item where smallImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 056 * 057 * @param smallImageId the small image ID 058 * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found 059 */ 060 public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId( 061 long smallImageId); 062 063 /** 064 * Returns the shopping item where smallImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 065 * 066 * @param smallImageId the small image ID 067 * @param retrieveFromCache whether to use the finder cache 068 * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found 069 */ 070 public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId( 071 long smallImageId, boolean retrieveFromCache); 072 073 /** 074 * Removes the shopping item where smallImageId = ? from the database. 075 * 076 * @param smallImageId the small image ID 077 * @return the shopping item that was removed 078 */ 079 public com.liferay.portlet.shopping.model.ShoppingItem removeBySmallImageId( 080 long smallImageId) 081 throws com.liferay.portlet.shopping.NoSuchItemException; 082 083 /** 084 * Returns the number of shopping items where smallImageId = ?. 085 * 086 * @param smallImageId the small image ID 087 * @return the number of matching shopping items 088 */ 089 public int countBySmallImageId(long smallImageId); 090 091 /** 092 * Returns the shopping item where mediumImageId = ? or throws a {@link com.liferay.portlet.shopping.NoSuchItemException} if it could not be found. 093 * 094 * @param mediumImageId the medium image ID 095 * @return the matching shopping item 096 * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found 097 */ 098 public com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId( 099 long mediumImageId) 100 throws com.liferay.portlet.shopping.NoSuchItemException; 101 102 /** 103 * Returns the shopping item where mediumImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 104 * 105 * @param mediumImageId the medium image ID 106 * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found 107 */ 108 public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId( 109 long mediumImageId); 110 111 /** 112 * Returns the shopping item where mediumImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 113 * 114 * @param mediumImageId the medium image ID 115 * @param retrieveFromCache whether to use the finder cache 116 * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found 117 */ 118 public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId( 119 long mediumImageId, boolean retrieveFromCache); 120 121 /** 122 * Removes the shopping item where mediumImageId = ? from the database. 123 * 124 * @param mediumImageId the medium image ID 125 * @return the shopping item that was removed 126 */ 127 public com.liferay.portlet.shopping.model.ShoppingItem removeByMediumImageId( 128 long mediumImageId) 129 throws com.liferay.portlet.shopping.NoSuchItemException; 130 131 /** 132 * Returns the number of shopping items where mediumImageId = ?. 133 * 134 * @param mediumImageId the medium image ID 135 * @return the number of matching shopping items 136 */ 137 public int countByMediumImageId(long mediumImageId); 138 139 /** 140 * Returns the shopping item where largeImageId = ? or throws a {@link com.liferay.portlet.shopping.NoSuchItemException} if it could not be found. 141 * 142 * @param largeImageId the large image ID 143 * @return the matching shopping item 144 * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found 145 */ 146 public com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId( 147 long largeImageId) 148 throws com.liferay.portlet.shopping.NoSuchItemException; 149 150 /** 151 * Returns the shopping item where largeImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 152 * 153 * @param largeImageId the large image ID 154 * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found 155 */ 156 public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId( 157 long largeImageId); 158 159 /** 160 * Returns the shopping item where largeImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 161 * 162 * @param largeImageId the large image ID 163 * @param retrieveFromCache whether to use the finder cache 164 * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found 165 */ 166 public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId( 167 long largeImageId, boolean retrieveFromCache); 168 169 /** 170 * Removes the shopping item where largeImageId = ? from the database. 171 * 172 * @param largeImageId the large image ID 173 * @return the shopping item that was removed 174 */ 175 public com.liferay.portlet.shopping.model.ShoppingItem removeByLargeImageId( 176 long largeImageId) 177 throws com.liferay.portlet.shopping.NoSuchItemException; 178 179 /** 180 * Returns the number of shopping items where largeImageId = ?. 181 * 182 * @param largeImageId the large image ID 183 * @return the number of matching shopping items 184 */ 185 public int countByLargeImageId(long largeImageId); 186 187 /** 188 * Returns all the shopping items where groupId = ? and categoryId = ?. 189 * 190 * @param groupId the group ID 191 * @param categoryId the category ID 192 * @return the matching shopping items 193 */ 194 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C( 195 long groupId, long categoryId); 196 197 /** 198 * Returns a range of all the shopping items where groupId = ? and categoryId = ?. 199 * 200 * <p> 201 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingItemModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 202 * </p> 203 * 204 * @param groupId the group ID 205 * @param categoryId the category ID 206 * @param start the lower bound of the range of shopping items 207 * @param end the upper bound of the range of shopping items (not inclusive) 208 * @return the range of matching shopping items 209 */ 210 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C( 211 long groupId, long categoryId, int start, int end); 212 213 /** 214 * Returns an ordered range of all the shopping items where groupId = ? and categoryId = ?. 215 * 216 * <p> 217 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingItemModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 218 * </p> 219 * 220 * @param groupId the group ID 221 * @param categoryId the category ID 222 * @param start the lower bound of the range of shopping items 223 * @param end the upper bound of the range of shopping items (not inclusive) 224 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 225 * @return the ordered range of matching shopping items 226 */ 227 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C( 228 long groupId, long categoryId, int start, int end, 229 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator); 230 231 /** 232 * Returns the first shopping item in the ordered set where groupId = ? and categoryId = ?. 233 * 234 * @param groupId the group ID 235 * @param categoryId the category ID 236 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 237 * @return the first matching shopping item 238 * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found 239 */ 240 public com.liferay.portlet.shopping.model.ShoppingItem findByG_C_First( 241 long groupId, long categoryId, 242 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator) 243 throws com.liferay.portlet.shopping.NoSuchItemException; 244 245 /** 246 * Returns the first shopping item in the ordered set where groupId = ? and categoryId = ?. 247 * 248 * @param groupId the group ID 249 * @param categoryId the category ID 250 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 251 * @return the first matching shopping item, or <code>null</code> if a matching shopping item could not be found 252 */ 253 public com.liferay.portlet.shopping.model.ShoppingItem fetchByG_C_First( 254 long groupId, long categoryId, 255 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator); 256 257 /** 258 * Returns the last shopping item in the ordered set where groupId = ? and categoryId = ?. 259 * 260 * @param groupId the group ID 261 * @param categoryId the category ID 262 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 263 * @return the last matching shopping item 264 * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found 265 */ 266 public com.liferay.portlet.shopping.model.ShoppingItem findByG_C_Last( 267 long groupId, long categoryId, 268 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator) 269 throws com.liferay.portlet.shopping.NoSuchItemException; 270 271 /** 272 * Returns the last shopping item in the ordered set where groupId = ? and categoryId = ?. 273 * 274 * @param groupId the group ID 275 * @param categoryId the category ID 276 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 277 * @return the last matching shopping item, or <code>null</code> if a matching shopping item could not be found 278 */ 279 public com.liferay.portlet.shopping.model.ShoppingItem fetchByG_C_Last( 280 long groupId, long categoryId, 281 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator); 282 283 /** 284 * Returns the shopping items before and after the current shopping item in the ordered set where groupId = ? and categoryId = ?. 285 * 286 * @param itemId the primary key of the current shopping item 287 * @param groupId the group ID 288 * @param categoryId the category ID 289 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 290 * @return the previous, current, and next shopping item 291 * @throws com.liferay.portlet.shopping.NoSuchItemException if a shopping item with the primary key could not be found 292 */ 293 public com.liferay.portlet.shopping.model.ShoppingItem[] findByG_C_PrevAndNext( 294 long itemId, long groupId, long categoryId, 295 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator) 296 throws com.liferay.portlet.shopping.NoSuchItemException; 297 298 /** 299 * Returns all the shopping items that the user has permission to view where groupId = ? and categoryId = ?. 300 * 301 * @param groupId the group ID 302 * @param categoryId the category ID 303 * @return the matching shopping items that the user has permission to view 304 */ 305 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C( 306 long groupId, long categoryId); 307 308 /** 309 * Returns a range of all the shopping items that the user has permission to view where groupId = ? and categoryId = ?. 310 * 311 * <p> 312 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingItemModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 313 * </p> 314 * 315 * @param groupId the group ID 316 * @param categoryId the category ID 317 * @param start the lower bound of the range of shopping items 318 * @param end the upper bound of the range of shopping items (not inclusive) 319 * @return the range of matching shopping items that the user has permission to view 320 */ 321 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C( 322 long groupId, long categoryId, int start, int end); 323 324 /** 325 * Returns an ordered range of all the shopping items that the user has permissions to view where groupId = ? and categoryId = ?. 326 * 327 * <p> 328 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingItemModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 329 * </p> 330 * 331 * @param groupId the group ID 332 * @param categoryId the category ID 333 * @param start the lower bound of the range of shopping items 334 * @param end the upper bound of the range of shopping items (not inclusive) 335 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 336 * @return the ordered range of matching shopping items that the user has permission to view 337 */ 338 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C( 339 long groupId, long categoryId, int start, int end, 340 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator); 341 342 /** 343 * Returns the shopping items before and after the current shopping item in the ordered set of shopping items that the user has permission to view where groupId = ? and categoryId = ?. 344 * 345 * @param itemId the primary key of the current shopping item 346 * @param groupId the group ID 347 * @param categoryId the category ID 348 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 349 * @return the previous, current, and next shopping item 350 * @throws com.liferay.portlet.shopping.NoSuchItemException if a shopping item with the primary key could not be found 351 */ 352 public com.liferay.portlet.shopping.model.ShoppingItem[] filterFindByG_C_PrevAndNext( 353 long itemId, long groupId, long categoryId, 354 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator) 355 throws com.liferay.portlet.shopping.NoSuchItemException; 356 357 /** 358 * Removes all the shopping items where groupId = ? and categoryId = ? from the database. 359 * 360 * @param groupId the group ID 361 * @param categoryId the category ID 362 */ 363 public void removeByG_C(long groupId, long categoryId); 364 365 /** 366 * Returns the number of shopping items where groupId = ? and categoryId = ?. 367 * 368 * @param groupId the group ID 369 * @param categoryId the category ID 370 * @return the number of matching shopping items 371 */ 372 public int countByG_C(long groupId, long categoryId); 373 374 /** 375 * Returns the number of shopping items that the user has permission to view where groupId = ? and categoryId = ?. 376 * 377 * @param groupId the group ID 378 * @param categoryId the category ID 379 * @return the number of matching shopping items that the user has permission to view 380 */ 381 public int filterCountByG_C(long groupId, long categoryId); 382 383 /** 384 * Returns the shopping item where companyId = ? and sku = ? or throws a {@link com.liferay.portlet.shopping.NoSuchItemException} if it could not be found. 385 * 386 * @param companyId the company ID 387 * @param sku the sku 388 * @return the matching shopping item 389 * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found 390 */ 391 public com.liferay.portlet.shopping.model.ShoppingItem findByC_S( 392 long companyId, java.lang.String sku) 393 throws com.liferay.portlet.shopping.NoSuchItemException; 394 395 /** 396 * Returns the shopping item where companyId = ? and sku = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 397 * 398 * @param companyId the company ID 399 * @param sku the sku 400 * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found 401 */ 402 public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S( 403 long companyId, java.lang.String sku); 404 405 /** 406 * Returns the shopping item where companyId = ? and sku = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 407 * 408 * @param companyId the company ID 409 * @param sku the sku 410 * @param retrieveFromCache whether to use the finder cache 411 * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found 412 */ 413 public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S( 414 long companyId, java.lang.String sku, boolean retrieveFromCache); 415 416 /** 417 * Removes the shopping item where companyId = ? and sku = ? from the database. 418 * 419 * @param companyId the company ID 420 * @param sku the sku 421 * @return the shopping item that was removed 422 */ 423 public com.liferay.portlet.shopping.model.ShoppingItem removeByC_S( 424 long companyId, java.lang.String sku) 425 throws com.liferay.portlet.shopping.NoSuchItemException; 426 427 /** 428 * Returns the number of shopping items where companyId = ? and sku = ?. 429 * 430 * @param companyId the company ID 431 * @param sku the sku 432 * @return the number of matching shopping items 433 */ 434 public int countByC_S(long companyId, java.lang.String sku); 435 436 /** 437 * Caches the shopping item in the entity cache if it is enabled. 438 * 439 * @param shoppingItem the shopping item 440 */ 441 public void cacheResult( 442 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem); 443 444 /** 445 * Caches the shopping items in the entity cache if it is enabled. 446 * 447 * @param shoppingItems the shopping items 448 */ 449 public void cacheResult( 450 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> shoppingItems); 451 452 /** 453 * Creates a new shopping item with the primary key. Does not add the shopping item to the database. 454 * 455 * @param itemId the primary key for the new shopping item 456 * @return the new shopping item 457 */ 458 public com.liferay.portlet.shopping.model.ShoppingItem create(long itemId); 459 460 /** 461 * Removes the shopping item with the primary key from the database. Also notifies the appropriate model listeners. 462 * 463 * @param itemId the primary key of the shopping item 464 * @return the shopping item that was removed 465 * @throws com.liferay.portlet.shopping.NoSuchItemException if a shopping item with the primary key could not be found 466 */ 467 public com.liferay.portlet.shopping.model.ShoppingItem remove(long itemId) 468 throws com.liferay.portlet.shopping.NoSuchItemException; 469 470 public com.liferay.portlet.shopping.model.ShoppingItem updateImpl( 471 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem); 472 473 /** 474 * Returns the shopping item with the primary key or throws a {@link com.liferay.portlet.shopping.NoSuchItemException} if it could not be found. 475 * 476 * @param itemId the primary key of the shopping item 477 * @return the shopping item 478 * @throws com.liferay.portlet.shopping.NoSuchItemException if a shopping item with the primary key could not be found 479 */ 480 public com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey( 481 long itemId) throws com.liferay.portlet.shopping.NoSuchItemException; 482 483 /** 484 * Returns the shopping item with the primary key or returns <code>null</code> if it could not be found. 485 * 486 * @param itemId the primary key of the shopping item 487 * @return the shopping item, or <code>null</code> if a shopping item with the primary key could not be found 488 */ 489 public com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey( 490 long itemId); 491 492 @Override 493 public java.util.Map<java.io.Serializable, com.liferay.portlet.shopping.model.ShoppingItem> fetchByPrimaryKeys( 494 java.util.Set<java.io.Serializable> primaryKeys); 495 496 /** 497 * Returns all the shopping items. 498 * 499 * @return the shopping items 500 */ 501 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(); 502 503 /** 504 * Returns a range of all the shopping items. 505 * 506 * <p> 507 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingItemModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 508 * </p> 509 * 510 * @param start the lower bound of the range of shopping items 511 * @param end the upper bound of the range of shopping items (not inclusive) 512 * @return the range of shopping items 513 */ 514 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll( 515 int start, int end); 516 517 /** 518 * Returns an ordered range of all the shopping items. 519 * 520 * <p> 521 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingItemModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 522 * </p> 523 * 524 * @param start the lower bound of the range of shopping items 525 * @param end the upper bound of the range of shopping items (not inclusive) 526 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 527 * @return the ordered range of shopping items 528 */ 529 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll( 530 int start, int end, 531 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator); 532 533 /** 534 * Removes all the shopping items from the database. 535 */ 536 public void removeAll(); 537 538 /** 539 * Returns the number of shopping items. 540 * 541 * @return the number of shopping items 542 */ 543 public int countAll(); 544 }