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