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