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