001    /**
002     * Copyright (c) 2000-2010 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     * 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.
024     * </p>
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see MembershipRequestPersistenceImpl
032     * @see MembershipRequestUtil
033     * @generated
034     */
035    public interface MembershipRequestPersistence extends BasePersistence<MembershipRequest> {
036            /**
037            * Caches the membership request in the entity cache if it is enabled.
038            *
039            * @param membershipRequest the membership request to cache
040            */
041            public void cacheResult(
042                    com.liferay.portal.model.MembershipRequest membershipRequest);
043    
044            /**
045            * Caches the membership requests in the entity cache if it is enabled.
046            *
047            * @param membershipRequests the membership requests to cache
048            */
049            public void cacheResult(
050                    java.util.List<com.liferay.portal.model.MembershipRequest> membershipRequests);
051    
052            /**
053            * Creates a new membership request with the primary key. Does not add the membership request to the database.
054            *
055            * @param membershipRequestId the primary key for the new membership request
056            * @return the new membership request
057            */
058            public com.liferay.portal.model.MembershipRequest create(
059                    long membershipRequestId);
060    
061            /**
062            * Removes the membership request with the primary key from the database. Also notifies the appropriate model listeners.
063            *
064            * @param membershipRequestId the primary key of the membership request to remove
065            * @return the membership request that was removed
066            * @throws com.liferay.portal.NoSuchMembershipRequestException if a membership request with the primary key could not be found
067            * @throws SystemException if a system exception occurred
068            */
069            public com.liferay.portal.model.MembershipRequest remove(
070                    long membershipRequestId)
071                    throws com.liferay.portal.NoSuchMembershipRequestException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            public com.liferay.portal.model.MembershipRequest updateImpl(
075                    com.liferay.portal.model.MembershipRequest membershipRequest,
076                    boolean merge)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            /**
080            * Finds the membership request with the primary key or throws a {@link com.liferay.portal.NoSuchMembershipRequestException} if it could not be found.
081            *
082            * @param membershipRequestId the primary key of the membership request to find
083            * @return the membership request
084            * @throws com.liferay.portal.NoSuchMembershipRequestException if a membership request with the primary key could not be found
085            * @throws SystemException if a system exception occurred
086            */
087            public com.liferay.portal.model.MembershipRequest findByPrimaryKey(
088                    long membershipRequestId)
089                    throws com.liferay.portal.NoSuchMembershipRequestException,
090                            com.liferay.portal.kernel.exception.SystemException;
091    
092            /**
093            * Finds the membership request with the primary key or returns <code>null</code> if it could not be found.
094            *
095            * @param membershipRequestId the primary key of the membership request to find
096            * @return the membership request, or <code>null</code> if a membership request with the primary key could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portal.model.MembershipRequest fetchByPrimaryKey(
100                    long membershipRequestId)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Finds all the membership requests where groupId = &#63;.
105            *
106            * @param groupId the group id to search with
107            * @return the matching membership requests
108            * @throws SystemException if a system exception occurred
109            */
110            public java.util.List<com.liferay.portal.model.MembershipRequest> findByGroupId(
111                    long groupId)
112                    throws com.liferay.portal.kernel.exception.SystemException;
113    
114            /**
115            * Finds a range of all the membership requests where groupId = &#63;.
116            *
117            * <p>
118            * 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.
119            * </p>
120            *
121            * @param groupId the group id to search with
122            * @param start the lower bound of the range of membership requests to return
123            * @param end the upper bound of the range of membership requests to return (not inclusive)
124            * @return the range of matching membership requests
125            * @throws SystemException if a system exception occurred
126            */
127            public java.util.List<com.liferay.portal.model.MembershipRequest> findByGroupId(
128                    long groupId, int start, int end)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            /**
132            * Finds an ordered range of all the membership requests where groupId = &#63;.
133            *
134            * <p>
135            * 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.
136            * </p>
137            *
138            * @param groupId the group id to search with
139            * @param start the lower bound of the range of membership requests to return
140            * @param end the upper bound of the range of membership requests to return (not inclusive)
141            * @param orderByComparator the comparator to order the results by
142            * @return the ordered range of matching membership requests
143            * @throws SystemException if a system exception occurred
144            */
145            public java.util.List<com.liferay.portal.model.MembershipRequest> findByGroupId(
146                    long groupId, int start, int end,
147                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148                    throws com.liferay.portal.kernel.exception.SystemException;
149    
150            /**
151            * Finds the first membership request in the ordered set where groupId = &#63;.
152            *
153            * <p>
154            * 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.
155            * </p>
156            *
157            * @param groupId the group id to search with
158            * @param orderByComparator the comparator to order the set by
159            * @return the first matching membership request
160            * @throws com.liferay.portal.NoSuchMembershipRequestException if a matching membership request could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portal.model.MembershipRequest findByGroupId_First(
164                    long groupId,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.NoSuchMembershipRequestException,
167                            com.liferay.portal.kernel.exception.SystemException;
168    
169            /**
170            * Finds the last membership request in the ordered set where groupId = &#63;.
171            *
172            * <p>
173            * 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.
174            * </p>
175            *
176            * @param groupId the group id to search with
177            * @param orderByComparator the comparator to order the set by
178            * @return the last matching membership request
179            * @throws com.liferay.portal.NoSuchMembershipRequestException if a matching membership request could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            public com.liferay.portal.model.MembershipRequest findByGroupId_Last(
183                    long groupId,
184                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
185                    throws com.liferay.portal.NoSuchMembershipRequestException,
186                            com.liferay.portal.kernel.exception.SystemException;
187    
188            /**
189            * Finds the membership requests before and after the current membership request in the ordered set where groupId = &#63;.
190            *
191            * <p>
192            * 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.
193            * </p>
194            *
195            * @param membershipRequestId the primary key of the current membership request
196            * @param groupId the group id to search with
197            * @param orderByComparator the comparator to order the set by
198            * @return the previous, current, and next membership request
199            * @throws com.liferay.portal.NoSuchMembershipRequestException if a membership request with the primary key could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public com.liferay.portal.model.MembershipRequest[] findByGroupId_PrevAndNext(
203                    long membershipRequestId, long groupId,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.NoSuchMembershipRequestException,
206                            com.liferay.portal.kernel.exception.SystemException;
207    
208            /**
209            * Finds all the membership requests where userId = &#63;.
210            *
211            * @param userId the user id to search with
212            * @return the matching membership requests
213            * @throws SystemException if a system exception occurred
214            */
215            public java.util.List<com.liferay.portal.model.MembershipRequest> findByUserId(
216                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
217    
218            /**
219            * Finds a range of all the membership requests where userId = &#63;.
220            *
221            * <p>
222            * 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.
223            * </p>
224            *
225            * @param userId the user id to search with
226            * @param start the lower bound of the range of membership requests to return
227            * @param end the upper bound of the range of membership requests to return (not inclusive)
228            * @return the range of matching membership requests
229            * @throws SystemException if a system exception occurred
230            */
231            public java.util.List<com.liferay.portal.model.MembershipRequest> findByUserId(
232                    long userId, int start, int end)
233                    throws com.liferay.portal.kernel.exception.SystemException;
234    
235            /**
236            * Finds an ordered range of all the membership requests where userId = &#63;.
237            *
238            * <p>
239            * 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.
240            * </p>
241            *
242            * @param userId the user id to search with
243            * @param start the lower bound of the range of membership requests to return
244            * @param end the upper bound of the range of membership requests to return (not inclusive)
245            * @param orderByComparator the comparator to order the results by
246            * @return the ordered range of matching membership requests
247            * @throws SystemException if a system exception occurred
248            */
249            public java.util.List<com.liferay.portal.model.MembershipRequest> findByUserId(
250                    long userId, int start, int end,
251                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252                    throws com.liferay.portal.kernel.exception.SystemException;
253    
254            /**
255            * Finds the first membership request in the ordered set where userId = &#63;.
256            *
257            * <p>
258            * 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.
259            * </p>
260            *
261            * @param userId the user id to search with
262            * @param orderByComparator the comparator to order the set by
263            * @return the first matching membership request
264            * @throws com.liferay.portal.NoSuchMembershipRequestException if a matching membership request could not be found
265            * @throws SystemException if a system exception occurred
266            */
267            public com.liferay.portal.model.MembershipRequest findByUserId_First(
268                    long userId,
269                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270                    throws com.liferay.portal.NoSuchMembershipRequestException,
271                            com.liferay.portal.kernel.exception.SystemException;
272    
273            /**
274            * Finds the last membership request in the ordered set where userId = &#63;.
275            *
276            * <p>
277            * 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.
278            * </p>
279            *
280            * @param userId the user id to search with
281            * @param orderByComparator the comparator to order the set by
282            * @return the last matching membership request
283            * @throws com.liferay.portal.NoSuchMembershipRequestException if a matching membership request could not be found
284            * @throws SystemException if a system exception occurred
285            */
286            public com.liferay.portal.model.MembershipRequest findByUserId_Last(
287                    long userId,
288                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289                    throws com.liferay.portal.NoSuchMembershipRequestException,
290                            com.liferay.portal.kernel.exception.SystemException;
291    
292            /**
293            * Finds the membership requests before and after the current membership request in the ordered set where userId = &#63;.
294            *
295            * <p>
296            * 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.
297            * </p>
298            *
299            * @param membershipRequestId the primary key of the current membership request
300            * @param userId the user id to search with
301            * @param orderByComparator the comparator to order the set by
302            * @return the previous, current, and next membership request
303            * @throws com.liferay.portal.NoSuchMembershipRequestException if a membership request with the primary key could not be found
304            * @throws SystemException if a system exception occurred
305            */
306            public com.liferay.portal.model.MembershipRequest[] findByUserId_PrevAndNext(
307                    long membershipRequestId, long userId,
308                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309                    throws com.liferay.portal.NoSuchMembershipRequestException,
310                            com.liferay.portal.kernel.exception.SystemException;
311    
312            /**
313            * Finds all the membership requests where groupId = &#63; and statusId = &#63;.
314            *
315            * @param groupId the group id to search with
316            * @param statusId the status id to search with
317            * @return the matching membership requests
318            * @throws SystemException if a system exception occurred
319            */
320            public java.util.List<com.liferay.portal.model.MembershipRequest> findByG_S(
321                    long groupId, int statusId)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * Finds a range of all the membership requests where groupId = &#63; and statusId = &#63;.
326            *
327            * <p>
328            * 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.
329            * </p>
330            *
331            * @param groupId the group id to search with
332            * @param statusId the status id to search with
333            * @param start the lower bound of the range of membership requests to return
334            * @param end the upper bound of the range of membership requests to return (not inclusive)
335            * @return the range of matching membership requests
336            * @throws SystemException if a system exception occurred
337            */
338            public java.util.List<com.liferay.portal.model.MembershipRequest> findByG_S(
339                    long groupId, int statusId, int start, int end)
340                    throws com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * Finds an ordered range of all the membership requests where groupId = &#63; and statusId = &#63;.
344            *
345            * <p>
346            * 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.
347            * </p>
348            *
349            * @param groupId the group id to search with
350            * @param statusId the status id to search with
351            * @param start the lower bound of the range of membership requests to return
352            * @param end the upper bound of the range of membership requests to return (not inclusive)
353            * @param orderByComparator the comparator to order the results by
354            * @return the ordered range of matching membership requests
355            * @throws SystemException if a system exception occurred
356            */
357            public java.util.List<com.liferay.portal.model.MembershipRequest> findByG_S(
358                    long groupId, int statusId, int start, int end,
359                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360                    throws com.liferay.portal.kernel.exception.SystemException;
361    
362            /**
363            * Finds the first membership request in the ordered set where groupId = &#63; and statusId = &#63;.
364            *
365            * <p>
366            * 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.
367            * </p>
368            *
369            * @param groupId the group id to search with
370            * @param statusId the status id to search with
371            * @param orderByComparator the comparator to order the set by
372            * @return the first matching membership request
373            * @throws com.liferay.portal.NoSuchMembershipRequestException if a matching membership request could not be found
374            * @throws SystemException if a system exception occurred
375            */
376            public com.liferay.portal.model.MembershipRequest findByG_S_First(
377                    long groupId, int statusId,
378                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379                    throws com.liferay.portal.NoSuchMembershipRequestException,
380                            com.liferay.portal.kernel.exception.SystemException;
381    
382            /**
383            * Finds the last membership request in the ordered set where groupId = &#63; and statusId = &#63;.
384            *
385            * <p>
386            * 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.
387            * </p>
388            *
389            * @param groupId the group id to search with
390            * @param statusId the status id to search with
391            * @param orderByComparator the comparator to order the set by
392            * @return the last matching membership request
393            * @throws com.liferay.portal.NoSuchMembershipRequestException if a matching membership request could not be found
394            * @throws SystemException if a system exception occurred
395            */
396            public com.liferay.portal.model.MembershipRequest findByG_S_Last(
397                    long groupId, int statusId,
398                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
399                    throws com.liferay.portal.NoSuchMembershipRequestException,
400                            com.liferay.portal.kernel.exception.SystemException;
401    
402            /**
403            * Finds the membership requests before and after the current membership request in the ordered set where groupId = &#63; and statusId = &#63;.
404            *
405            * <p>
406            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
407            * </p>
408            *
409            * @param membershipRequestId the primary key of the current membership request
410            * @param groupId the group id to search with
411            * @param statusId the status id to search with
412            * @param orderByComparator the comparator to order the set by
413            * @return the previous, current, and next membership request
414            * @throws com.liferay.portal.NoSuchMembershipRequestException if a membership request with the primary key could not be found
415            * @throws SystemException if a system exception occurred
416            */
417            public com.liferay.portal.model.MembershipRequest[] findByG_S_PrevAndNext(
418                    long membershipRequestId, long groupId, int statusId,
419                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
420                    throws com.liferay.portal.NoSuchMembershipRequestException,
421                            com.liferay.portal.kernel.exception.SystemException;
422    
423            /**
424            * Finds all the membership requests.
425            *
426            * @return the membership requests
427            * @throws SystemException if a system exception occurred
428            */
429            public java.util.List<com.liferay.portal.model.MembershipRequest> findAll()
430                    throws com.liferay.portal.kernel.exception.SystemException;
431    
432            /**
433            * Finds a range of all the membership requests.
434            *
435            * <p>
436            * 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.
437            * </p>
438            *
439            * @param start the lower bound of the range of membership requests to return
440            * @param end the upper bound of the range of membership requests to return (not inclusive)
441            * @return the range of membership requests
442            * @throws SystemException if a system exception occurred
443            */
444            public java.util.List<com.liferay.portal.model.MembershipRequest> findAll(
445                    int start, int end)
446                    throws com.liferay.portal.kernel.exception.SystemException;
447    
448            /**
449            * Finds an ordered range of all the membership requests.
450            *
451            * <p>
452            * 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.
453            * </p>
454            *
455            * @param start the lower bound of the range of membership requests to return
456            * @param end the upper bound of the range of membership requests to return (not inclusive)
457            * @param orderByComparator the comparator to order the results by
458            * @return the ordered range of membership requests
459            * @throws SystemException if a system exception occurred
460            */
461            public java.util.List<com.liferay.portal.model.MembershipRequest> findAll(
462                    int start, int end,
463                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
464                    throws com.liferay.portal.kernel.exception.SystemException;
465    
466            /**
467            * Removes all the membership requests where groupId = &#63; from the database.
468            *
469            * @param groupId the group id to search with
470            * @throws SystemException if a system exception occurred
471            */
472            public void removeByGroupId(long groupId)
473                    throws com.liferay.portal.kernel.exception.SystemException;
474    
475            /**
476            * Removes all the membership requests where userId = &#63; from the database.
477            *
478            * @param userId the user id to search with
479            * @throws SystemException if a system exception occurred
480            */
481            public void removeByUserId(long userId)
482                    throws com.liferay.portal.kernel.exception.SystemException;
483    
484            /**
485            * Removes all the membership requests where groupId = &#63; and statusId = &#63; from the database.
486            *
487            * @param groupId the group id to search with
488            * @param statusId the status id to search with
489            * @throws SystemException if a system exception occurred
490            */
491            public void removeByG_S(long groupId, int statusId)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * Removes all the membership requests from the database.
496            *
497            * @throws SystemException if a system exception occurred
498            */
499            public void removeAll()
500                    throws com.liferay.portal.kernel.exception.SystemException;
501    
502            /**
503            * Counts all the membership requests where groupId = &#63;.
504            *
505            * @param groupId the group id to search with
506            * @return the number of matching membership requests
507            * @throws SystemException if a system exception occurred
508            */
509            public int countByGroupId(long groupId)
510                    throws com.liferay.portal.kernel.exception.SystemException;
511    
512            /**
513            * Counts all the membership requests where userId = &#63;.
514            *
515            * @param userId the user id to search with
516            * @return the number of matching membership requests
517            * @throws SystemException if a system exception occurred
518            */
519            public int countByUserId(long userId)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Counts all the membership requests where groupId = &#63; and statusId = &#63;.
524            *
525            * @param groupId the group id to search with
526            * @param statusId the status id to search with
527            * @return the number of matching membership requests
528            * @throws SystemException if a system exception occurred
529            */
530            public int countByG_S(long groupId, int statusId)
531                    throws com.liferay.portal.kernel.exception.SystemException;
532    
533            /**
534            * Counts all the membership requests.
535            *
536            * @return the number of membership requests
537            * @throws SystemException if a system exception occurred
538            */
539            public int countAll()
540                    throws com.liferay.portal.kernel.exception.SystemException;
541    }