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