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