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