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