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