001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.shopping.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.shopping.model.ShoppingOrder;
020    
021    /**
022     * The persistence interface for the shopping order service.
023     *
024     * <p>
025     * Never modify or reference this interface directly. Always use {@link ShoppingOrderUtil} to access the shopping order persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
026     * </p>
027     *
028     * <p>
029     * Caching information and settings can be found in <code>portal.properties</code>
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see ShoppingOrderPersistenceImpl
034     * @see ShoppingOrderUtil
035     * @generated
036     */
037    public interface ShoppingOrderPersistence extends BasePersistence<ShoppingOrder> {
038            /**
039            * Caches the shopping order in the entity cache if it is enabled.
040            *
041            * @param shoppingOrder the shopping order to cache
042            */
043            public void cacheResult(
044                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder);
045    
046            /**
047            * Caches the shopping orders in the entity cache if it is enabled.
048            *
049            * @param shoppingOrders the shopping orders to cache
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> shoppingOrders);
053    
054            /**
055            * Creates a new shopping order with the primary key. Does not add the shopping order to the database.
056            *
057            * @param orderId the primary key for the new shopping order
058            * @return the new shopping order
059            */
060            public com.liferay.portlet.shopping.model.ShoppingOrder create(long orderId);
061    
062            /**
063            * Removes the shopping order with the primary key from the database. Also notifies the appropriate model listeners.
064            *
065            * @param orderId the primary key of the shopping order to remove
066            * @return the shopping order that was removed
067            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found
068            * @throws SystemException if a system exception occurred
069            */
070            public com.liferay.portlet.shopping.model.ShoppingOrder remove(long orderId)
071                    throws com.liferay.portal.kernel.exception.SystemException,
072                            com.liferay.portlet.shopping.NoSuchOrderException;
073    
074            public com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
075                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
076                    boolean merge)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            /**
080            * Finds the shopping order with the primary key or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found.
081            *
082            * @param orderId the primary key of the shopping order to find
083            * @return the shopping order
084            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found
085            * @throws SystemException if a system exception occurred
086            */
087            public com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
088                    long orderId)
089                    throws com.liferay.portal.kernel.exception.SystemException,
090                            com.liferay.portlet.shopping.NoSuchOrderException;
091    
092            /**
093            * Finds the shopping order with the primary key or returns <code>null</code> if it could not be found.
094            *
095            * @param orderId the primary key of the shopping order to find
096            * @return the shopping order, or <code>null</code> if a shopping order with the primary key could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
100                    long orderId)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Finds all the shopping orders where groupId = &#63;.
105            *
106            * @param groupId the group id to search with
107            * @return the matching shopping orders
108            * @throws SystemException if a system exception occurred
109            */
110            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
111                    long groupId)
112                    throws com.liferay.portal.kernel.exception.SystemException;
113    
114            /**
115            * Finds a range of all the shopping orders where groupId = &#63;.
116            *
117            * <p>
118            * 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.
119            * </p>
120            *
121            * @param groupId the group id to search with
122            * @param start the lower bound of the range of shopping orders to return
123            * @param end the upper bound of the range of shopping orders to return (not inclusive)
124            * @return the range of matching shopping orders
125            * @throws SystemException if a system exception occurred
126            */
127            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
128                    long groupId, int start, int end)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            /**
132            * Finds an ordered range of all the shopping orders where groupId = &#63;.
133            *
134            * <p>
135            * 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.
136            * </p>
137            *
138            * @param groupId the group id to search with
139            * @param start the lower bound of the range of shopping orders to return
140            * @param end the upper bound of the range of shopping orders to return (not inclusive)
141            * @param orderByComparator the comparator to order the results by
142            * @return the ordered range of matching shopping orders
143            * @throws SystemException if a system exception occurred
144            */
145            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
146                    long groupId, int start, int end,
147                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148                    throws com.liferay.portal.kernel.exception.SystemException;
149    
150            /**
151            * Finds the first shopping order in the ordered set where groupId = &#63;.
152            *
153            * <p>
154            * 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.
155            * </p>
156            *
157            * @param groupId the group id to search with
158            * @param orderByComparator the comparator to order the set by
159            * @return the first matching shopping order
160            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
164                    long groupId,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException,
167                            com.liferay.portlet.shopping.NoSuchOrderException;
168    
169            /**
170            * Finds the last shopping order in the ordered set where groupId = &#63;.
171            *
172            * <p>
173            * 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.
174            * </p>
175            *
176            * @param groupId the group id to search with
177            * @param orderByComparator the comparator to order the set by
178            * @return the last matching shopping order
179            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
183                    long groupId,
184                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
185                    throws com.liferay.portal.kernel.exception.SystemException,
186                            com.liferay.portlet.shopping.NoSuchOrderException;
187    
188            /**
189            * Finds the shopping orders before and after the current shopping order in the ordered set where groupId = &#63;.
190            *
191            * <p>
192            * 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.
193            * </p>
194            *
195            * @param orderId the primary key of the current shopping order
196            * @param groupId the group id to search with
197            * @param orderByComparator the comparator to order the set by
198            * @return the previous, current, and next shopping order
199            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
203                    long orderId, long groupId,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.kernel.exception.SystemException,
206                            com.liferay.portlet.shopping.NoSuchOrderException;
207    
208            /**
209            * Filters by the user's permissions and finds all the shopping orders where groupId = &#63;.
210            *
211            * @param groupId the group id to search with
212            * @return the matching shopping orders that the user has permission to view
213            * @throws SystemException if a system exception occurred
214            */
215            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId(
216                    long groupId)
217                    throws com.liferay.portal.kernel.exception.SystemException;
218    
219            /**
220            * Filters by the user's permissions and finds a range of all the shopping orders where groupId = &#63;.
221            *
222            * <p>
223            * 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.
224            * </p>
225            *
226            * @param groupId the group id to search with
227            * @param start the lower bound of the range of shopping orders to return
228            * @param end the upper bound of the range of shopping orders to return (not inclusive)
229            * @return the range of matching shopping orders that the user has permission to view
230            * @throws SystemException if a system exception occurred
231            */
232            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId(
233                    long groupId, int start, int end)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * Filters by the user's permissions and finds an ordered range of all the shopping orders where groupId = &#63;.
238            *
239            * <p>
240            * 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.
241            * </p>
242            *
243            * @param groupId the group id to search with
244            * @param start the lower bound of the range of shopping orders to return
245            * @param end the upper bound of the range of shopping orders to return (not inclusive)
246            * @param orderByComparator the comparator to order the results by
247            * @return the ordered range of matching shopping orders that the user has permission to view
248            * @throws SystemException if a system exception occurred
249            */
250            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId(
251                    long groupId, int start, int end,
252                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
253                    throws com.liferay.portal.kernel.exception.SystemException;
254    
255            /**
256            * Finds the shopping order where number = &#63; or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found.
257            *
258            * @param number the number to search with
259            * @return the matching shopping order
260            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found
261            * @throws SystemException if a system exception occurred
262            */
263            public com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
264                    java.lang.String number)
265                    throws com.liferay.portal.kernel.exception.SystemException,
266                            com.liferay.portlet.shopping.NoSuchOrderException;
267    
268            /**
269            * Finds the shopping order where number = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
270            *
271            * @param number the number to search with
272            * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found
273            * @throws SystemException if a system exception occurred
274            */
275            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
276                    java.lang.String number)
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            /**
280            * Finds the shopping order where number = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
281            *
282            * @param number the number to search with
283            * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found
284            * @throws SystemException if a system exception occurred
285            */
286            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
287                    java.lang.String number, boolean retrieveFromCache)
288                    throws com.liferay.portal.kernel.exception.SystemException;
289    
290            /**
291            * Finds the shopping order where ppTxnId = &#63; or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found.
292            *
293            * @param ppTxnId the pp txn id to search with
294            * @return the matching shopping order
295            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found
296            * @throws SystemException if a system exception occurred
297            */
298            public com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
299                    java.lang.String ppTxnId)
300                    throws com.liferay.portal.kernel.exception.SystemException,
301                            com.liferay.portlet.shopping.NoSuchOrderException;
302    
303            /**
304            * Finds the shopping order where ppTxnId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
305            *
306            * @param ppTxnId the pp txn id to search with
307            * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found
308            * @throws SystemException if a system exception occurred
309            */
310            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
311                    java.lang.String ppTxnId)
312                    throws com.liferay.portal.kernel.exception.SystemException;
313    
314            /**
315            * Finds the shopping order where ppTxnId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
316            *
317            * @param ppTxnId the pp txn id to search with
318            * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
322                    java.lang.String ppTxnId, boolean retrieveFromCache)
323                    throws com.liferay.portal.kernel.exception.SystemException;
324    
325            /**
326            * Finds all the shopping orders where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
327            *
328            * @param groupId the group id to search with
329            * @param userId the user id to search with
330            * @param ppPaymentStatus the pp payment status to search with
331            * @return the matching shopping orders
332            * @throws SystemException if a system exception occurred
333            */
334            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
335                    long groupId, long userId, java.lang.String ppPaymentStatus)
336                    throws com.liferay.portal.kernel.exception.SystemException;
337    
338            /**
339            * Finds a range of all the shopping orders where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
340            *
341            * <p>
342            * 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.
343            * </p>
344            *
345            * @param groupId the group id to search with
346            * @param userId the user id to search with
347            * @param ppPaymentStatus the pp payment status to search with
348            * @param start the lower bound of the range of shopping orders to return
349            * @param end the upper bound of the range of shopping orders to return (not inclusive)
350            * @return the range of matching shopping orders
351            * @throws SystemException if a system exception occurred
352            */
353            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
354                    long groupId, long userId, java.lang.String ppPaymentStatus, int start,
355                    int end) throws com.liferay.portal.kernel.exception.SystemException;
356    
357            /**
358            * Finds an ordered range of all the shopping orders where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
359            *
360            * <p>
361            * 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.
362            * </p>
363            *
364            * @param groupId the group id to search with
365            * @param userId the user id to search with
366            * @param ppPaymentStatus the pp payment status to search with
367            * @param start the lower bound of the range of shopping orders to return
368            * @param end the upper bound of the range of shopping orders to return (not inclusive)
369            * @param orderByComparator the comparator to order the results by
370            * @return the ordered range of matching shopping orders
371            * @throws SystemException if a system exception occurred
372            */
373            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
374                    long groupId, long userId, java.lang.String ppPaymentStatus, int start,
375                    int end,
376                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
377                    throws com.liferay.portal.kernel.exception.SystemException;
378    
379            /**
380            * Finds the first shopping order in the ordered set where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
381            *
382            * <p>
383            * 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.
384            * </p>
385            *
386            * @param groupId the group id to search with
387            * @param userId the user id to search with
388            * @param ppPaymentStatus the pp payment status to search with
389            * @param orderByComparator the comparator to order the set by
390            * @return the first matching shopping order
391            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found
392            * @throws SystemException if a system exception occurred
393            */
394            public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
395                    long groupId, long userId, java.lang.String ppPaymentStatus,
396                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
397                    throws com.liferay.portal.kernel.exception.SystemException,
398                            com.liferay.portlet.shopping.NoSuchOrderException;
399    
400            /**
401            * Finds the last shopping order in the ordered set where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
402            *
403            * <p>
404            * 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.
405            * </p>
406            *
407            * @param groupId the group id to search with
408            * @param userId the user id to search with
409            * @param ppPaymentStatus the pp payment status to search with
410            * @param orderByComparator the comparator to order the set by
411            * @return the last matching shopping order
412            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found
413            * @throws SystemException if a system exception occurred
414            */
415            public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
416                    long groupId, long userId, java.lang.String ppPaymentStatus,
417                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418                    throws com.liferay.portal.kernel.exception.SystemException,
419                            com.liferay.portlet.shopping.NoSuchOrderException;
420    
421            /**
422            * Finds the shopping orders before and after the current shopping order in the ordered set where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
423            *
424            * <p>
425            * 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.
426            * </p>
427            *
428            * @param orderId the primary key of the current shopping order
429            * @param groupId the group id to search with
430            * @param userId the user id to search with
431            * @param ppPaymentStatus the pp payment status to search with
432            * @param orderByComparator the comparator to order the set by
433            * @return the previous, current, and next shopping order
434            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found
435            * @throws SystemException if a system exception occurred
436            */
437            public com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
438                    long orderId, long groupId, long userId,
439                    java.lang.String ppPaymentStatus,
440                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
441                    throws com.liferay.portal.kernel.exception.SystemException,
442                            com.liferay.portlet.shopping.NoSuchOrderException;
443    
444            /**
445            * Filters by the user's permissions and finds all the shopping orders where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
446            *
447            * @param groupId the group id to search with
448            * @param userId the user id to search with
449            * @param ppPaymentStatus the pp payment status to search with
450            * @return the matching shopping orders that the user has permission to view
451            * @throws SystemException if a system exception occurred
452            */
453            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS(
454                    long groupId, long userId, java.lang.String ppPaymentStatus)
455                    throws com.liferay.portal.kernel.exception.SystemException;
456    
457            /**
458            * Filters by the user's permissions and finds a range of all the shopping orders where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
459            *
460            * <p>
461            * 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.
462            * </p>
463            *
464            * @param groupId the group id to search with
465            * @param userId the user id to search with
466            * @param ppPaymentStatus the pp payment status to search with
467            * @param start the lower bound of the range of shopping orders to return
468            * @param end the upper bound of the range of shopping orders to return (not inclusive)
469            * @return the range of matching shopping orders that the user has permission to view
470            * @throws SystemException if a system exception occurred
471            */
472            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS(
473                    long groupId, long userId, java.lang.String ppPaymentStatus, int start,
474                    int end) throws com.liferay.portal.kernel.exception.SystemException;
475    
476            /**
477            * Filters by the user's permissions and finds an ordered range of all the shopping orders where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
478            *
479            * <p>
480            * 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.
481            * </p>
482            *
483            * @param groupId the group id to search with
484            * @param userId the user id to search with
485            * @param ppPaymentStatus the pp payment status to search with
486            * @param start the lower bound of the range of shopping orders to return
487            * @param end the upper bound of the range of shopping orders to return (not inclusive)
488            * @param orderByComparator the comparator to order the results by
489            * @return the ordered range of matching shopping orders that the user has permission to view
490            * @throws SystemException if a system exception occurred
491            */
492            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS(
493                    long groupId, long userId, java.lang.String ppPaymentStatus, int start,
494                    int end,
495                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
496                    throws com.liferay.portal.kernel.exception.SystemException;
497    
498            /**
499            * Finds all the shopping orders.
500            *
501            * @return the shopping orders
502            * @throws SystemException if a system exception occurred
503            */
504            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
505                    throws com.liferay.portal.kernel.exception.SystemException;
506    
507            /**
508            * Finds a range of all the shopping orders.
509            *
510            * <p>
511            * 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.
512            * </p>
513            *
514            * @param start the lower bound of the range of shopping orders to return
515            * @param end the upper bound of the range of shopping orders to return (not inclusive)
516            * @return the range of shopping orders
517            * @throws SystemException if a system exception occurred
518            */
519            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
520                    int start, int end)
521                    throws com.liferay.portal.kernel.exception.SystemException;
522    
523            /**
524            * Finds an ordered range of all the shopping orders.
525            *
526            * <p>
527            * 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.
528            * </p>
529            *
530            * @param start the lower bound of the range of shopping orders to return
531            * @param end the upper bound of the range of shopping orders to return (not inclusive)
532            * @param orderByComparator the comparator to order the results by
533            * @return the ordered range of shopping orders
534            * @throws SystemException if a system exception occurred
535            */
536            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
537                    int start, int end,
538                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
539                    throws com.liferay.portal.kernel.exception.SystemException;
540    
541            /**
542            * Removes all the shopping orders where groupId = &#63; from the database.
543            *
544            * @param groupId the group id to search with
545            * @throws SystemException if a system exception occurred
546            */
547            public void removeByGroupId(long groupId)
548                    throws com.liferay.portal.kernel.exception.SystemException;
549    
550            /**
551            * Removes the shopping order where number = &#63; from the database.
552            *
553            * @param number the number to search with
554            * @throws SystemException if a system exception occurred
555            */
556            public void removeByNumber(java.lang.String number)
557                    throws com.liferay.portal.kernel.exception.SystemException,
558                            com.liferay.portlet.shopping.NoSuchOrderException;
559    
560            /**
561            * Removes the shopping order where ppTxnId = &#63; from the database.
562            *
563            * @param ppTxnId the pp txn id to search with
564            * @throws SystemException if a system exception occurred
565            */
566            public void removeByPPTxnId(java.lang.String ppTxnId)
567                    throws com.liferay.portal.kernel.exception.SystemException,
568                            com.liferay.portlet.shopping.NoSuchOrderException;
569    
570            /**
571            * Removes all the shopping orders where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63; from the database.
572            *
573            * @param groupId the group id to search with
574            * @param userId the user id to search with
575            * @param ppPaymentStatus the pp payment status to search with
576            * @throws SystemException if a system exception occurred
577            */
578            public void removeByG_U_PPPS(long groupId, long userId,
579                    java.lang.String ppPaymentStatus)
580                    throws com.liferay.portal.kernel.exception.SystemException;
581    
582            /**
583            * Removes all the shopping orders from the database.
584            *
585            * @throws SystemException if a system exception occurred
586            */
587            public void removeAll()
588                    throws com.liferay.portal.kernel.exception.SystemException;
589    
590            /**
591            * Counts all the shopping orders where groupId = &#63;.
592            *
593            * @param groupId the group id to search with
594            * @return the number of matching shopping orders
595            * @throws SystemException if a system exception occurred
596            */
597            public int countByGroupId(long groupId)
598                    throws com.liferay.portal.kernel.exception.SystemException;
599    
600            /**
601            * Filters by the user's permissions and counts all the shopping orders where groupId = &#63;.
602            *
603            * @param groupId the group id to search with
604            * @return the number of matching shopping orders that the user has permission to view
605            * @throws SystemException if a system exception occurred
606            */
607            public int filterCountByGroupId(long groupId)
608                    throws com.liferay.portal.kernel.exception.SystemException;
609    
610            /**
611            * Counts all the shopping orders where number = &#63;.
612            *
613            * @param number the number to search with
614            * @return the number of matching shopping orders
615            * @throws SystemException if a system exception occurred
616            */
617            public int countByNumber(java.lang.String number)
618                    throws com.liferay.portal.kernel.exception.SystemException;
619    
620            /**
621            * Counts all the shopping orders where ppTxnId = &#63;.
622            *
623            * @param ppTxnId the pp txn id to search with
624            * @return the number of matching shopping orders
625            * @throws SystemException if a system exception occurred
626            */
627            public int countByPPTxnId(java.lang.String ppTxnId)
628                    throws com.liferay.portal.kernel.exception.SystemException;
629    
630            /**
631            * Counts all the shopping orders where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
632            *
633            * @param groupId the group id to search with
634            * @param userId the user id to search with
635            * @param ppPaymentStatus the pp payment status to search with
636            * @return the number of matching shopping orders
637            * @throws SystemException if a system exception occurred
638            */
639            public int countByG_U_PPPS(long groupId, long userId,
640                    java.lang.String ppPaymentStatus)
641                    throws com.liferay.portal.kernel.exception.SystemException;
642    
643            /**
644            * Filters by the user's permissions and counts all the shopping orders where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
645            *
646            * @param groupId the group id to search with
647            * @param userId the user id to search with
648            * @param ppPaymentStatus the pp payment status to search with
649            * @return the number of matching shopping orders that the user has permission to view
650            * @throws SystemException if a system exception occurred
651            */
652            public int filterCountByG_U_PPPS(long groupId, long userId,
653                    java.lang.String ppPaymentStatus)
654                    throws com.liferay.portal.kernel.exception.SystemException;
655    
656            /**
657            * Counts all the shopping orders.
658            *
659            * @return the number of shopping orders
660            * @throws SystemException if a system exception occurred
661            */
662            public int countAll()
663                    throws com.liferay.portal.kernel.exception.SystemException;
664    }