001    /**
002     * Copyright (c) 2000-2013 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.shopping.model.ShoppingOrder;
022    
023    /**
024     * The persistence interface for the shopping order service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see ShoppingOrderPersistenceImpl
032     * @see ShoppingOrderUtil
033     * @generated
034     */
035    @ProviderType
036    public interface ShoppingOrderPersistence extends BasePersistence<ShoppingOrder> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * 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.
041             */
042    
043            /**
044            * Returns all the shopping orders where groupId = &#63;.
045            *
046            * @param groupId the group ID
047            * @return the matching shopping orders
048            * @throws SystemException if a system exception occurred
049            */
050            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
051                    long groupId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Returns a range of all the shopping orders where groupId = &#63;.
056            *
057            * <p>
058            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
059            * </p>
060            *
061            * @param groupId the group ID
062            * @param start the lower bound of the range of shopping orders
063            * @param end the upper bound of the range of shopping orders (not inclusive)
064            * @return the range of matching shopping orders
065            * @throws SystemException if a system exception occurred
066            */
067            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
068                    long groupId, int start, int end)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            /**
072            * Returns an ordered range of all the shopping orders where groupId = &#63;.
073            *
074            * <p>
075            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
076            * </p>
077            *
078            * @param groupId the group ID
079            * @param start the lower bound of the range of shopping orders
080            * @param end the upper bound of the range of shopping orders (not inclusive)
081            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
082            * @return the ordered range of matching shopping orders
083            * @throws SystemException if a system exception occurred
084            */
085            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
086                    long groupId, int start, int end,
087                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            /**
091            * Returns the first shopping order in the ordered set where groupId = &#63;.
092            *
093            * @param groupId the group ID
094            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
095            * @return the first matching shopping order
096            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
100                    long groupId,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.shopping.NoSuchOrderException;
104    
105            /**
106            * Returns the first shopping order in the ordered set where groupId = &#63;.
107            *
108            * @param groupId the group ID
109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
110            * @return the first matching shopping order, or <code>null</code> if a matching shopping order could not be found
111            * @throws SystemException if a system exception occurred
112            */
113            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByGroupId_First(
114                    long groupId,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns the last shopping order in the ordered set where groupId = &#63;.
120            *
121            * @param groupId the group ID
122            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
123            * @return the last matching shopping order
124            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found
125            * @throws SystemException if a system exception occurred
126            */
127            public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
128                    long groupId,
129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130                    throws com.liferay.portal.kernel.exception.SystemException,
131                            com.liferay.portlet.shopping.NoSuchOrderException;
132    
133            /**
134            * Returns the last shopping order in the ordered set where groupId = &#63;.
135            *
136            * @param groupId the group ID
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the last matching shopping order, or <code>null</code> if a matching shopping order could not be found
139            * @throws SystemException if a system exception occurred
140            */
141            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByGroupId_Last(
142                    long groupId,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            /**
147            * Returns the shopping orders before and after the current shopping order in the ordered set where groupId = &#63;.
148            *
149            * @param orderId the primary key of the current shopping order
150            * @param groupId the group ID
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next shopping order
153            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
157                    long orderId, long groupId,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.shopping.NoSuchOrderException;
161    
162            /**
163            * Returns all the shopping orders that the user has permission to view where groupId = &#63;.
164            *
165            * @param groupId the group ID
166            * @return the matching shopping orders that the user has permission to view
167            * @throws SystemException if a system exception occurred
168            */
169            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId(
170                    long groupId)
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            /**
174            * Returns a range of all the shopping orders that the user has permission to view where groupId = &#63;.
175            *
176            * <p>
177            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
178            * </p>
179            *
180            * @param groupId the group ID
181            * @param start the lower bound of the range of shopping orders
182            * @param end the upper bound of the range of shopping orders (not inclusive)
183            * @return the range of matching shopping orders that the user has permission to view
184            * @throws SystemException if a system exception occurred
185            */
186            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId(
187                    long groupId, int start, int end)
188                    throws com.liferay.portal.kernel.exception.SystemException;
189    
190            /**
191            * Returns an ordered range of all the shopping orders that the user has permissions to view where groupId = &#63;.
192            *
193            * <p>
194            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
195            * </p>
196            *
197            * @param groupId the group ID
198            * @param start the lower bound of the range of shopping orders
199            * @param end the upper bound of the range of shopping orders (not inclusive)
200            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
201            * @return the ordered range of matching shopping orders that the user has permission to view
202            * @throws SystemException if a system exception occurred
203            */
204            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId(
205                    long groupId, int start, int end,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * 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;.
211            *
212            * @param orderId the primary key of the current shopping order
213            * @param groupId the group ID
214            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
215            * @return the previous, current, and next shopping order
216            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.shopping.model.ShoppingOrder[] filterFindByGroupId_PrevAndNext(
220                    long orderId, long groupId,
221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222                    throws com.liferay.portal.kernel.exception.SystemException,
223                            com.liferay.portlet.shopping.NoSuchOrderException;
224    
225            /**
226            * Removes all the shopping orders where groupId = &#63; from the database.
227            *
228            * @param groupId the group ID
229            * @throws SystemException if a system exception occurred
230            */
231            public void removeByGroupId(long groupId)
232                    throws com.liferay.portal.kernel.exception.SystemException;
233    
234            /**
235            * Returns the number of shopping orders where groupId = &#63;.
236            *
237            * @param groupId the group ID
238            * @return the number of matching shopping orders
239            * @throws SystemException if a system exception occurred
240            */
241            public int countByGroupId(long groupId)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            /**
245            * Returns the number of shopping orders that the user has permission to view where groupId = &#63;.
246            *
247            * @param groupId the group ID
248            * @return the number of matching shopping orders that the user has permission to view
249            * @throws SystemException if a system exception occurred
250            */
251            public int filterCountByGroupId(long groupId)
252                    throws com.liferay.portal.kernel.exception.SystemException;
253    
254            /**
255            * Returns the shopping order where number = &#63; or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found.
256            *
257            * @param number the number
258            * @return the matching shopping order
259            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found
260            * @throws SystemException if a system exception occurred
261            */
262            public com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
263                    java.lang.String number)
264                    throws com.liferay.portal.kernel.exception.SystemException,
265                            com.liferay.portlet.shopping.NoSuchOrderException;
266    
267            /**
268            * Returns the shopping order where number = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
269            *
270            * @param number the number
271            * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found
272            * @throws SystemException if a system exception occurred
273            */
274            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
275                    java.lang.String number)
276                    throws com.liferay.portal.kernel.exception.SystemException;
277    
278            /**
279            * Returns the shopping order where number = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
280            *
281            * @param number the number
282            * @param retrieveFromCache whether to use the finder cache
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            * Removes the shopping order where number = &#63; from the database.
292            *
293            * @param number the number
294            * @return the shopping order that was removed
295            * @throws SystemException if a system exception occurred
296            */
297            public com.liferay.portlet.shopping.model.ShoppingOrder removeByNumber(
298                    java.lang.String number)
299                    throws com.liferay.portal.kernel.exception.SystemException,
300                            com.liferay.portlet.shopping.NoSuchOrderException;
301    
302            /**
303            * Returns the number of shopping orders where number = &#63;.
304            *
305            * @param number the number
306            * @return the number of matching shopping orders
307            * @throws SystemException if a system exception occurred
308            */
309            public int countByNumber(java.lang.String number)
310                    throws com.liferay.portal.kernel.exception.SystemException;
311    
312            /**
313            * Returns the shopping order where ppTxnId = &#63; or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found.
314            *
315            * @param ppTxnId the pp txn ID
316            * @return the matching shopping order
317            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found
318            * @throws SystemException if a system exception occurred
319            */
320            public com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
321                    java.lang.String ppTxnId)
322                    throws com.liferay.portal.kernel.exception.SystemException,
323                            com.liferay.portlet.shopping.NoSuchOrderException;
324    
325            /**
326            * Returns the shopping order where ppTxnId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
327            *
328            * @param ppTxnId the pp txn ID
329            * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found
330            * @throws SystemException if a system exception occurred
331            */
332            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
333                    java.lang.String ppTxnId)
334                    throws com.liferay.portal.kernel.exception.SystemException;
335    
336            /**
337            * Returns the shopping order where ppTxnId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
338            *
339            * @param ppTxnId the pp txn ID
340            * @param retrieveFromCache whether to use the finder cache
341            * @return the matching shopping order, or <code>null</code> if a matching shopping order could not be found
342            * @throws SystemException if a system exception occurred
343            */
344            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
345                    java.lang.String ppTxnId, boolean retrieveFromCache)
346                    throws com.liferay.portal.kernel.exception.SystemException;
347    
348            /**
349            * Removes the shopping order where ppTxnId = &#63; from the database.
350            *
351            * @param ppTxnId the pp txn ID
352            * @return the shopping order that was removed
353            * @throws SystemException if a system exception occurred
354            */
355            public com.liferay.portlet.shopping.model.ShoppingOrder removeByPPTxnId(
356                    java.lang.String ppTxnId)
357                    throws com.liferay.portal.kernel.exception.SystemException,
358                            com.liferay.portlet.shopping.NoSuchOrderException;
359    
360            /**
361            * Returns the number of shopping orders where ppTxnId = &#63;.
362            *
363            * @param ppTxnId the pp txn ID
364            * @return the number of matching shopping orders
365            * @throws SystemException if a system exception occurred
366            */
367            public int countByPPTxnId(java.lang.String ppTxnId)
368                    throws com.liferay.portal.kernel.exception.SystemException;
369    
370            /**
371            * Returns all the shopping orders where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
372            *
373            * @param groupId the group ID
374            * @param userId the user ID
375            * @param ppPaymentStatus the pp payment status
376            * @return the matching shopping orders
377            * @throws SystemException if a system exception occurred
378            */
379            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
380                    long groupId, long userId, java.lang.String ppPaymentStatus)
381                    throws com.liferay.portal.kernel.exception.SystemException;
382    
383            /**
384            * Returns a range of all the shopping orders where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
385            *
386            * <p>
387            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
388            * </p>
389            *
390            * @param groupId the group ID
391            * @param userId the user ID
392            * @param ppPaymentStatus the pp payment status
393            * @param start the lower bound of the range of shopping orders
394            * @param end the upper bound of the range of shopping orders (not inclusive)
395            * @return the range of matching shopping orders
396            * @throws SystemException if a system exception occurred
397            */
398            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
399                    long groupId, long userId, java.lang.String ppPaymentStatus, int start,
400                    int end) throws com.liferay.portal.kernel.exception.SystemException;
401    
402            /**
403            * Returns an ordered range of all the shopping orders where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
404            *
405            * <p>
406            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
407            * </p>
408            *
409            * @param groupId the group ID
410            * @param userId the user ID
411            * @param ppPaymentStatus the pp payment status
412            * @param start the lower bound of the range of shopping orders
413            * @param end the upper bound of the range of shopping orders (not inclusive)
414            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
415            * @return the ordered range of matching shopping orders
416            * @throws SystemException if a system exception occurred
417            */
418            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
419                    long groupId, long userId, java.lang.String ppPaymentStatus, int start,
420                    int end,
421                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
422                    throws com.liferay.portal.kernel.exception.SystemException;
423    
424            /**
425            * Returns the first shopping order in the ordered set where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
426            *
427            * @param groupId the group ID
428            * @param userId the user ID
429            * @param ppPaymentStatus the pp payment status
430            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
431            * @return the first matching shopping order
432            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found
433            * @throws SystemException if a system exception occurred
434            */
435            public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
436                    long groupId, long userId, java.lang.String ppPaymentStatus,
437                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
438                    throws com.liferay.portal.kernel.exception.SystemException,
439                            com.liferay.portlet.shopping.NoSuchOrderException;
440    
441            /**
442            * Returns the first shopping order in the ordered set where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
443            *
444            * @param groupId the group ID
445            * @param userId the user ID
446            * @param ppPaymentStatus the pp payment status
447            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
448            * @return the first matching shopping order, or <code>null</code> if a matching shopping order could not be found
449            * @throws SystemException if a system exception occurred
450            */
451            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByG_U_PPPS_First(
452                    long groupId, long userId, java.lang.String ppPaymentStatus,
453                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
454                    throws com.liferay.portal.kernel.exception.SystemException;
455    
456            /**
457            * Returns the last shopping order in the ordered set where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
458            *
459            * @param groupId the group ID
460            * @param userId the user ID
461            * @param ppPaymentStatus the pp payment status
462            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
463            * @return the last matching shopping order
464            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a matching shopping order could not be found
465            * @throws SystemException if a system exception occurred
466            */
467            public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
468                    long groupId, long userId, java.lang.String ppPaymentStatus,
469                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
470                    throws com.liferay.portal.kernel.exception.SystemException,
471                            com.liferay.portlet.shopping.NoSuchOrderException;
472    
473            /**
474            * Returns the last shopping order in the ordered set where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
475            *
476            * @param groupId the group ID
477            * @param userId the user ID
478            * @param ppPaymentStatus the pp payment status
479            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
480            * @return the last matching shopping order, or <code>null</code> if a matching shopping order could not be found
481            * @throws SystemException if a system exception occurred
482            */
483            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByG_U_PPPS_Last(
484                    long groupId, long userId, java.lang.String ppPaymentStatus,
485                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
486                    throws com.liferay.portal.kernel.exception.SystemException;
487    
488            /**
489            * Returns the shopping orders before and after the current shopping order in the ordered set where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
490            *
491            * @param orderId the primary key of the current shopping order
492            * @param groupId the group ID
493            * @param userId the user ID
494            * @param ppPaymentStatus the pp payment status
495            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
496            * @return the previous, current, and next shopping order
497            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found
498            * @throws SystemException if a system exception occurred
499            */
500            public com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
501                    long orderId, long groupId, long userId,
502                    java.lang.String ppPaymentStatus,
503                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
504                    throws com.liferay.portal.kernel.exception.SystemException,
505                            com.liferay.portlet.shopping.NoSuchOrderException;
506    
507            /**
508            * Returns all the shopping orders that the user has permission to view where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
509            *
510            * @param groupId the group ID
511            * @param userId the user ID
512            * @param ppPaymentStatus the pp payment status
513            * @return the matching shopping orders that the user has permission to view
514            * @throws SystemException if a system exception occurred
515            */
516            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS(
517                    long groupId, long userId, java.lang.String ppPaymentStatus)
518                    throws com.liferay.portal.kernel.exception.SystemException;
519    
520            /**
521            * Returns a range of all the shopping orders that the user has permission to view where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
522            *
523            * <p>
524            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
525            * </p>
526            *
527            * @param groupId the group ID
528            * @param userId the user ID
529            * @param ppPaymentStatus the pp payment status
530            * @param start the lower bound of the range of shopping orders
531            * @param end the upper bound of the range of shopping orders (not inclusive)
532            * @return the range of matching shopping orders that the user has permission to view
533            * @throws SystemException if a system exception occurred
534            */
535            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS(
536                    long groupId, long userId, java.lang.String ppPaymentStatus, int start,
537                    int end) throws com.liferay.portal.kernel.exception.SystemException;
538    
539            /**
540            * 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;.
541            *
542            * <p>
543            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
544            * </p>
545            *
546            * @param groupId the group ID
547            * @param userId the user ID
548            * @param ppPaymentStatus the pp payment status
549            * @param start the lower bound of the range of shopping orders
550            * @param end the upper bound of the range of shopping orders (not inclusive)
551            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
552            * @return the ordered range of matching shopping orders that the user has permission to view
553            * @throws SystemException if a system exception occurred
554            */
555            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS(
556                    long groupId, long userId, java.lang.String ppPaymentStatus, int start,
557                    int end,
558                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
559                    throws com.liferay.portal.kernel.exception.SystemException;
560    
561            /**
562            * 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;.
563            *
564            * @param orderId the primary key of the current shopping order
565            * @param groupId the group ID
566            * @param userId the user ID
567            * @param ppPaymentStatus the pp payment status
568            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
569            * @return the previous, current, and next shopping order
570            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found
571            * @throws SystemException if a system exception occurred
572            */
573            public com.liferay.portlet.shopping.model.ShoppingOrder[] filterFindByG_U_PPPS_PrevAndNext(
574                    long orderId, long groupId, long userId,
575                    java.lang.String ppPaymentStatus,
576                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
577                    throws com.liferay.portal.kernel.exception.SystemException,
578                            com.liferay.portlet.shopping.NoSuchOrderException;
579    
580            /**
581            * Removes all the shopping orders where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63; from the database.
582            *
583            * @param groupId the group ID
584            * @param userId the user ID
585            * @param ppPaymentStatus the pp payment status
586            * @throws SystemException if a system exception occurred
587            */
588            public void removeByG_U_PPPS(long groupId, long userId,
589                    java.lang.String ppPaymentStatus)
590                    throws com.liferay.portal.kernel.exception.SystemException;
591    
592            /**
593            * Returns the number of shopping orders where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
594            *
595            * @param groupId the group ID
596            * @param userId the user ID
597            * @param ppPaymentStatus the pp payment status
598            * @return the number of matching shopping orders
599            * @throws SystemException if a system exception occurred
600            */
601            public int countByG_U_PPPS(long groupId, long userId,
602                    java.lang.String ppPaymentStatus)
603                    throws com.liferay.portal.kernel.exception.SystemException;
604    
605            /**
606            * Returns the number of shopping orders that the user has permission to view where groupId = &#63; and userId = &#63; and ppPaymentStatus = &#63;.
607            *
608            * @param groupId the group ID
609            * @param userId the user ID
610            * @param ppPaymentStatus the pp payment status
611            * @return the number of matching shopping orders that the user has permission to view
612            * @throws SystemException if a system exception occurred
613            */
614            public int filterCountByG_U_PPPS(long groupId, long userId,
615                    java.lang.String ppPaymentStatus)
616                    throws com.liferay.portal.kernel.exception.SystemException;
617    
618            /**
619            * Caches the shopping order in the entity cache if it is enabled.
620            *
621            * @param shoppingOrder the shopping order
622            */
623            public void cacheResult(
624                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder);
625    
626            /**
627            * Caches the shopping orders in the entity cache if it is enabled.
628            *
629            * @param shoppingOrders the shopping orders
630            */
631            public void cacheResult(
632                    java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> shoppingOrders);
633    
634            /**
635            * Creates a new shopping order with the primary key. Does not add the shopping order to the database.
636            *
637            * @param orderId the primary key for the new shopping order
638            * @return the new shopping order
639            */
640            public com.liferay.portlet.shopping.model.ShoppingOrder create(long orderId);
641    
642            /**
643            * Removes the shopping order with the primary key from the database. Also notifies the appropriate model listeners.
644            *
645            * @param orderId the primary key of the shopping order
646            * @return the shopping order that was removed
647            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found
648            * @throws SystemException if a system exception occurred
649            */
650            public com.liferay.portlet.shopping.model.ShoppingOrder remove(long orderId)
651                    throws com.liferay.portal.kernel.exception.SystemException,
652                            com.liferay.portlet.shopping.NoSuchOrderException;
653    
654            public com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
655                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
656                    throws com.liferay.portal.kernel.exception.SystemException;
657    
658            /**
659            * Returns the shopping order with the primary key or throws a {@link com.liferay.portlet.shopping.NoSuchOrderException} if it could not be found.
660            *
661            * @param orderId the primary key of the shopping order
662            * @return the shopping order
663            * @throws com.liferay.portlet.shopping.NoSuchOrderException if a shopping order with the primary key could not be found
664            * @throws SystemException if a system exception occurred
665            */
666            public com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
667                    long orderId)
668                    throws com.liferay.portal.kernel.exception.SystemException,
669                            com.liferay.portlet.shopping.NoSuchOrderException;
670    
671            /**
672            * Returns the shopping order with the primary key or returns <code>null</code> if it could not be found.
673            *
674            * @param orderId the primary key of the shopping order
675            * @return the shopping order, or <code>null</code> if a shopping order with the primary key could not be found
676            * @throws SystemException if a system exception occurred
677            */
678            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
679                    long orderId)
680                    throws com.liferay.portal.kernel.exception.SystemException;
681    
682            /**
683            * Returns all the shopping orders.
684            *
685            * @return the shopping orders
686            * @throws SystemException if a system exception occurred
687            */
688            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
689                    throws com.liferay.portal.kernel.exception.SystemException;
690    
691            /**
692            * Returns a range of all the shopping orders.
693            *
694            * <p>
695            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
696            * </p>
697            *
698            * @param start the lower bound of the range of shopping orders
699            * @param end the upper bound of the range of shopping orders (not inclusive)
700            * @return the range of shopping orders
701            * @throws SystemException if a system exception occurred
702            */
703            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
704                    int start, int end)
705                    throws com.liferay.portal.kernel.exception.SystemException;
706    
707            /**
708            * Returns an ordered range of all the shopping orders.
709            *
710            * <p>
711            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
712            * </p>
713            *
714            * @param start the lower bound of the range of shopping orders
715            * @param end the upper bound of the range of shopping orders (not inclusive)
716            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
717            * @return the ordered range of shopping orders
718            * @throws SystemException if a system exception occurred
719            */
720            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
721                    int start, int end,
722                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
723                    throws com.liferay.portal.kernel.exception.SystemException;
724    
725            /**
726            * Removes all the shopping orders from the database.
727            *
728            * @throws SystemException if a system exception occurred
729            */
730            public void removeAll()
731                    throws com.liferay.portal.kernel.exception.SystemException;
732    
733            /**
734            * Returns the number of shopping orders.
735            *
736            * @return the number of shopping orders
737            * @throws SystemException if a system exception occurred
738            */
739            public int countAll()
740                    throws com.liferay.portal.kernel.exception.SystemException;
741    }