001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.shopping.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.shopping.model.ShoppingOrder; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the shopping order service. This utility wraps {@link ShoppingOrderPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see ShoppingOrderPersistence 037 * @see ShoppingOrderPersistenceImpl 038 * @generated 039 */ 040 public class ShoppingOrderUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(ShoppingOrder shoppingOrder) { 058 getPersistence().clearCache(shoppingOrder); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<ShoppingOrder> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<ShoppingOrder> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<ShoppingOrder> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 099 */ 100 public static ShoppingOrder update(ShoppingOrder shoppingOrder, 101 boolean merge) throws SystemException { 102 return getPersistence().update(shoppingOrder, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static ShoppingOrder update(ShoppingOrder shoppingOrder, 109 boolean merge, ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(shoppingOrder, merge, serviceContext); 111 } 112 113 /** 114 * Caches the shopping order in the entity cache if it is enabled. 115 * 116 * @param shoppingOrder the shopping order 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder) { 120 getPersistence().cacheResult(shoppingOrder); 121 } 122 123 /** 124 * Caches the shopping orders in the entity cache if it is enabled. 125 * 126 * @param shoppingOrders the shopping orders 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> shoppingOrders) { 130 getPersistence().cacheResult(shoppingOrders); 131 } 132 133 /** 134 * Creates a new shopping order with the primary key. Does not add the shopping order to the database. 135 * 136 * @param orderId the primary key for the new shopping order 137 * @return the new shopping order 138 */ 139 public static com.liferay.portlet.shopping.model.ShoppingOrder create( 140 long orderId) { 141 return getPersistence().create(orderId); 142 } 143 144 /** 145 * Removes the shopping order with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param orderId the primary key of the shopping order 148 * @return the shopping order that was removed 149 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.shopping.model.ShoppingOrder remove( 153 long orderId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.shopping.NoSuchOrderException { 156 return getPersistence().remove(orderId); 157 } 158 159 public static com.liferay.portlet.shopping.model.ShoppingOrder updateImpl( 160 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder, 161 boolean merge) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(shoppingOrder, merge); 164 } 165 166 /** 167 * Returns the shopping order with the primary key or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found. 168 * 169 * @param orderId the primary key of the shopping order 170 * @return the shopping order 171 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey( 175 long orderId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.shopping.NoSuchOrderException { 178 return getPersistence().findByPrimaryKey(orderId); 179 } 180 181 /** 182 * Returns the shopping order with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param orderId the primary key of the shopping order 185 * @return the shopping order, or <code>null</code> if a shopping order with the primary key could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey( 189 long orderId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(orderId); 192 } 193 194 /** 195 * Returns all the shopping orders where groupId = ?. 196 * 197 * @param groupId the group ID 198 * @return the matching shopping orders 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId( 202 long groupId) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByGroupId(groupId); 205 } 206 207 /** 208 * Returns a range of all the shopping orders where groupId = ?. 209 * 210 * <p> 211 * 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. 212 * </p> 213 * 214 * @param groupId the group ID 215 * @param start the lower bound of the range of shopping orders 216 * @param end the upper bound of the range of shopping orders (not inclusive) 217 * @return the range of matching shopping orders 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId( 221 long groupId, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByGroupId(groupId, start, end); 224 } 225 226 /** 227 * Returns an ordered range of all the shopping orders where groupId = ?. 228 * 229 * <p> 230 * 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. 231 * </p> 232 * 233 * @param groupId the group ID 234 * @param start the lower bound of the range of shopping orders 235 * @param end the upper bound of the range of shopping orders (not inclusive) 236 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 237 * @return the ordered range of matching shopping orders 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId( 241 long groupId, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence() 245 .findByGroupId(groupId, start, end, orderByComparator); 246 } 247 248 /** 249 * Returns the first shopping order in the ordered set where groupId = ?. 250 * 251 * @param groupId the group ID 252 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 253 * @return the first matching shopping order 254 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 255 * @throws SystemException if a system exception occurred 256 */ 257 public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First( 258 long groupId, 259 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 260 throws com.liferay.portal.kernel.exception.SystemException, 261 com.liferay.portlet.shopping.NoSuchOrderException { 262 return getPersistence().findByGroupId_First(groupId, orderByComparator); 263 } 264 265 /** 266 * Returns the first shopping order in the ordered set where groupId = ?. 267 * 268 * @param groupId the group ID 269 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 270 * @return the first matching shopping order, or <code>null</code> if a matching shopping order could not be found 271 * @throws SystemException if a system exception occurred 272 */ 273 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByGroupId_First( 274 long groupId, 275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 276 throws com.liferay.portal.kernel.exception.SystemException { 277 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 278 } 279 280 /** 281 * Returns the last shopping order in the ordered set where groupId = ?. 282 * 283 * @param groupId the group ID 284 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 285 * @return the last matching shopping order 286 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 287 * @throws SystemException if a system exception occurred 288 */ 289 public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last( 290 long groupId, 291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 292 throws com.liferay.portal.kernel.exception.SystemException, 293 com.liferay.portlet.shopping.NoSuchOrderException { 294 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 295 } 296 297 /** 298 * Returns the last shopping order in the ordered set where groupId = ?. 299 * 300 * @param groupId the group ID 301 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 302 * @return the last 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 static com.liferay.portlet.shopping.model.ShoppingOrder fetchByGroupId_Last( 306 long groupId, 307 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 308 throws com.liferay.portal.kernel.exception.SystemException { 309 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 310 } 311 312 /** 313 * Returns the shopping orders before and after the current shopping order in the ordered set where groupId = ?. 314 * 315 * @param orderId the primary key of the current shopping order 316 * @param groupId the group ID 317 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 318 * @return the previous, current, and next shopping order 319 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 320 * @throws SystemException if a system exception occurred 321 */ 322 public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext( 323 long orderId, long groupId, 324 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 325 throws com.liferay.portal.kernel.exception.SystemException, 326 com.liferay.portlet.shopping.NoSuchOrderException { 327 return getPersistence() 328 .findByGroupId_PrevAndNext(orderId, groupId, 329 orderByComparator); 330 } 331 332 /** 333 * Returns all the shopping orders that the user has permission to view where groupId = ?. 334 * 335 * @param groupId the group ID 336 * @return the matching shopping orders that the user has permission to view 337 * @throws SystemException if a system exception occurred 338 */ 339 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId( 340 long groupId) 341 throws com.liferay.portal.kernel.exception.SystemException { 342 return getPersistence().filterFindByGroupId(groupId); 343 } 344 345 /** 346 * Returns a range of all the shopping orders that the user has permission to view where groupId = ?. 347 * 348 * <p> 349 * 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. 350 * </p> 351 * 352 * @param groupId the group ID 353 * @param start the lower bound of the range of shopping orders 354 * @param end the upper bound of the range of shopping orders (not inclusive) 355 * @return the range of matching shopping orders that the user has permission to view 356 * @throws SystemException if a system exception occurred 357 */ 358 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId( 359 long groupId, int start, int end) 360 throws com.liferay.portal.kernel.exception.SystemException { 361 return getPersistence().filterFindByGroupId(groupId, start, end); 362 } 363 364 /** 365 * Returns an ordered range of all the shopping orders that the user has permissions to view where groupId = ?. 366 * 367 * <p> 368 * 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. 369 * </p> 370 * 371 * @param groupId the group ID 372 * @param start the lower bound of the range of shopping orders 373 * @param end the upper bound of the range of shopping orders (not inclusive) 374 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 375 * @return the ordered range of matching shopping orders that the user has permission to view 376 * @throws SystemException if a system exception occurred 377 */ 378 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId( 379 long groupId, int start, int end, 380 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 381 throws com.liferay.portal.kernel.exception.SystemException { 382 return getPersistence() 383 .filterFindByGroupId(groupId, start, end, orderByComparator); 384 } 385 386 /** 387 * 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 = ?. 388 * 389 * @param orderId the primary key of the current shopping order 390 * @param groupId the group ID 391 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 392 * @return the previous, current, and next shopping order 393 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 394 * @throws SystemException if a system exception occurred 395 */ 396 public static com.liferay.portlet.shopping.model.ShoppingOrder[] filterFindByGroupId_PrevAndNext( 397 long orderId, long groupId, 398 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 399 throws com.liferay.portal.kernel.exception.SystemException, 400 com.liferay.portlet.shopping.NoSuchOrderException { 401 return getPersistence() 402 .filterFindByGroupId_PrevAndNext(orderId, groupId, 403 orderByComparator); 404 } 405 406 /** 407 * Returns the shopping order where number = ? or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found. 408 * 409 * @param number the number 410 * @return the 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 static com.liferay.portlet.shopping.model.ShoppingOrder findByNumber( 415 java.lang.String number) 416 throws com.liferay.portal.kernel.exception.SystemException, 417 com.liferay.portlet.shopping.NoSuchOrderException { 418 return getPersistence().findByNumber(number); 419 } 420 421 /** 422 * Returns the shopping order where number = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 423 * 424 * @param number the number 425 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 426 * @throws SystemException if a system exception occurred 427 */ 428 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber( 429 java.lang.String number) 430 throws com.liferay.portal.kernel.exception.SystemException { 431 return getPersistence().fetchByNumber(number); 432 } 433 434 /** 435 * Returns the shopping order where number = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 436 * 437 * @param number the number 438 * @param retrieveFromCache whether to use the finder cache 439 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 440 * @throws SystemException if a system exception occurred 441 */ 442 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber( 443 java.lang.String number, boolean retrieveFromCache) 444 throws com.liferay.portal.kernel.exception.SystemException { 445 return getPersistence().fetchByNumber(number, retrieveFromCache); 446 } 447 448 /** 449 * Returns the shopping order where ppTxnId = ? or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found. 450 * 451 * @param ppTxnId the pp txn ID 452 * @return the matching shopping order 453 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 454 * @throws SystemException if a system exception occurred 455 */ 456 public static com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId( 457 java.lang.String ppTxnId) 458 throws com.liferay.portal.kernel.exception.SystemException, 459 com.liferay.portlet.shopping.NoSuchOrderException { 460 return getPersistence().findByPPTxnId(ppTxnId); 461 } 462 463 /** 464 * Returns the shopping order where ppTxnId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 465 * 466 * @param ppTxnId the pp txn ID 467 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 468 * @throws SystemException if a system exception occurred 469 */ 470 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId( 471 java.lang.String ppTxnId) 472 throws com.liferay.portal.kernel.exception.SystemException { 473 return getPersistence().fetchByPPTxnId(ppTxnId); 474 } 475 476 /** 477 * Returns the shopping order where ppTxnId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 478 * 479 * @param ppTxnId the pp txn ID 480 * @param retrieveFromCache whether to use the finder cache 481 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 482 * @throws SystemException if a system exception occurred 483 */ 484 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId( 485 java.lang.String ppTxnId, boolean retrieveFromCache) 486 throws com.liferay.portal.kernel.exception.SystemException { 487 return getPersistence().fetchByPPTxnId(ppTxnId, retrieveFromCache); 488 } 489 490 /** 491 * Returns all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 492 * 493 * @param groupId the group ID 494 * @param userId the user ID 495 * @param ppPaymentStatus the pp payment status 496 * @return the matching shopping orders 497 * @throws SystemException if a system exception occurred 498 */ 499 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS( 500 long groupId, long userId, java.lang.String ppPaymentStatus) 501 throws com.liferay.portal.kernel.exception.SystemException { 502 return getPersistence().findByG_U_PPPS(groupId, userId, ppPaymentStatus); 503 } 504 505 /** 506 * Returns a range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 507 * 508 * <p> 509 * 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. 510 * </p> 511 * 512 * @param groupId the group ID 513 * @param userId the user ID 514 * @param ppPaymentStatus the pp payment status 515 * @param start the lower bound of the range of shopping orders 516 * @param end the upper bound of the range of shopping orders (not inclusive) 517 * @return the range of matching shopping orders 518 * @throws SystemException if a system exception occurred 519 */ 520 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS( 521 long groupId, long userId, java.lang.String ppPaymentStatus, int start, 522 int end) throws com.liferay.portal.kernel.exception.SystemException { 523 return getPersistence() 524 .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start, end); 525 } 526 527 /** 528 * Returns an ordered range of all the shopping orders 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 541 * @throws SystemException if a system exception occurred 542 */ 543 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_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 return getPersistence() 549 .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start, 550 end, orderByComparator); 551 } 552 553 /** 554 * Returns the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 555 * 556 * @param groupId the group ID 557 * @param userId the user ID 558 * @param ppPaymentStatus the pp payment status 559 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 560 * @return the first matching shopping order 561 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 562 * @throws SystemException if a system exception occurred 563 */ 564 public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First( 565 long groupId, long userId, java.lang.String ppPaymentStatus, 566 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 567 throws com.liferay.portal.kernel.exception.SystemException, 568 com.liferay.portlet.shopping.NoSuchOrderException { 569 return getPersistence() 570 .findByG_U_PPPS_First(groupId, userId, ppPaymentStatus, 571 orderByComparator); 572 } 573 574 /** 575 * Returns the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 576 * 577 * @param groupId the group ID 578 * @param userId the user ID 579 * @param ppPaymentStatus the pp payment status 580 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 581 * @return the first matching shopping order, or <code>null</code> if a matching shopping order could not be found 582 * @throws SystemException if a system exception occurred 583 */ 584 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByG_U_PPPS_First( 585 long groupId, long userId, java.lang.String ppPaymentStatus, 586 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 587 throws com.liferay.portal.kernel.exception.SystemException { 588 return getPersistence() 589 .fetchByG_U_PPPS_First(groupId, userId, ppPaymentStatus, 590 orderByComparator); 591 } 592 593 /** 594 * Returns the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 595 * 596 * @param groupId the group ID 597 * @param userId the user ID 598 * @param ppPaymentStatus the pp payment status 599 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 600 * @return the last matching shopping order 601 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 602 * @throws SystemException if a system exception occurred 603 */ 604 public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last( 605 long groupId, long userId, java.lang.String ppPaymentStatus, 606 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 607 throws com.liferay.portal.kernel.exception.SystemException, 608 com.liferay.portlet.shopping.NoSuchOrderException { 609 return getPersistence() 610 .findByG_U_PPPS_Last(groupId, userId, ppPaymentStatus, 611 orderByComparator); 612 } 613 614 /** 615 * Returns the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 616 * 617 * @param groupId the group ID 618 * @param userId the user ID 619 * @param ppPaymentStatus the pp payment status 620 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 621 * @return the last matching shopping order, or <code>null</code> if a matching shopping order could not be found 622 * @throws SystemException if a system exception occurred 623 */ 624 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByG_U_PPPS_Last( 625 long groupId, long userId, java.lang.String ppPaymentStatus, 626 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 627 throws com.liferay.portal.kernel.exception.SystemException { 628 return getPersistence() 629 .fetchByG_U_PPPS_Last(groupId, userId, ppPaymentStatus, 630 orderByComparator); 631 } 632 633 /** 634 * Returns the shopping orders before and after the current shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 635 * 636 * @param orderId the primary key of the current shopping order 637 * @param groupId the group ID 638 * @param userId the user ID 639 * @param ppPaymentStatus the pp payment status 640 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 641 * @return the previous, current, and next shopping order 642 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 643 * @throws SystemException if a system exception occurred 644 */ 645 public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext( 646 long orderId, long groupId, long userId, 647 java.lang.String ppPaymentStatus, 648 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 649 throws com.liferay.portal.kernel.exception.SystemException, 650 com.liferay.portlet.shopping.NoSuchOrderException { 651 return getPersistence() 652 .findByG_U_PPPS_PrevAndNext(orderId, groupId, userId, 653 ppPaymentStatus, orderByComparator); 654 } 655 656 /** 657 * Returns all the shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?. 658 * 659 * @param groupId the group ID 660 * @param userId the user ID 661 * @param ppPaymentStatus the pp payment status 662 * @return the matching shopping orders that the user has permission to view 663 * @throws SystemException if a system exception occurred 664 */ 665 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS( 666 long groupId, long userId, java.lang.String ppPaymentStatus) 667 throws com.liferay.portal.kernel.exception.SystemException { 668 return getPersistence() 669 .filterFindByG_U_PPPS(groupId, userId, ppPaymentStatus); 670 } 671 672 /** 673 * Returns a range of all the shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?. 674 * 675 * <p> 676 * 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. 677 * </p> 678 * 679 * @param groupId the group ID 680 * @param userId the user ID 681 * @param ppPaymentStatus the pp payment status 682 * @param start the lower bound of the range of shopping orders 683 * @param end the upper bound of the range of shopping orders (not inclusive) 684 * @return the range of matching shopping orders that the user has permission to view 685 * @throws SystemException if a system exception occurred 686 */ 687 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS( 688 long groupId, long userId, java.lang.String ppPaymentStatus, int start, 689 int end) throws com.liferay.portal.kernel.exception.SystemException { 690 return getPersistence() 691 .filterFindByG_U_PPPS(groupId, userId, ppPaymentStatus, 692 start, end); 693 } 694 695 /** 696 * Returns an ordered range of all the shopping orders that the user has permissions to view where groupId = ? and userId = ? and ppPaymentStatus = ?. 697 * 698 * <p> 699 * 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. 700 * </p> 701 * 702 * @param groupId the group ID 703 * @param userId the user ID 704 * @param ppPaymentStatus the pp payment status 705 * @param start the lower bound of the range of shopping orders 706 * @param end the upper bound of the range of shopping orders (not inclusive) 707 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 708 * @return the ordered range of matching shopping orders that the user has permission to view 709 * @throws SystemException if a system exception occurred 710 */ 711 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS( 712 long groupId, long userId, java.lang.String ppPaymentStatus, int start, 713 int end, 714 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 715 throws com.liferay.portal.kernel.exception.SystemException { 716 return getPersistence() 717 .filterFindByG_U_PPPS(groupId, userId, ppPaymentStatus, 718 start, end, orderByComparator); 719 } 720 721 /** 722 * 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 = ?. 723 * 724 * @param orderId the primary key of the current shopping order 725 * @param groupId the group ID 726 * @param userId the user ID 727 * @param ppPaymentStatus the pp payment status 728 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 729 * @return the previous, current, and next shopping order 730 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 731 * @throws SystemException if a system exception occurred 732 */ 733 public static com.liferay.portlet.shopping.model.ShoppingOrder[] filterFindByG_U_PPPS_PrevAndNext( 734 long orderId, long groupId, long userId, 735 java.lang.String ppPaymentStatus, 736 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 737 throws com.liferay.portal.kernel.exception.SystemException, 738 com.liferay.portlet.shopping.NoSuchOrderException { 739 return getPersistence() 740 .filterFindByG_U_PPPS_PrevAndNext(orderId, groupId, userId, 741 ppPaymentStatus, orderByComparator); 742 } 743 744 /** 745 * Returns all the shopping orders. 746 * 747 * @return the shopping orders 748 * @throws SystemException if a system exception occurred 749 */ 750 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll() 751 throws com.liferay.portal.kernel.exception.SystemException { 752 return getPersistence().findAll(); 753 } 754 755 /** 756 * Returns a range of all the shopping orders. 757 * 758 * <p> 759 * 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. 760 * </p> 761 * 762 * @param start the lower bound of the range of shopping orders 763 * @param end the upper bound of the range of shopping orders (not inclusive) 764 * @return the range of shopping orders 765 * @throws SystemException if a system exception occurred 766 */ 767 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll( 768 int start, int end) 769 throws com.liferay.portal.kernel.exception.SystemException { 770 return getPersistence().findAll(start, end); 771 } 772 773 /** 774 * Returns an ordered range of all the shopping orders. 775 * 776 * <p> 777 * 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. 778 * </p> 779 * 780 * @param start the lower bound of the range of shopping orders 781 * @param end the upper bound of the range of shopping orders (not inclusive) 782 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 783 * @return the ordered range of shopping orders 784 * @throws SystemException if a system exception occurred 785 */ 786 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll( 787 int start, int end, 788 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 789 throws com.liferay.portal.kernel.exception.SystemException { 790 return getPersistence().findAll(start, end, orderByComparator); 791 } 792 793 /** 794 * Removes all the shopping orders where groupId = ? from the database. 795 * 796 * @param groupId the group ID 797 * @throws SystemException if a system exception occurred 798 */ 799 public static void removeByGroupId(long groupId) 800 throws com.liferay.portal.kernel.exception.SystemException { 801 getPersistence().removeByGroupId(groupId); 802 } 803 804 /** 805 * Removes the shopping order where number = ? from the database. 806 * 807 * @param number the number 808 * @return the shopping order that was removed 809 * @throws SystemException if a system exception occurred 810 */ 811 public static com.liferay.portlet.shopping.model.ShoppingOrder removeByNumber( 812 java.lang.String number) 813 throws com.liferay.portal.kernel.exception.SystemException, 814 com.liferay.portlet.shopping.NoSuchOrderException { 815 return getPersistence().removeByNumber(number); 816 } 817 818 /** 819 * Removes the shopping order where ppTxnId = ? from the database. 820 * 821 * @param ppTxnId the pp txn ID 822 * @return the shopping order that was removed 823 * @throws SystemException if a system exception occurred 824 */ 825 public static com.liferay.portlet.shopping.model.ShoppingOrder removeByPPTxnId( 826 java.lang.String ppTxnId) 827 throws com.liferay.portal.kernel.exception.SystemException, 828 com.liferay.portlet.shopping.NoSuchOrderException { 829 return getPersistence().removeByPPTxnId(ppTxnId); 830 } 831 832 /** 833 * Removes all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ? from the database. 834 * 835 * @param groupId the group ID 836 * @param userId the user ID 837 * @param ppPaymentStatus the pp payment status 838 * @throws SystemException if a system exception occurred 839 */ 840 public static void removeByG_U_PPPS(long groupId, long userId, 841 java.lang.String ppPaymentStatus) 842 throws com.liferay.portal.kernel.exception.SystemException { 843 getPersistence().removeByG_U_PPPS(groupId, userId, ppPaymentStatus); 844 } 845 846 /** 847 * Removes all the shopping orders from the database. 848 * 849 * @throws SystemException if a system exception occurred 850 */ 851 public static void removeAll() 852 throws com.liferay.portal.kernel.exception.SystemException { 853 getPersistence().removeAll(); 854 } 855 856 /** 857 * Returns the number of shopping orders where groupId = ?. 858 * 859 * @param groupId the group ID 860 * @return the number of matching shopping orders 861 * @throws SystemException if a system exception occurred 862 */ 863 public static int countByGroupId(long groupId) 864 throws com.liferay.portal.kernel.exception.SystemException { 865 return getPersistence().countByGroupId(groupId); 866 } 867 868 /** 869 * Returns the number of shopping orders that the user has permission to view where groupId = ?. 870 * 871 * @param groupId the group ID 872 * @return the number of matching shopping orders that the user has permission to view 873 * @throws SystemException if a system exception occurred 874 */ 875 public static int filterCountByGroupId(long groupId) 876 throws com.liferay.portal.kernel.exception.SystemException { 877 return getPersistence().filterCountByGroupId(groupId); 878 } 879 880 /** 881 * Returns the number of shopping orders where number = ?. 882 * 883 * @param number the number 884 * @return the number of matching shopping orders 885 * @throws SystemException if a system exception occurred 886 */ 887 public static int countByNumber(java.lang.String number) 888 throws com.liferay.portal.kernel.exception.SystemException { 889 return getPersistence().countByNumber(number); 890 } 891 892 /** 893 * Returns the number of shopping orders where ppTxnId = ?. 894 * 895 * @param ppTxnId the pp txn ID 896 * @return the number of matching shopping orders 897 * @throws SystemException if a system exception occurred 898 */ 899 public static int countByPPTxnId(java.lang.String ppTxnId) 900 throws com.liferay.portal.kernel.exception.SystemException { 901 return getPersistence().countByPPTxnId(ppTxnId); 902 } 903 904 /** 905 * Returns the number of shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 906 * 907 * @param groupId the group ID 908 * @param userId the user ID 909 * @param ppPaymentStatus the pp payment status 910 * @return the number of matching shopping orders 911 * @throws SystemException if a system exception occurred 912 */ 913 public static int countByG_U_PPPS(long groupId, long userId, 914 java.lang.String ppPaymentStatus) 915 throws com.liferay.portal.kernel.exception.SystemException { 916 return getPersistence().countByG_U_PPPS(groupId, userId, ppPaymentStatus); 917 } 918 919 /** 920 * Returns the number of shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?. 921 * 922 * @param groupId the group ID 923 * @param userId the user ID 924 * @param ppPaymentStatus the pp payment status 925 * @return the number of matching shopping orders that the user has permission to view 926 * @throws SystemException if a system exception occurred 927 */ 928 public static int filterCountByG_U_PPPS(long groupId, long userId, 929 java.lang.String ppPaymentStatus) 930 throws com.liferay.portal.kernel.exception.SystemException { 931 return getPersistence() 932 .filterCountByG_U_PPPS(groupId, userId, ppPaymentStatus); 933 } 934 935 /** 936 * Returns the number of shopping orders. 937 * 938 * @return the number of shopping orders 939 * @throws SystemException if a system exception occurred 940 */ 941 public static int countAll() 942 throws com.liferay.portal.kernel.exception.SystemException { 943 return getPersistence().countAll(); 944 } 945 946 public static ShoppingOrderPersistence getPersistence() { 947 if (_persistence == null) { 948 _persistence = (ShoppingOrderPersistence)PortalBeanLocatorUtil.locate(ShoppingOrderPersistence.class.getName()); 949 950 ReferenceRegistry.registerReference(ShoppingOrderUtil.class, 951 "_persistence"); 952 } 953 954 return _persistence; 955 } 956 957 /** 958 * @deprecated 959 */ 960 public void setPersistence(ShoppingOrderPersistence persistence) { 961 } 962 963 private static ShoppingOrderPersistence _persistence; 964 }