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