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