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