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