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.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.ShoppingCart; 022 023 /** 024 * The persistence interface for the shopping cart 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 ShoppingCartPersistenceImpl 032 * @see ShoppingCartUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface ShoppingCartPersistence extends BasePersistence<ShoppingCart> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link ShoppingCartUtil} to access the shopping cart persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the shopping carts where groupId = ?. 045 * 046 * @param groupId the group ID 047 * @return the matching shopping carts 048 * @throws SystemException if a system exception occurred 049 */ 050 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByGroupId( 051 long groupId) 052 throws com.liferay.portal.kernel.exception.SystemException; 053 054 /** 055 * Returns a range of all the shopping carts where groupId = ?. 056 * 057 * <p> 058 * 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.ShoppingCartModelImpl}. 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. 059 * </p> 060 * 061 * @param groupId the group ID 062 * @param start the lower bound of the range of shopping carts 063 * @param end the upper bound of the range of shopping carts (not inclusive) 064 * @return the range of matching shopping carts 065 * @throws SystemException if a system exception occurred 066 */ 067 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByGroupId( 068 long groupId, int start, int end) 069 throws com.liferay.portal.kernel.exception.SystemException; 070 071 /** 072 * Returns an ordered range of all the shopping carts where groupId = ?. 073 * 074 * <p> 075 * 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.ShoppingCartModelImpl}. 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. 076 * </p> 077 * 078 * @param groupId the group ID 079 * @param start the lower bound of the range of shopping carts 080 * @param end the upper bound of the range of shopping carts (not inclusive) 081 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 082 * @return the ordered range of matching shopping carts 083 * @throws SystemException if a system exception occurred 084 */ 085 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByGroupId( 086 long groupId, int start, int end, 087 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 088 throws com.liferay.portal.kernel.exception.SystemException; 089 090 /** 091 * Returns the first shopping cart in the ordered set where groupId = ?. 092 * 093 * @param groupId the group ID 094 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 095 * @return the first matching shopping cart 096 * @throws com.liferay.portlet.shopping.NoSuchCartException if a matching shopping cart could not be found 097 * @throws SystemException if a system exception occurred 098 */ 099 public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_First( 100 long groupId, 101 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 102 throws com.liferay.portal.kernel.exception.SystemException, 103 com.liferay.portlet.shopping.NoSuchCartException; 104 105 /** 106 * Returns the first shopping cart in the ordered set where groupId = ?. 107 * 108 * @param groupId the group ID 109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 110 * @return the first matching shopping cart, or <code>null</code> if a matching shopping cart could not be found 111 * @throws SystemException if a system exception occurred 112 */ 113 public com.liferay.portlet.shopping.model.ShoppingCart fetchByGroupId_First( 114 long groupId, 115 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns the last shopping cart in the ordered set where groupId = ?. 120 * 121 * @param groupId the group ID 122 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 123 * @return the last matching shopping cart 124 * @throws com.liferay.portlet.shopping.NoSuchCartException if a matching shopping cart could not be found 125 * @throws SystemException if a system exception occurred 126 */ 127 public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_Last( 128 long groupId, 129 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 130 throws com.liferay.portal.kernel.exception.SystemException, 131 com.liferay.portlet.shopping.NoSuchCartException; 132 133 /** 134 * Returns the last shopping cart in the ordered set where groupId = ?. 135 * 136 * @param groupId the group ID 137 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 138 * @return the last matching shopping cart, or <code>null</code> if a matching shopping cart could not be found 139 * @throws SystemException if a system exception occurred 140 */ 141 public com.liferay.portlet.shopping.model.ShoppingCart fetchByGroupId_Last( 142 long groupId, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Returns the shopping carts before and after the current shopping cart in the ordered set where groupId = ?. 148 * 149 * @param cartId the primary key of the current shopping cart 150 * @param groupId the group ID 151 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 152 * @return the previous, current, and next shopping cart 153 * @throws com.liferay.portlet.shopping.NoSuchCartException if a shopping cart with the primary key could not be found 154 * @throws SystemException if a system exception occurred 155 */ 156 public com.liferay.portlet.shopping.model.ShoppingCart[] findByGroupId_PrevAndNext( 157 long cartId, long groupId, 158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 159 throws com.liferay.portal.kernel.exception.SystemException, 160 com.liferay.portlet.shopping.NoSuchCartException; 161 162 /** 163 * Removes all the shopping carts where groupId = ? from the database. 164 * 165 * @param groupId the group ID 166 * @throws SystemException if a system exception occurred 167 */ 168 public void removeByGroupId(long groupId) 169 throws com.liferay.portal.kernel.exception.SystemException; 170 171 /** 172 * Returns the number of shopping carts where groupId = ?. 173 * 174 * @param groupId the group ID 175 * @return the number of matching shopping carts 176 * @throws SystemException if a system exception occurred 177 */ 178 public int countByGroupId(long groupId) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns all the shopping carts where userId = ?. 183 * 184 * @param userId the user ID 185 * @return the matching shopping carts 186 * @throws SystemException if a system exception occurred 187 */ 188 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId( 189 long userId) throws com.liferay.portal.kernel.exception.SystemException; 190 191 /** 192 * Returns a range of all the shopping carts where userId = ?. 193 * 194 * <p> 195 * 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.ShoppingCartModelImpl}. 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. 196 * </p> 197 * 198 * @param userId the user ID 199 * @param start the lower bound of the range of shopping carts 200 * @param end the upper bound of the range of shopping carts (not inclusive) 201 * @return the range of matching shopping carts 202 * @throws SystemException if a system exception occurred 203 */ 204 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId( 205 long userId, int start, int end) 206 throws com.liferay.portal.kernel.exception.SystemException; 207 208 /** 209 * Returns an ordered range of all the shopping carts where userId = ?. 210 * 211 * <p> 212 * 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.ShoppingCartModelImpl}. 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. 213 * </p> 214 * 215 * @param userId the user ID 216 * @param start the lower bound of the range of shopping carts 217 * @param end the upper bound of the range of shopping carts (not inclusive) 218 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 219 * @return the ordered range of matching shopping carts 220 * @throws SystemException if a system exception occurred 221 */ 222 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId( 223 long userId, int start, int end, 224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 225 throws com.liferay.portal.kernel.exception.SystemException; 226 227 /** 228 * Returns the first shopping cart in the ordered set where userId = ?. 229 * 230 * @param userId the user ID 231 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 232 * @return the first matching shopping cart 233 * @throws com.liferay.portlet.shopping.NoSuchCartException if a matching shopping cart could not be found 234 * @throws SystemException if a system exception occurred 235 */ 236 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_First( 237 long userId, 238 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 239 throws com.liferay.portal.kernel.exception.SystemException, 240 com.liferay.portlet.shopping.NoSuchCartException; 241 242 /** 243 * Returns the first shopping cart in the ordered set where userId = ?. 244 * 245 * @param userId the user ID 246 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 247 * @return the first matching shopping cart, or <code>null</code> if a matching shopping cart could not be found 248 * @throws SystemException if a system exception occurred 249 */ 250 public com.liferay.portlet.shopping.model.ShoppingCart fetchByUserId_First( 251 long userId, 252 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 253 throws com.liferay.portal.kernel.exception.SystemException; 254 255 /** 256 * Returns the last shopping cart in the ordered set where userId = ?. 257 * 258 * @param userId the user ID 259 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 260 * @return the last matching shopping cart 261 * @throws com.liferay.portlet.shopping.NoSuchCartException if a matching shopping cart could not be found 262 * @throws SystemException if a system exception occurred 263 */ 264 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_Last( 265 long userId, 266 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 267 throws com.liferay.portal.kernel.exception.SystemException, 268 com.liferay.portlet.shopping.NoSuchCartException; 269 270 /** 271 * Returns the last shopping cart in the ordered set where userId = ?. 272 * 273 * @param userId the user ID 274 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 275 * @return the last matching shopping cart, or <code>null</code> if a matching shopping cart could not be found 276 * @throws SystemException if a system exception occurred 277 */ 278 public com.liferay.portlet.shopping.model.ShoppingCart fetchByUserId_Last( 279 long userId, 280 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 281 throws com.liferay.portal.kernel.exception.SystemException; 282 283 /** 284 * Returns the shopping carts before and after the current shopping cart in the ordered set where userId = ?. 285 * 286 * @param cartId the primary key of the current shopping cart 287 * @param userId the user ID 288 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 289 * @return the previous, current, and next shopping cart 290 * @throws com.liferay.portlet.shopping.NoSuchCartException if a shopping cart with the primary key could not be found 291 * @throws SystemException if a system exception occurred 292 */ 293 public com.liferay.portlet.shopping.model.ShoppingCart[] findByUserId_PrevAndNext( 294 long cartId, long userId, 295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 296 throws com.liferay.portal.kernel.exception.SystemException, 297 com.liferay.portlet.shopping.NoSuchCartException; 298 299 /** 300 * Removes all the shopping carts where userId = ? from the database. 301 * 302 * @param userId the user ID 303 * @throws SystemException if a system exception occurred 304 */ 305 public void removeByUserId(long userId) 306 throws com.liferay.portal.kernel.exception.SystemException; 307 308 /** 309 * Returns the number of shopping carts where userId = ?. 310 * 311 * @param userId the user ID 312 * @return the number of matching shopping carts 313 * @throws SystemException if a system exception occurred 314 */ 315 public int countByUserId(long userId) 316 throws com.liferay.portal.kernel.exception.SystemException; 317 318 /** 319 * Returns the shopping cart where groupId = ? and userId = ? or throws a {@link com.liferay.portlet.shopping.NoSuchCartException} if it could not be found. 320 * 321 * @param groupId the group ID 322 * @param userId the user ID 323 * @return the matching shopping cart 324 * @throws com.liferay.portlet.shopping.NoSuchCartException if a matching shopping cart could not be found 325 * @throws SystemException if a system exception occurred 326 */ 327 public com.liferay.portlet.shopping.model.ShoppingCart findByG_U( 328 long groupId, long userId) 329 throws com.liferay.portal.kernel.exception.SystemException, 330 com.liferay.portlet.shopping.NoSuchCartException; 331 332 /** 333 * Returns the shopping cart where groupId = ? and userId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 334 * 335 * @param groupId the group ID 336 * @param userId the user ID 337 * @return the matching shopping cart, or <code>null</code> if a matching shopping cart could not be found 338 * @throws SystemException if a system exception occurred 339 */ 340 public com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U( 341 long groupId, long userId) 342 throws com.liferay.portal.kernel.exception.SystemException; 343 344 /** 345 * Returns the shopping cart where groupId = ? and userId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 346 * 347 * @param groupId the group ID 348 * @param userId the user ID 349 * @param retrieveFromCache whether to use the finder cache 350 * @return the matching shopping cart, or <code>null</code> if a matching shopping cart could not be found 351 * @throws SystemException if a system exception occurred 352 */ 353 public com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U( 354 long groupId, long userId, boolean retrieveFromCache) 355 throws com.liferay.portal.kernel.exception.SystemException; 356 357 /** 358 * Removes the shopping cart where groupId = ? and userId = ? from the database. 359 * 360 * @param groupId the group ID 361 * @param userId the user ID 362 * @return the shopping cart that was removed 363 * @throws SystemException if a system exception occurred 364 */ 365 public com.liferay.portlet.shopping.model.ShoppingCart removeByG_U( 366 long groupId, long userId) 367 throws com.liferay.portal.kernel.exception.SystemException, 368 com.liferay.portlet.shopping.NoSuchCartException; 369 370 /** 371 * Returns the number of shopping carts where groupId = ? and userId = ?. 372 * 373 * @param groupId the group ID 374 * @param userId the user ID 375 * @return the number of matching shopping carts 376 * @throws SystemException if a system exception occurred 377 */ 378 public int countByG_U(long groupId, long userId) 379 throws com.liferay.portal.kernel.exception.SystemException; 380 381 /** 382 * Caches the shopping cart in the entity cache if it is enabled. 383 * 384 * @param shoppingCart the shopping cart 385 */ 386 public void cacheResult( 387 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart); 388 389 /** 390 * Caches the shopping carts in the entity cache if it is enabled. 391 * 392 * @param shoppingCarts the shopping carts 393 */ 394 public void cacheResult( 395 java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> shoppingCarts); 396 397 /** 398 * Creates a new shopping cart with the primary key. Does not add the shopping cart to the database. 399 * 400 * @param cartId the primary key for the new shopping cart 401 * @return the new shopping cart 402 */ 403 public com.liferay.portlet.shopping.model.ShoppingCart create(long cartId); 404 405 /** 406 * Removes the shopping cart with the primary key from the database. Also notifies the appropriate model listeners. 407 * 408 * @param cartId the primary key of the shopping cart 409 * @return the shopping cart that was removed 410 * @throws com.liferay.portlet.shopping.NoSuchCartException if a shopping cart with the primary key could not be found 411 * @throws SystemException if a system exception occurred 412 */ 413 public com.liferay.portlet.shopping.model.ShoppingCart remove(long cartId) 414 throws com.liferay.portal.kernel.exception.SystemException, 415 com.liferay.portlet.shopping.NoSuchCartException; 416 417 public com.liferay.portlet.shopping.model.ShoppingCart updateImpl( 418 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart) 419 throws com.liferay.portal.kernel.exception.SystemException; 420 421 /** 422 * Returns the shopping cart with the primary key or throws a {@link com.liferay.portlet.shopping.NoSuchCartException} if it could not be found. 423 * 424 * @param cartId the primary key of the shopping cart 425 * @return the shopping cart 426 * @throws com.liferay.portlet.shopping.NoSuchCartException if a shopping cart with the primary key could not be found 427 * @throws SystemException if a system exception occurred 428 */ 429 public com.liferay.portlet.shopping.model.ShoppingCart findByPrimaryKey( 430 long cartId) 431 throws com.liferay.portal.kernel.exception.SystemException, 432 com.liferay.portlet.shopping.NoSuchCartException; 433 434 /** 435 * Returns the shopping cart with the primary key or returns <code>null</code> if it could not be found. 436 * 437 * @param cartId the primary key of the shopping cart 438 * @return the shopping cart, or <code>null</code> if a shopping cart with the primary key could not be found 439 * @throws SystemException if a system exception occurred 440 */ 441 public com.liferay.portlet.shopping.model.ShoppingCart fetchByPrimaryKey( 442 long cartId) throws com.liferay.portal.kernel.exception.SystemException; 443 444 /** 445 * Returns all the shopping carts. 446 * 447 * @return the shopping carts 448 * @throws SystemException if a system exception occurred 449 */ 450 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll() 451 throws com.liferay.portal.kernel.exception.SystemException; 452 453 /** 454 * Returns a range of all the shopping carts. 455 * 456 * <p> 457 * 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.ShoppingCartModelImpl}. 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. 458 * </p> 459 * 460 * @param start the lower bound of the range of shopping carts 461 * @param end the upper bound of the range of shopping carts (not inclusive) 462 * @return the range of shopping carts 463 * @throws SystemException if a system exception occurred 464 */ 465 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll( 466 int start, int end) 467 throws com.liferay.portal.kernel.exception.SystemException; 468 469 /** 470 * Returns an ordered range of all the shopping carts. 471 * 472 * <p> 473 * 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.ShoppingCartModelImpl}. 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. 474 * </p> 475 * 476 * @param start the lower bound of the range of shopping carts 477 * @param end the upper bound of the range of shopping carts (not inclusive) 478 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 479 * @return the ordered range of shopping carts 480 * @throws SystemException if a system exception occurred 481 */ 482 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll( 483 int start, int end, 484 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 485 throws com.liferay.portal.kernel.exception.SystemException; 486 487 /** 488 * Removes all the shopping carts from the database. 489 * 490 * @throws SystemException if a system exception occurred 491 */ 492 public void removeAll() 493 throws com.liferay.portal.kernel.exception.SystemException; 494 495 /** 496 * Returns the number of shopping carts. 497 * 498 * @return the number of shopping carts 499 * @throws SystemException if a system exception occurred 500 */ 501 public int countAll() 502 throws com.liferay.portal.kernel.exception.SystemException; 503 }