001 /** 002 * Copyright (c) 2000-2010 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.ShoppingOrder; 020 021 /** 022 * The persistence interface for the shopping order service. 023 * 024 * <p> 025 * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see ShoppingOrderPersistenceImpl 030 * @see ShoppingOrderUtil 031 * @generated 032 */ 033 public interface ShoppingOrderPersistence extends BasePersistence<ShoppingOrder> { 034 /** 035 * Caches the shopping order in the entity cache if it is enabled. 036 * 037 * @param shoppingOrder the shopping order to cache 038 */ 039 public void cacheResult( 040 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder); 041 042 /** 043 * Caches the shopping orders in the entity cache if it is enabled. 044 * 045 * @param shoppingOrders the shopping orders to cache 046 */ 047 public void cacheResult( 048 java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> shoppingOrders); 049 050 /** 051 * Creates a new shopping order with the primary key. 052 * 053 * @param orderId the primary key for the new shopping order 054 * @return the new shopping order 055 */ 056 public com.liferay.portlet.shopping.model.ShoppingOrder create(long orderId); 057 058 /** 059 * Removes the shopping order with the primary key from the database. Also notifies the appropriate model listeners. 060 * 061 * @param orderId the primary key of the shopping order to remove 062 * @return the shopping order that was removed 063 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 064 * @throws SystemException if a system exception occurred 065 */ 066 public com.liferay.portlet.shopping.model.ShoppingOrder remove(long orderId) 067 throws com.liferay.portal.kernel.exception.SystemException, 068 com.liferay.portlet.shopping.NoSuchOrderException; 069 070 public com.liferay.portlet.shopping.model.ShoppingOrder updateImpl( 071 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder, 072 boolean merge) 073 throws com.liferay.portal.kernel.exception.SystemException; 074 075 /** 076 * Finds the shopping order with the primary key or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found. 077 * 078 * @param orderId the primary key of the shopping order to find 079 * @return the shopping order 080 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 081 * @throws SystemException if a system exception occurred 082 */ 083 public com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey( 084 long orderId) 085 throws com.liferay.portal.kernel.exception.SystemException, 086 com.liferay.portlet.shopping.NoSuchOrderException; 087 088 /** 089 * Finds the shopping order with the primary key or returns <code>null</code> if it could not be found. 090 * 091 * @param orderId the primary key of the shopping order to find 092 * @return the shopping order, or <code>null</code> if a shopping order with the primary key could not be found 093 * @throws SystemException if a system exception occurred 094 */ 095 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey( 096 long orderId) 097 throws com.liferay.portal.kernel.exception.SystemException; 098 099 /** 100 * Finds all the shopping orders where groupId = ?. 101 * 102 * @param groupId the group id to search with 103 * @return the matching shopping orders 104 * @throws SystemException if a system exception occurred 105 */ 106 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId( 107 long groupId) 108 throws com.liferay.portal.kernel.exception.SystemException; 109 110 /** 111 * Finds a range of all the shopping orders where groupId = ?. 112 * 113 * <p> 114 * 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. 115 * </p> 116 * 117 * @param groupId the group id to search with 118 * @param start the lower bound of the range of shopping orders to return 119 * @param end the upper bound of the range of shopping orders to return (not inclusive) 120 * @return the range of matching shopping orders 121 * @throws SystemException if a system exception occurred 122 */ 123 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId( 124 long groupId, int start, int end) 125 throws com.liferay.portal.kernel.exception.SystemException; 126 127 /** 128 * Finds an ordered range of all the shopping orders where groupId = ?. 129 * 130 * <p> 131 * 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. 132 * </p> 133 * 134 * @param groupId the group id to search with 135 * @param start the lower bound of the range of shopping orders to return 136 * @param end the upper bound of the range of shopping orders to return (not inclusive) 137 * @param orderByComparator the comparator to order the results by 138 * @return the ordered range of matching shopping orders 139 * @throws SystemException if a system exception occurred 140 */ 141 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId( 142 long groupId, int start, int end, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Finds the first shopping order in the ordered set where groupId = ?. 148 * 149 * <p> 150 * 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. 151 * </p> 152 * 153 * @param groupId the group id to search with 154 * @param orderByComparator the comparator to order the set by 155 * @return the first matching shopping order 156 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 157 * @throws SystemException if a system exception occurred 158 */ 159 public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First( 160 long groupId, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.kernel.exception.SystemException, 163 com.liferay.portlet.shopping.NoSuchOrderException; 164 165 /** 166 * Finds the last shopping order in the ordered set where groupId = ?. 167 * 168 * <p> 169 * 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. 170 * </p> 171 * 172 * @param groupId the group id to search with 173 * @param orderByComparator the comparator to order the set by 174 * @return the last matching shopping order 175 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 176 * @throws SystemException if a system exception occurred 177 */ 178 public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last( 179 long groupId, 180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 181 throws com.liferay.portal.kernel.exception.SystemException, 182 com.liferay.portlet.shopping.NoSuchOrderException; 183 184 /** 185 * Finds the shopping orders before and after the current shopping order in the ordered set where groupId = ?. 186 * 187 * <p> 188 * 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. 189 * </p> 190 * 191 * @param orderId the primary key of the current shopping order 192 * @param groupId the group id to search with 193 * @param orderByComparator the comparator to order the set by 194 * @return the previous, current, and next shopping order 195 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 196 * @throws SystemException if a system exception occurred 197 */ 198 public com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext( 199 long orderId, long groupId, 200 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 201 throws com.liferay.portal.kernel.exception.SystemException, 202 com.liferay.portlet.shopping.NoSuchOrderException; 203 204 /** 205 * Filters by the user's permissions and finds all the shopping orders where groupId = ?. 206 * 207 * @param groupId the group id to search with 208 * @return the matching shopping orders that the user has permission to view 209 * @throws SystemException if a system exception occurred 210 */ 211 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId( 212 long groupId) 213 throws com.liferay.portal.kernel.exception.SystemException; 214 215 /** 216 * Filters by the user's permissions and finds a range of all the shopping orders where groupId = ?. 217 * 218 * <p> 219 * 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. 220 * </p> 221 * 222 * @param groupId the group id to search with 223 * @param start the lower bound of the range of shopping orders to return 224 * @param end the upper bound of the range of shopping orders to return (not inclusive) 225 * @return the range of matching shopping orders that the user has permission to view 226 * @throws SystemException if a system exception occurred 227 */ 228 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId( 229 long groupId, int start, int end) 230 throws com.liferay.portal.kernel.exception.SystemException; 231 232 /** 233 * Filters by the user's permissions and finds an ordered range of all the shopping orders where groupId = ?. 234 * 235 * <p> 236 * 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. 237 * </p> 238 * 239 * @param groupId the group id to search with 240 * @param start the lower bound of the range of shopping orders to return 241 * @param end the upper bound of the range of shopping orders to return (not inclusive) 242 * @param orderByComparator the comparator to order the results by 243 * @return the ordered range of matching shopping orders that the user has permission to view 244 * @throws SystemException if a system exception occurred 245 */ 246 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId( 247 long groupId, int start, int end, 248 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 249 throws com.liferay.portal.kernel.exception.SystemException; 250 251 /** 252 * Finds the shopping order where number = ? or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found. 253 * 254 * @param number the number to search with 255 * @return the matching shopping order 256 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 257 * @throws SystemException if a system exception occurred 258 */ 259 public com.liferay.portlet.shopping.model.ShoppingOrder findByNumber( 260 java.lang.String number) 261 throws com.liferay.portal.kernel.exception.SystemException, 262 com.liferay.portlet.shopping.NoSuchOrderException; 263 264 /** 265 * Finds the shopping order where number = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 266 * 267 * @param number the number to search with 268 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 269 * @throws SystemException if a system exception occurred 270 */ 271 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber( 272 java.lang.String number) 273 throws com.liferay.portal.kernel.exception.SystemException; 274 275 /** 276 * Finds the shopping order where number = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 277 * 278 * @param number the number to search with 279 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 280 * @throws SystemException if a system exception occurred 281 */ 282 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber( 283 java.lang.String number, boolean retrieveFromCache) 284 throws com.liferay.portal.kernel.exception.SystemException; 285 286 /** 287 * Finds the shopping order where ppTxnId = ? or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found. 288 * 289 * @param ppTxnId the pp txn id to search with 290 * @return the matching shopping order 291 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 292 * @throws SystemException if a system exception occurred 293 */ 294 public com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId( 295 java.lang.String ppTxnId) 296 throws com.liferay.portal.kernel.exception.SystemException, 297 com.liferay.portlet.shopping.NoSuchOrderException; 298 299 /** 300 * Finds the shopping order where ppTxnId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 301 * 302 * @param ppTxnId the pp txn id to search with 303 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 304 * @throws SystemException if a system exception occurred 305 */ 306 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId( 307 java.lang.String ppTxnId) 308 throws com.liferay.portal.kernel.exception.SystemException; 309 310 /** 311 * Finds the shopping order where ppTxnId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 312 * 313 * @param ppTxnId the pp txn id to search with 314 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 315 * @throws SystemException if a system exception occurred 316 */ 317 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId( 318 java.lang.String ppTxnId, boolean retrieveFromCache) 319 throws com.liferay.portal.kernel.exception.SystemException; 320 321 /** 322 * Finds all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 323 * 324 * @param groupId the group id to search with 325 * @param userId the user id to search with 326 * @param ppPaymentStatus the pp payment status to search with 327 * @return the matching shopping orders 328 * @throws SystemException if a system exception occurred 329 */ 330 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS( 331 long groupId, long userId, java.lang.String ppPaymentStatus) 332 throws com.liferay.portal.kernel.exception.SystemException; 333 334 /** 335 * Finds a range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 336 * 337 * <p> 338 * 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. 339 * </p> 340 * 341 * @param groupId the group id to search with 342 * @param userId the user id to search with 343 * @param ppPaymentStatus the pp payment status to search with 344 * @param start the lower bound of the range of shopping orders to return 345 * @param end the upper bound of the range of shopping orders to return (not inclusive) 346 * @return the range of matching shopping orders 347 * @throws SystemException if a system exception occurred 348 */ 349 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS( 350 long groupId, long userId, java.lang.String ppPaymentStatus, int start, 351 int end) throws com.liferay.portal.kernel.exception.SystemException; 352 353 /** 354 * Finds an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 355 * 356 * <p> 357 * 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. 358 * </p> 359 * 360 * @param groupId the group id to search with 361 * @param userId the user id to search with 362 * @param ppPaymentStatus the pp payment status to search with 363 * @param start the lower bound of the range of shopping orders to return 364 * @param end the upper bound of the range of shopping orders to return (not inclusive) 365 * @param orderByComparator the comparator to order the results by 366 * @return the ordered range of matching shopping orders 367 * @throws SystemException if a system exception occurred 368 */ 369 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS( 370 long groupId, long userId, java.lang.String ppPaymentStatus, int start, 371 int end, 372 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 373 throws com.liferay.portal.kernel.exception.SystemException; 374 375 /** 376 * Finds the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 377 * 378 * <p> 379 * 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. 380 * </p> 381 * 382 * @param groupId the group id to search with 383 * @param userId the user id to search with 384 * @param ppPaymentStatus the pp payment status to search with 385 * @param orderByComparator the comparator to order the set by 386 * @return the first matching shopping order 387 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 388 * @throws SystemException if a system exception occurred 389 */ 390 public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First( 391 long groupId, long userId, java.lang.String ppPaymentStatus, 392 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 393 throws com.liferay.portal.kernel.exception.SystemException, 394 com.liferay.portlet.shopping.NoSuchOrderException; 395 396 /** 397 * Finds the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 398 * 399 * <p> 400 * 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. 401 * </p> 402 * 403 * @param groupId the group id to search with 404 * @param userId the user id to search with 405 * @param ppPaymentStatus the pp payment status to search with 406 * @param orderByComparator the comparator to order the set by 407 * @return the last matching shopping order 408 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 409 * @throws SystemException if a system exception occurred 410 */ 411 public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last( 412 long groupId, long userId, java.lang.String ppPaymentStatus, 413 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 414 throws com.liferay.portal.kernel.exception.SystemException, 415 com.liferay.portlet.shopping.NoSuchOrderException; 416 417 /** 418 * Finds the shopping orders before and after the current shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 419 * 420 * <p> 421 * 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. 422 * </p> 423 * 424 * @param orderId the primary key of the current shopping order 425 * @param groupId the group id to search with 426 * @param userId the user id to search with 427 * @param ppPaymentStatus the pp payment status to search with 428 * @param orderByComparator the comparator to order the set by 429 * @return the previous, current, and next shopping order 430 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 431 * @throws SystemException if a system exception occurred 432 */ 433 public com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext( 434 long orderId, long groupId, long userId, 435 java.lang.String ppPaymentStatus, 436 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 437 throws com.liferay.portal.kernel.exception.SystemException, 438 com.liferay.portlet.shopping.NoSuchOrderException; 439 440 /** 441 * Filters by the user's permissions and finds all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 442 * 443 * @param groupId the group id to search with 444 * @param userId the user id to search with 445 * @param ppPaymentStatus the pp payment status to search with 446 * @return the matching shopping orders that the user has permission to view 447 * @throws SystemException if a system exception occurred 448 */ 449 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS( 450 long groupId, long userId, java.lang.String ppPaymentStatus) 451 throws com.liferay.portal.kernel.exception.SystemException; 452 453 /** 454 * Filters by the user's permissions and finds a range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 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. 458 * </p> 459 * 460 * @param groupId the group id to search with 461 * @param userId the user id to search with 462 * @param ppPaymentStatus the pp payment status to search with 463 * @param start the lower bound of the range of shopping orders to return 464 * @param end the upper bound of the range of shopping orders to return (not inclusive) 465 * @return the range of matching shopping orders that the user has permission to view 466 * @throws SystemException if a system exception occurred 467 */ 468 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS( 469 long groupId, long userId, java.lang.String ppPaymentStatus, int start, 470 int end) throws com.liferay.portal.kernel.exception.SystemException; 471 472 /** 473 * Filters by the user's permissions and finds an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 474 * 475 * <p> 476 * 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. 477 * </p> 478 * 479 * @param groupId the group id to search with 480 * @param userId the user id to search with 481 * @param ppPaymentStatus the pp payment status to search with 482 * @param start the lower bound of the range of shopping orders to return 483 * @param end the upper bound of the range of shopping orders to return (not inclusive) 484 * @param orderByComparator the comparator to order the results by 485 * @return the ordered range of matching shopping orders that the user has permission to view 486 * @throws SystemException if a system exception occurred 487 */ 488 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS( 489 long groupId, long userId, java.lang.String ppPaymentStatus, int start, 490 int end, 491 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 492 throws com.liferay.portal.kernel.exception.SystemException; 493 494 /** 495 * Finds all the shopping orders. 496 * 497 * @return the shopping orders 498 * @throws SystemException if a system exception occurred 499 */ 500 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll() 501 throws com.liferay.portal.kernel.exception.SystemException; 502 503 /** 504 * Finds a range of all the shopping orders. 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. 508 * </p> 509 * 510 * @param start the lower bound of the range of shopping orders to return 511 * @param end the upper bound of the range of shopping orders to return (not inclusive) 512 * @return the range of shopping orders 513 * @throws SystemException if a system exception occurred 514 */ 515 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll( 516 int start, int end) 517 throws com.liferay.portal.kernel.exception.SystemException; 518 519 /** 520 * Finds an ordered range of all the shopping orders. 521 * 522 * <p> 523 * 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. 524 * </p> 525 * 526 * @param start the lower bound of the range of shopping orders to return 527 * @param end the upper bound of the range of shopping orders to return (not inclusive) 528 * @param orderByComparator the comparator to order the results by 529 * @return the ordered range of shopping orders 530 * @throws SystemException if a system exception occurred 531 */ 532 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll( 533 int start, int end, 534 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 535 throws com.liferay.portal.kernel.exception.SystemException; 536 537 /** 538 * Removes all the shopping orders where groupId = ? from the database. 539 * 540 * @param groupId the group id to search with 541 * @throws SystemException if a system exception occurred 542 */ 543 public void removeByGroupId(long groupId) 544 throws com.liferay.portal.kernel.exception.SystemException; 545 546 /** 547 * Removes the shopping order where number = ? from the database. 548 * 549 * @param number the number to search with 550 * @throws SystemException if a system exception occurred 551 */ 552 public void removeByNumber(java.lang.String number) 553 throws com.liferay.portal.kernel.exception.SystemException, 554 com.liferay.portlet.shopping.NoSuchOrderException; 555 556 /** 557 * Removes the shopping order where ppTxnId = ? from the database. 558 * 559 * @param ppTxnId the pp txn id to search with 560 * @throws SystemException if a system exception occurred 561 */ 562 public void removeByPPTxnId(java.lang.String ppTxnId) 563 throws com.liferay.portal.kernel.exception.SystemException, 564 com.liferay.portlet.shopping.NoSuchOrderException; 565 566 /** 567 * Removes all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ? from the database. 568 * 569 * @param groupId the group id to search with 570 * @param userId the user id to search with 571 * @param ppPaymentStatus the pp payment status to search with 572 * @throws SystemException if a system exception occurred 573 */ 574 public void removeByG_U_PPPS(long groupId, long userId, 575 java.lang.String ppPaymentStatus) 576 throws com.liferay.portal.kernel.exception.SystemException; 577 578 /** 579 * Removes all the shopping orders from the database. 580 * 581 * @throws SystemException if a system exception occurred 582 */ 583 public void removeAll() 584 throws com.liferay.portal.kernel.exception.SystemException; 585 586 /** 587 * Counts all the shopping orders where groupId = ?. 588 * 589 * @param groupId the group id to search with 590 * @return the number of matching shopping orders 591 * @throws SystemException if a system exception occurred 592 */ 593 public int countByGroupId(long groupId) 594 throws com.liferay.portal.kernel.exception.SystemException; 595 596 /** 597 * Filters by the user's permissions and counts all the shopping orders where groupId = ?. 598 * 599 * @param groupId the group id to search with 600 * @return the number of matching shopping orders that the user has permission to view 601 * @throws SystemException if a system exception occurred 602 */ 603 public int filterCountByGroupId(long groupId) 604 throws com.liferay.portal.kernel.exception.SystemException; 605 606 /** 607 * Counts all the shopping orders where number = ?. 608 * 609 * @param number the number to search with 610 * @return the number of matching shopping orders 611 * @throws SystemException if a system exception occurred 612 */ 613 public int countByNumber(java.lang.String number) 614 throws com.liferay.portal.kernel.exception.SystemException; 615 616 /** 617 * Counts all the shopping orders where ppTxnId = ?. 618 * 619 * @param ppTxnId the pp txn id to search with 620 * @return the number of matching shopping orders 621 * @throws SystemException if a system exception occurred 622 */ 623 public int countByPPTxnId(java.lang.String ppTxnId) 624 throws com.liferay.portal.kernel.exception.SystemException; 625 626 /** 627 * Counts all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 628 * 629 * @param groupId the group id to search with 630 * @param userId the user id to search with 631 * @param ppPaymentStatus the pp payment status to search with 632 * @return the number of matching shopping orders 633 * @throws SystemException if a system exception occurred 634 */ 635 public int countByG_U_PPPS(long groupId, long userId, 636 java.lang.String ppPaymentStatus) 637 throws com.liferay.portal.kernel.exception.SystemException; 638 639 /** 640 * Filters by the user's permissions and counts all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 641 * 642 * @param groupId the group id to search with 643 * @param userId the user id to search with 644 * @param ppPaymentStatus the pp payment status to search with 645 * @return the number of matching shopping orders that the user has permission to view 646 * @throws SystemException if a system exception occurred 647 */ 648 public int filterCountByG_U_PPPS(long groupId, long userId, 649 java.lang.String ppPaymentStatus) 650 throws com.liferay.portal.kernel.exception.SystemException; 651 652 /** 653 * Counts all the shopping orders. 654 * 655 * @return the number of shopping orders 656 * @throws SystemException if a system exception occurred 657 */ 658 public int countAll() 659 throws com.liferay.portal.kernel.exception.SystemException; 660 }