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