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