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.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) 099 */ 100 public static ShoppingOrder update(ShoppingOrder shoppingOrder) 101 throws SystemException { 102 return getPersistence().update(shoppingOrder); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static ShoppingOrder update(ShoppingOrder shoppingOrder, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(shoppingOrder, 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 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().updateImpl(shoppingOrder); 163 } 164 165 /** 166 * Returns the shopping order with the primary key or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found. 167 * 168 * @param orderId the primary key of the shopping order 169 * @return the shopping order 170 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public static com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey( 174 long orderId) 175 throws com.liferay.portal.kernel.exception.SystemException, 176 com.liferay.portlet.shopping.NoSuchOrderException { 177 return getPersistence().findByPrimaryKey(orderId); 178 } 179 180 /** 181 * Returns the shopping order with the primary key or returns <code>null</code> if it could not be found. 182 * 183 * @param orderId the primary key of the shopping order 184 * @return the shopping order, or <code>null</code> if a shopping order with the primary key could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey( 188 long orderId) 189 throws com.liferay.portal.kernel.exception.SystemException { 190 return getPersistence().fetchByPrimaryKey(orderId); 191 } 192 193 /** 194 * Returns all the shopping orders where groupId = ?. 195 * 196 * @param groupId the group ID 197 * @return the matching shopping orders 198 * @throws SystemException if a system exception occurred 199 */ 200 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId( 201 long groupId) 202 throws com.liferay.portal.kernel.exception.SystemException { 203 return getPersistence().findByGroupId(groupId); 204 } 205 206 /** 207 * Returns a range of all the shopping orders where groupId = ?. 208 * 209 * <p> 210 * 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. 211 * </p> 212 * 213 * @param groupId the group ID 214 * @param start the lower bound of the range of shopping orders 215 * @param end the upper bound of the range of shopping orders (not inclusive) 216 * @return the range of matching shopping orders 217 * @throws SystemException if a system exception occurred 218 */ 219 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId( 220 long groupId, int start, int end) 221 throws com.liferay.portal.kernel.exception.SystemException { 222 return getPersistence().findByGroupId(groupId, start, end); 223 } 224 225 /** 226 * Returns an ordered range of all the shopping orders where groupId = ?. 227 * 228 * <p> 229 * 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. 230 * </p> 231 * 232 * @param groupId the group ID 233 * @param start the lower bound of the range of shopping orders 234 * @param end the upper bound of the range of shopping orders (not inclusive) 235 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 236 * @return the ordered range of matching shopping orders 237 * @throws SystemException if a system exception occurred 238 */ 239 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId( 240 long groupId, int start, int end, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException { 243 return getPersistence() 244 .findByGroupId(groupId, start, end, orderByComparator); 245 } 246 247 /** 248 * Returns the first shopping order in the ordered set where groupId = ?. 249 * 250 * @param groupId the group ID 251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 252 * @return the first matching shopping order 253 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 254 * @throws SystemException if a system exception occurred 255 */ 256 public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First( 257 long groupId, 258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 259 throws com.liferay.portal.kernel.exception.SystemException, 260 com.liferay.portlet.shopping.NoSuchOrderException { 261 return getPersistence().findByGroupId_First(groupId, orderByComparator); 262 } 263 264 /** 265 * Returns the first shopping order in the ordered set where groupId = ?. 266 * 267 * @param groupId the group ID 268 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 269 * @return the first matching shopping order, or <code>null</code> if a matching shopping order could not be found 270 * @throws SystemException if a system exception occurred 271 */ 272 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByGroupId_First( 273 long groupId, 274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 275 throws com.liferay.portal.kernel.exception.SystemException { 276 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 277 } 278 279 /** 280 * Returns the last shopping order in the ordered set where groupId = ?. 281 * 282 * @param groupId the group ID 283 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 284 * @return the last matching shopping order 285 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 286 * @throws SystemException if a system exception occurred 287 */ 288 public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last( 289 long groupId, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.kernel.exception.SystemException, 292 com.liferay.portlet.shopping.NoSuchOrderException { 293 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 294 } 295 296 /** 297 * Returns the last shopping order in the ordered set where groupId = ?. 298 * 299 * @param groupId the group ID 300 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 301 * @return the last matching shopping order, or <code>null</code> if a matching shopping order could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByGroupId_Last( 305 long groupId, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException { 308 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 309 } 310 311 /** 312 * Returns the shopping orders before and after the current shopping order in the ordered set where groupId = ?. 313 * 314 * @param orderId the primary key of the current shopping order 315 * @param groupId the group ID 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the previous, current, and next shopping order 318 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext( 322 long orderId, long groupId, 323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.shopping.NoSuchOrderException { 326 return getPersistence() 327 .findByGroupId_PrevAndNext(orderId, groupId, 328 orderByComparator); 329 } 330 331 /** 332 * Returns all the shopping orders that the user has permission to view where groupId = ?. 333 * 334 * @param groupId the group ID 335 * @return the matching shopping orders that the user has permission to view 336 * @throws SystemException if a system exception occurred 337 */ 338 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId( 339 long groupId) 340 throws com.liferay.portal.kernel.exception.SystemException { 341 return getPersistence().filterFindByGroupId(groupId); 342 } 343 344 /** 345 * Returns a range of all the shopping orders that the user has permission to view where groupId = ?. 346 * 347 * <p> 348 * 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. 349 * </p> 350 * 351 * @param groupId the group ID 352 * @param start the lower bound of the range of shopping orders 353 * @param end the upper bound of the range of shopping orders (not inclusive) 354 * @return the range of matching shopping orders that the user has permission to view 355 * @throws SystemException if a system exception occurred 356 */ 357 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId( 358 long groupId, int start, int end) 359 throws com.liferay.portal.kernel.exception.SystemException { 360 return getPersistence().filterFindByGroupId(groupId, start, end); 361 } 362 363 /** 364 * Returns an ordered range of all the shopping orders that the user has permissions to view where groupId = ?. 365 * 366 * <p> 367 * 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. 368 * </p> 369 * 370 * @param groupId the group ID 371 * @param start the lower bound of the range of shopping orders 372 * @param end the upper bound of the range of shopping orders (not inclusive) 373 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 374 * @return the ordered range of matching shopping orders that the user has permission to view 375 * @throws SystemException if a system exception occurred 376 */ 377 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId( 378 long groupId, int start, int end, 379 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 380 throws com.liferay.portal.kernel.exception.SystemException { 381 return getPersistence() 382 .filterFindByGroupId(groupId, start, end, orderByComparator); 383 } 384 385 /** 386 * 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 = ?. 387 * 388 * @param orderId the primary key of the current shopping order 389 * @param groupId the group ID 390 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 391 * @return the previous, current, and next shopping order 392 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 393 * @throws SystemException if a system exception occurred 394 */ 395 public static com.liferay.portlet.shopping.model.ShoppingOrder[] filterFindByGroupId_PrevAndNext( 396 long orderId, long groupId, 397 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 398 throws com.liferay.portal.kernel.exception.SystemException, 399 com.liferay.portlet.shopping.NoSuchOrderException { 400 return getPersistence() 401 .filterFindByGroupId_PrevAndNext(orderId, groupId, 402 orderByComparator); 403 } 404 405 /** 406 * Returns the shopping order where number = ? or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found. 407 * 408 * @param number the number 409 * @return the matching shopping order 410 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 411 * @throws SystemException if a system exception occurred 412 */ 413 public static com.liferay.portlet.shopping.model.ShoppingOrder findByNumber( 414 java.lang.String number) 415 throws com.liferay.portal.kernel.exception.SystemException, 416 com.liferay.portlet.shopping.NoSuchOrderException { 417 return getPersistence().findByNumber(number); 418 } 419 420 /** 421 * Returns the shopping order where number = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 422 * 423 * @param number the number 424 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 425 * @throws SystemException if a system exception occurred 426 */ 427 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber( 428 java.lang.String number) 429 throws com.liferay.portal.kernel.exception.SystemException { 430 return getPersistence().fetchByNumber(number); 431 } 432 433 /** 434 * Returns the shopping order where number = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 435 * 436 * @param number the number 437 * @param retrieveFromCache whether to use the finder cache 438 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 439 * @throws SystemException if a system exception occurred 440 */ 441 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber( 442 java.lang.String number, boolean retrieveFromCache) 443 throws com.liferay.portal.kernel.exception.SystemException { 444 return getPersistence().fetchByNumber(number, retrieveFromCache); 445 } 446 447 /** 448 * Returns the shopping order where ppTxnId = ? or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found. 449 * 450 * @param ppTxnId the pp txn ID 451 * @return the matching shopping order 452 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 453 * @throws SystemException if a system exception occurred 454 */ 455 public static com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId( 456 java.lang.String ppTxnId) 457 throws com.liferay.portal.kernel.exception.SystemException, 458 com.liferay.portlet.shopping.NoSuchOrderException { 459 return getPersistence().findByPPTxnId(ppTxnId); 460 } 461 462 /** 463 * Returns the shopping order where ppTxnId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 464 * 465 * @param ppTxnId the pp txn ID 466 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 467 * @throws SystemException if a system exception occurred 468 */ 469 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId( 470 java.lang.String ppTxnId) 471 throws com.liferay.portal.kernel.exception.SystemException { 472 return getPersistence().fetchByPPTxnId(ppTxnId); 473 } 474 475 /** 476 * Returns the shopping order where ppTxnId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 477 * 478 * @param ppTxnId the pp txn ID 479 * @param retrieveFromCache whether to use the finder cache 480 * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found 481 * @throws SystemException if a system exception occurred 482 */ 483 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId( 484 java.lang.String ppTxnId, boolean retrieveFromCache) 485 throws com.liferay.portal.kernel.exception.SystemException { 486 return getPersistence().fetchByPPTxnId(ppTxnId, retrieveFromCache); 487 } 488 489 /** 490 * Returns all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 491 * 492 * @param groupId the group ID 493 * @param userId the user ID 494 * @param ppPaymentStatus the pp payment status 495 * @return the matching shopping orders 496 * @throws SystemException if a system exception occurred 497 */ 498 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS( 499 long groupId, long userId, java.lang.String ppPaymentStatus) 500 throws com.liferay.portal.kernel.exception.SystemException { 501 return getPersistence().findByG_U_PPPS(groupId, userId, ppPaymentStatus); 502 } 503 504 /** 505 * Returns a range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 506 * 507 * <p> 508 * 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. 509 * </p> 510 * 511 * @param groupId the group ID 512 * @param userId the user ID 513 * @param ppPaymentStatus the pp payment status 514 * @param start the lower bound of the range of shopping orders 515 * @param end the upper bound of the range of shopping orders (not inclusive) 516 * @return the range of matching shopping orders 517 * @throws SystemException if a system exception occurred 518 */ 519 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS( 520 long groupId, long userId, java.lang.String ppPaymentStatus, int start, 521 int end) throws com.liferay.portal.kernel.exception.SystemException { 522 return getPersistence() 523 .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start, end); 524 } 525 526 /** 527 * Returns an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 528 * 529 * <p> 530 * 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. 531 * </p> 532 * 533 * @param groupId the group ID 534 * @param userId the user ID 535 * @param ppPaymentStatus the pp payment status 536 * @param start the lower bound of the range of shopping orders 537 * @param end the upper bound of the range of shopping orders (not inclusive) 538 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 539 * @return the ordered range of matching shopping orders 540 * @throws SystemException if a system exception occurred 541 */ 542 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS( 543 long groupId, long userId, java.lang.String ppPaymentStatus, int start, 544 int end, 545 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 546 throws com.liferay.portal.kernel.exception.SystemException { 547 return getPersistence() 548 .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start, 549 end, orderByComparator); 550 } 551 552 /** 553 * Returns the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 554 * 555 * @param groupId the group ID 556 * @param userId the user ID 557 * @param ppPaymentStatus the pp payment status 558 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 559 * @return the first matching shopping order 560 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 561 * @throws SystemException if a system exception occurred 562 */ 563 public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First( 564 long groupId, long userId, java.lang.String ppPaymentStatus, 565 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 566 throws com.liferay.portal.kernel.exception.SystemException, 567 com.liferay.portlet.shopping.NoSuchOrderException { 568 return getPersistence() 569 .findByG_U_PPPS_First(groupId, userId, ppPaymentStatus, 570 orderByComparator); 571 } 572 573 /** 574 * Returns the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 575 * 576 * @param groupId the group ID 577 * @param userId the user ID 578 * @param ppPaymentStatus the pp payment status 579 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 580 * @return the first matching shopping order, or <code>null</code> if a matching shopping order could not be found 581 * @throws SystemException if a system exception occurred 582 */ 583 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByG_U_PPPS_First( 584 long groupId, long userId, java.lang.String ppPaymentStatus, 585 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 586 throws com.liferay.portal.kernel.exception.SystemException { 587 return getPersistence() 588 .fetchByG_U_PPPS_First(groupId, userId, ppPaymentStatus, 589 orderByComparator); 590 } 591 592 /** 593 * Returns the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 594 * 595 * @param groupId the group ID 596 * @param userId the user ID 597 * @param ppPaymentStatus the pp payment status 598 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 599 * @return the last matching shopping order 600 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found 601 * @throws SystemException if a system exception occurred 602 */ 603 public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last( 604 long groupId, long userId, java.lang.String ppPaymentStatus, 605 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 606 throws com.liferay.portal.kernel.exception.SystemException, 607 com.liferay.portlet.shopping.NoSuchOrderException { 608 return getPersistence() 609 .findByG_U_PPPS_Last(groupId, userId, ppPaymentStatus, 610 orderByComparator); 611 } 612 613 /** 614 * Returns the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 615 * 616 * @param groupId the group ID 617 * @param userId the user ID 618 * @param ppPaymentStatus the pp payment status 619 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 620 * @return the last matching shopping order, or <code>null</code> if a matching shopping order could not be found 621 * @throws SystemException if a system exception occurred 622 */ 623 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByG_U_PPPS_Last( 624 long groupId, long userId, java.lang.String ppPaymentStatus, 625 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 626 throws com.liferay.portal.kernel.exception.SystemException { 627 return getPersistence() 628 .fetchByG_U_PPPS_Last(groupId, userId, ppPaymentStatus, 629 orderByComparator); 630 } 631 632 /** 633 * Returns the shopping orders before and after the current shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?. 634 * 635 * @param orderId the primary key of the current shopping order 636 * @param groupId the group ID 637 * @param userId the user ID 638 * @param ppPaymentStatus the pp payment status 639 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 640 * @return the previous, current, and next shopping order 641 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 642 * @throws SystemException if a system exception occurred 643 */ 644 public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext( 645 long orderId, long groupId, long userId, 646 java.lang.String ppPaymentStatus, 647 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 648 throws com.liferay.portal.kernel.exception.SystemException, 649 com.liferay.portlet.shopping.NoSuchOrderException { 650 return getPersistence() 651 .findByG_U_PPPS_PrevAndNext(orderId, groupId, userId, 652 ppPaymentStatus, orderByComparator); 653 } 654 655 /** 656 * Returns all the shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?. 657 * 658 * @param groupId the group ID 659 * @param userId the user ID 660 * @param ppPaymentStatus the pp payment status 661 * @return the matching shopping orders that the user has permission to view 662 * @throws SystemException if a system exception occurred 663 */ 664 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS( 665 long groupId, long userId, java.lang.String ppPaymentStatus) 666 throws com.liferay.portal.kernel.exception.SystemException { 667 return getPersistence() 668 .filterFindByG_U_PPPS(groupId, userId, ppPaymentStatus); 669 } 670 671 /** 672 * Returns a range of all the shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?. 673 * 674 * <p> 675 * 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. 676 * </p> 677 * 678 * @param groupId the group ID 679 * @param userId the user ID 680 * @param ppPaymentStatus the pp payment status 681 * @param start the lower bound of the range of shopping orders 682 * @param end the upper bound of the range of shopping orders (not inclusive) 683 * @return the range of matching shopping orders that the user has permission to view 684 * @throws SystemException if a system exception occurred 685 */ 686 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS( 687 long groupId, long userId, java.lang.String ppPaymentStatus, int start, 688 int end) throws com.liferay.portal.kernel.exception.SystemException { 689 return getPersistence() 690 .filterFindByG_U_PPPS(groupId, userId, ppPaymentStatus, 691 start, end); 692 } 693 694 /** 695 * Returns an ordered range of all the shopping orders that the user has permissions to view where groupId = ? and userId = ? and ppPaymentStatus = ?. 696 * 697 * <p> 698 * 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. 699 * </p> 700 * 701 * @param groupId the group ID 702 * @param userId the user ID 703 * @param ppPaymentStatus the pp payment status 704 * @param start the lower bound of the range of shopping orders 705 * @param end the upper bound of the range of shopping orders (not inclusive) 706 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 707 * @return the ordered range of matching shopping orders that the user has permission to view 708 * @throws SystemException if a system exception occurred 709 */ 710 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS( 711 long groupId, long userId, java.lang.String ppPaymentStatus, int start, 712 int end, 713 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 714 throws com.liferay.portal.kernel.exception.SystemException { 715 return getPersistence() 716 .filterFindByG_U_PPPS(groupId, userId, ppPaymentStatus, 717 start, end, orderByComparator); 718 } 719 720 /** 721 * 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 = ?. 722 * 723 * @param orderId the primary key of the current shopping order 724 * @param groupId the group ID 725 * @param userId the user ID 726 * @param ppPaymentStatus the pp payment status 727 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 728 * @return the previous, current, and next shopping order 729 * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found 730 * @throws SystemException if a system exception occurred 731 */ 732 public static com.liferay.portlet.shopping.model.ShoppingOrder[] filterFindByG_U_PPPS_PrevAndNext( 733 long orderId, long groupId, long userId, 734 java.lang.String ppPaymentStatus, 735 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 736 throws com.liferay.portal.kernel.exception.SystemException, 737 com.liferay.portlet.shopping.NoSuchOrderException { 738 return getPersistence() 739 .filterFindByG_U_PPPS_PrevAndNext(orderId, groupId, userId, 740 ppPaymentStatus, orderByComparator); 741 } 742 743 /** 744 * Returns all the shopping orders. 745 * 746 * @return the shopping orders 747 * @throws SystemException if a system exception occurred 748 */ 749 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll() 750 throws com.liferay.portal.kernel.exception.SystemException { 751 return getPersistence().findAll(); 752 } 753 754 /** 755 * Returns a range of all the shopping orders. 756 * 757 * <p> 758 * 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. 759 * </p> 760 * 761 * @param start the lower bound of the range of shopping orders 762 * @param end the upper bound of the range of shopping orders (not inclusive) 763 * @return the range of shopping orders 764 * @throws SystemException if a system exception occurred 765 */ 766 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll( 767 int start, int end) 768 throws com.liferay.portal.kernel.exception.SystemException { 769 return getPersistence().findAll(start, end); 770 } 771 772 /** 773 * Returns an ordered range of all the shopping orders. 774 * 775 * <p> 776 * 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. 777 * </p> 778 * 779 * @param start the lower bound of the range of shopping orders 780 * @param end the upper bound of the range of shopping orders (not inclusive) 781 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 782 * @return the ordered range of shopping orders 783 * @throws SystemException if a system exception occurred 784 */ 785 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll( 786 int start, int end, 787 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 788 throws com.liferay.portal.kernel.exception.SystemException { 789 return getPersistence().findAll(start, end, orderByComparator); 790 } 791 792 /** 793 * Removes all the shopping orders where groupId = ? from the database. 794 * 795 * @param groupId the group ID 796 * @throws SystemException if a system exception occurred 797 */ 798 public static void removeByGroupId(long groupId) 799 throws com.liferay.portal.kernel.exception.SystemException { 800 getPersistence().removeByGroupId(groupId); 801 } 802 803 /** 804 * Removes the shopping order where number = ? from the database. 805 * 806 * @param number the number 807 * @return the shopping order that was removed 808 * @throws SystemException if a system exception occurred 809 */ 810 public static com.liferay.portlet.shopping.model.ShoppingOrder removeByNumber( 811 java.lang.String number) 812 throws com.liferay.portal.kernel.exception.SystemException, 813 com.liferay.portlet.shopping.NoSuchOrderException { 814 return getPersistence().removeByNumber(number); 815 } 816 817 /** 818 * Removes the shopping order where ppTxnId = ? from the database. 819 * 820 * @param ppTxnId the pp txn ID 821 * @return the shopping order that was removed 822 * @throws SystemException if a system exception occurred 823 */ 824 public static com.liferay.portlet.shopping.model.ShoppingOrder removeByPPTxnId( 825 java.lang.String ppTxnId) 826 throws com.liferay.portal.kernel.exception.SystemException, 827 com.liferay.portlet.shopping.NoSuchOrderException { 828 return getPersistence().removeByPPTxnId(ppTxnId); 829 } 830 831 /** 832 * Removes all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ? from the database. 833 * 834 * @param groupId the group ID 835 * @param userId the user ID 836 * @param ppPaymentStatus the pp payment status 837 * @throws SystemException if a system exception occurred 838 */ 839 public static void removeByG_U_PPPS(long groupId, long userId, 840 java.lang.String ppPaymentStatus) 841 throws com.liferay.portal.kernel.exception.SystemException { 842 getPersistence().removeByG_U_PPPS(groupId, userId, ppPaymentStatus); 843 } 844 845 /** 846 * Removes all the shopping orders from the database. 847 * 848 * @throws SystemException if a system exception occurred 849 */ 850 public static void removeAll() 851 throws com.liferay.portal.kernel.exception.SystemException { 852 getPersistence().removeAll(); 853 } 854 855 /** 856 * Returns the number of shopping orders where groupId = ?. 857 * 858 * @param groupId the group ID 859 * @return the number of matching shopping orders 860 * @throws SystemException if a system exception occurred 861 */ 862 public static int countByGroupId(long groupId) 863 throws com.liferay.portal.kernel.exception.SystemException { 864 return getPersistence().countByGroupId(groupId); 865 } 866 867 /** 868 * Returns the number of shopping orders that the user has permission to view where groupId = ?. 869 * 870 * @param groupId the group ID 871 * @return the number of matching shopping orders that the user has permission to view 872 * @throws SystemException if a system exception occurred 873 */ 874 public static int filterCountByGroupId(long groupId) 875 throws com.liferay.portal.kernel.exception.SystemException { 876 return getPersistence().filterCountByGroupId(groupId); 877 } 878 879 /** 880 * Returns the number of shopping orders where number = ?. 881 * 882 * @param number the number 883 * @return the number of matching shopping orders 884 * @throws SystemException if a system exception occurred 885 */ 886 public static int countByNumber(java.lang.String number) 887 throws com.liferay.portal.kernel.exception.SystemException { 888 return getPersistence().countByNumber(number); 889 } 890 891 /** 892 * Returns the number of shopping orders where ppTxnId = ?. 893 * 894 * @param ppTxnId the pp txn ID 895 * @return the number of matching shopping orders 896 * @throws SystemException if a system exception occurred 897 */ 898 public static int countByPPTxnId(java.lang.String ppTxnId) 899 throws com.liferay.portal.kernel.exception.SystemException { 900 return getPersistence().countByPPTxnId(ppTxnId); 901 } 902 903 /** 904 * Returns the number of shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?. 905 * 906 * @param groupId the group ID 907 * @param userId the user ID 908 * @param ppPaymentStatus the pp payment status 909 * @return the number of matching shopping orders 910 * @throws SystemException if a system exception occurred 911 */ 912 public static int countByG_U_PPPS(long groupId, long userId, 913 java.lang.String ppPaymentStatus) 914 throws com.liferay.portal.kernel.exception.SystemException { 915 return getPersistence().countByG_U_PPPS(groupId, userId, ppPaymentStatus); 916 } 917 918 /** 919 * Returns the number of shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?. 920 * 921 * @param groupId the group ID 922 * @param userId the user ID 923 * @param ppPaymentStatus the pp payment status 924 * @return the number of matching shopping orders that the user has permission to view 925 * @throws SystemException if a system exception occurred 926 */ 927 public static int filterCountByG_U_PPPS(long groupId, long userId, 928 java.lang.String ppPaymentStatus) 929 throws com.liferay.portal.kernel.exception.SystemException { 930 return getPersistence() 931 .filterCountByG_U_PPPS(groupId, userId, ppPaymentStatus); 932 } 933 934 /** 935 * Returns the number of shopping orders. 936 * 937 * @return the number of shopping orders 938 * @throws SystemException if a system exception occurred 939 */ 940 public static int countAll() 941 throws com.liferay.portal.kernel.exception.SystemException { 942 return getPersistence().countAll(); 943 } 944 945 public static ShoppingOrderPersistence getPersistence() { 946 if (_persistence == null) { 947 _persistence = (ShoppingOrderPersistence)PortalBeanLocatorUtil.locate(ShoppingOrderPersistence.class.getName()); 948 949 ReferenceRegistry.registerReference(ShoppingOrderUtil.class, 950 "_persistence"); 951 } 952 953 return _persistence; 954 } 955 956 /** 957 * @deprecated 958 */ 959 public void setPersistence(ShoppingOrderPersistence persistence) { 960 } 961 962 private static ShoppingOrderPersistence _persistence; 963 }