001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.social.model.SocialRequest;
020    
021    /**
022     * The persistence interface for the social 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 SocialRequestPersistenceImpl
030     * @see SocialRequestUtil
031     * @generated
032     */
033    public interface SocialRequestPersistence extends BasePersistence<SocialRequest> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link SocialRequestUtil} to access the social request persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the social request in the entity cache if it is enabled.
042            *
043            * @param socialRequest the social request
044            */
045            public void cacheResult(
046                    com.liferay.portlet.social.model.SocialRequest socialRequest);
047    
048            /**
049            * Caches the social requests in the entity cache if it is enabled.
050            *
051            * @param socialRequests the social requests
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.social.model.SocialRequest> socialRequests);
055    
056            /**
057            * Creates a new social request with the primary key. Does not add the social request to the database.
058            *
059            * @param requestId the primary key for the new social request
060            * @return the new social request
061            */
062            public com.liferay.portlet.social.model.SocialRequest create(long requestId);
063    
064            /**
065            * Removes the social request with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param requestId the primary key of the social request
068            * @return the social request that was removed
069            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public com.liferay.portlet.social.model.SocialRequest remove(long requestId)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.social.NoSuchRequestException;
075    
076            public com.liferay.portlet.social.model.SocialRequest updateImpl(
077                    com.liferay.portlet.social.model.SocialRequest socialRequest)
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            /**
081            * Returns the social request with the primary key or throws a {@link com.liferay.portlet.social.NoSuchRequestException} if it could not be found.
082            *
083            * @param requestId the primary key of the social request
084            * @return the social request
085            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
086            * @throws SystemException if a system exception occurred
087            */
088            public com.liferay.portlet.social.model.SocialRequest findByPrimaryKey(
089                    long requestId)
090                    throws com.liferay.portal.kernel.exception.SystemException,
091                            com.liferay.portlet.social.NoSuchRequestException;
092    
093            /**
094            * Returns the social request with the primary key or returns <code>null</code> if it could not be found.
095            *
096            * @param requestId the primary key of the social request
097            * @return the social request, or <code>null</code> if a social request with the primary key could not be found
098            * @throws SystemException if a system exception occurred
099            */
100            public com.liferay.portlet.social.model.SocialRequest fetchByPrimaryKey(
101                    long requestId)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            /**
105            * Returns all the social requests where uuid = &#63;.
106            *
107            * @param uuid the uuid
108            * @return the matching social requests
109            * @throws SystemException if a system exception occurred
110            */
111            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
112                    java.lang.String uuid)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns a range of all the social requests where uuid = &#63;.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param uuid the uuid
123            * @param start the lower bound of the range of social requests
124            * @param end the upper bound of the range of social requests (not inclusive)
125            * @return the range of matching social requests
126            * @throws SystemException if a system exception occurred
127            */
128            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
129                    java.lang.String uuid, int start, int end)
130                    throws com.liferay.portal.kernel.exception.SystemException;
131    
132            /**
133            * Returns an ordered range of all the social requests where uuid = &#63;.
134            *
135            * <p>
136            * 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.
137            * </p>
138            *
139            * @param uuid the uuid
140            * @param start the lower bound of the range of social requests
141            * @param end the upper bound of the range of social requests (not inclusive)
142            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
143            * @return the ordered range of matching social requests
144            * @throws SystemException if a system exception occurred
145            */
146            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
147                    java.lang.String uuid, int start, int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            /**
152            * Returns the first social request in the ordered set where uuid = &#63;.
153            *
154            * @param uuid the uuid
155            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
156            * @return the first matching social request
157            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portlet.social.model.SocialRequest findByUuid_First(
161                    java.lang.String uuid,
162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163                    throws com.liferay.portal.kernel.exception.SystemException,
164                            com.liferay.portlet.social.NoSuchRequestException;
165    
166            /**
167            * Returns the first social request in the ordered set where uuid = &#63;.
168            *
169            * @param uuid the uuid
170            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
171            * @return the first matching social request, or <code>null</code> if a matching social request could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public com.liferay.portlet.social.model.SocialRequest fetchByUuid_First(
175                    java.lang.String uuid,
176                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            /**
180            * Returns the last social request in the ordered set where uuid = &#63;.
181            *
182            * @param uuid the uuid
183            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
184            * @return the last matching social request
185            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public com.liferay.portlet.social.model.SocialRequest findByUuid_Last(
189                    java.lang.String uuid,
190                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191                    throws com.liferay.portal.kernel.exception.SystemException,
192                            com.liferay.portlet.social.NoSuchRequestException;
193    
194            /**
195            * Returns the last social request in the ordered set where uuid = &#63;.
196            *
197            * @param uuid the uuid
198            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
199            * @return the last matching social request, or <code>null</code> if a matching social request could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public com.liferay.portlet.social.model.SocialRequest fetchByUuid_Last(
203                    java.lang.String uuid,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * Returns the social requests before and after the current social request in the ordered set where uuid = &#63;.
209            *
210            * @param requestId the primary key of the current social request
211            * @param uuid the uuid
212            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
213            * @return the previous, current, and next social request
214            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
215            * @throws SystemException if a system exception occurred
216            */
217            public com.liferay.portlet.social.model.SocialRequest[] findByUuid_PrevAndNext(
218                    long requestId, java.lang.String uuid,
219                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220                    throws com.liferay.portal.kernel.exception.SystemException,
221                            com.liferay.portlet.social.NoSuchRequestException;
222    
223            /**
224            * Returns the social request where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.social.NoSuchRequestException} if it could not be found.
225            *
226            * @param uuid the uuid
227            * @param groupId the group ID
228            * @return the matching social request
229            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portlet.social.model.SocialRequest findByUUID_G(
233                    java.lang.String uuid, long groupId)
234                    throws com.liferay.portal.kernel.exception.SystemException,
235                            com.liferay.portlet.social.NoSuchRequestException;
236    
237            /**
238            * Returns the social request where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
239            *
240            * @param uuid the uuid
241            * @param groupId the group ID
242            * @return the matching social request, or <code>null</code> if a matching social request could not be found
243            * @throws SystemException if a system exception occurred
244            */
245            public com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
246                    java.lang.String uuid, long groupId)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            /**
250            * Returns the social request where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
251            *
252            * @param uuid the uuid
253            * @param groupId the group ID
254            * @param retrieveFromCache whether to use the finder cache
255            * @return the matching social request, or <code>null</code> if a matching social request could not be found
256            * @throws SystemException if a system exception occurred
257            */
258            public com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
259                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
260                    throws com.liferay.portal.kernel.exception.SystemException;
261    
262            /**
263            * Returns all the social requests where uuid = &#63; and companyId = &#63;.
264            *
265            * @param uuid the uuid
266            * @param companyId the company ID
267            * @return the matching social requests
268            * @throws SystemException if a system exception occurred
269            */
270            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid_C(
271                    java.lang.String uuid, long companyId)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            /**
275            * Returns a range of all the social requests where uuid = &#63; and companyId = &#63;.
276            *
277            * <p>
278            * 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.
279            * </p>
280            *
281            * @param uuid the uuid
282            * @param companyId the company ID
283            * @param start the lower bound of the range of social requests
284            * @param end the upper bound of the range of social requests (not inclusive)
285            * @return the range of matching social requests
286            * @throws SystemException if a system exception occurred
287            */
288            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid_C(
289                    java.lang.String uuid, long companyId, int start, int end)
290                    throws com.liferay.portal.kernel.exception.SystemException;
291    
292            /**
293            * Returns an ordered range of all the social requests where uuid = &#63; and companyId = &#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 uuid the uuid
300            * @param companyId the company ID
301            * @param start the lower bound of the range of social requests
302            * @param end the upper bound of the range of social requests (not inclusive)
303            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
304            * @return the ordered range of matching social requests
305            * @throws SystemException if a system exception occurred
306            */
307            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid_C(
308                    java.lang.String uuid, long companyId, int start, int end,
309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310                    throws com.liferay.portal.kernel.exception.SystemException;
311    
312            /**
313            * Returns the first social request in the ordered set where uuid = &#63; and companyId = &#63;.
314            *
315            * @param uuid the uuid
316            * @param companyId the company ID
317            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
318            * @return the first matching social request
319            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
320            * @throws SystemException if a system exception occurred
321            */
322            public com.liferay.portlet.social.model.SocialRequest findByUuid_C_First(
323                    java.lang.String uuid, long companyId,
324                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
325                    throws com.liferay.portal.kernel.exception.SystemException,
326                            com.liferay.portlet.social.NoSuchRequestException;
327    
328            /**
329            * Returns the first social request in the ordered set where uuid = &#63; and companyId = &#63;.
330            *
331            * @param uuid the uuid
332            * @param companyId the company ID
333            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
334            * @return the first matching social request, or <code>null</code> if a matching social request could not be found
335            * @throws SystemException if a system exception occurred
336            */
337            public com.liferay.portlet.social.model.SocialRequest fetchByUuid_C_First(
338                    java.lang.String uuid, long companyId,
339                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340                    throws com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * Returns the last social request in the ordered set where uuid = &#63; and companyId = &#63;.
344            *
345            * @param uuid the uuid
346            * @param companyId the company ID
347            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
348            * @return the last matching social request
349            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
350            * @throws SystemException if a system exception occurred
351            */
352            public com.liferay.portlet.social.model.SocialRequest findByUuid_C_Last(
353                    java.lang.String uuid, long companyId,
354                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
355                    throws com.liferay.portal.kernel.exception.SystemException,
356                            com.liferay.portlet.social.NoSuchRequestException;
357    
358            /**
359            * Returns the last social request in the ordered set where uuid = &#63; and companyId = &#63;.
360            *
361            * @param uuid the uuid
362            * @param companyId the company ID
363            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
364            * @return the last matching social request, or <code>null</code> if a matching social request could not be found
365            * @throws SystemException if a system exception occurred
366            */
367            public com.liferay.portlet.social.model.SocialRequest fetchByUuid_C_Last(
368                    java.lang.String uuid, long companyId,
369                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
370                    throws com.liferay.portal.kernel.exception.SystemException;
371    
372            /**
373            * Returns the social requests before and after the current social request in the ordered set where uuid = &#63; and companyId = &#63;.
374            *
375            * @param requestId the primary key of the current social request
376            * @param uuid the uuid
377            * @param companyId the company ID
378            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
379            * @return the previous, current, and next social request
380            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
381            * @throws SystemException if a system exception occurred
382            */
383            public com.liferay.portlet.social.model.SocialRequest[] findByUuid_C_PrevAndNext(
384                    long requestId, java.lang.String uuid, long companyId,
385                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
386                    throws com.liferay.portal.kernel.exception.SystemException,
387                            com.liferay.portlet.social.NoSuchRequestException;
388    
389            /**
390            * Returns all the social requests where companyId = &#63;.
391            *
392            * @param companyId the company ID
393            * @return the matching social requests
394            * @throws SystemException if a system exception occurred
395            */
396            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
397                    long companyId)
398                    throws com.liferay.portal.kernel.exception.SystemException;
399    
400            /**
401            * Returns a range of all the social requests where companyId = &#63;.
402            *
403            * <p>
404            * 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.
405            * </p>
406            *
407            * @param companyId the company ID
408            * @param start the lower bound of the range of social requests
409            * @param end the upper bound of the range of social requests (not inclusive)
410            * @return the range of matching social requests
411            * @throws SystemException if a system exception occurred
412            */
413            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
414                    long companyId, int start, int end)
415                    throws com.liferay.portal.kernel.exception.SystemException;
416    
417            /**
418            * Returns an ordered range of all the social requests where companyId = &#63;.
419            *
420            * <p>
421            * 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.
422            * </p>
423            *
424            * @param companyId the company ID
425            * @param start the lower bound of the range of social requests
426            * @param end the upper bound of the range of social requests (not inclusive)
427            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
428            * @return the ordered range of matching social requests
429            * @throws SystemException if a system exception occurred
430            */
431            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
432                    long companyId, int start, int end,
433                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
434                    throws com.liferay.portal.kernel.exception.SystemException;
435    
436            /**
437            * Returns the first social request in the ordered set where companyId = &#63;.
438            *
439            * @param companyId the company ID
440            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
441            * @return the first matching social request
442            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
443            * @throws SystemException if a system exception occurred
444            */
445            public com.liferay.portlet.social.model.SocialRequest findByCompanyId_First(
446                    long companyId,
447                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
448                    throws com.liferay.portal.kernel.exception.SystemException,
449                            com.liferay.portlet.social.NoSuchRequestException;
450    
451            /**
452            * Returns the first social request in the ordered set where companyId = &#63;.
453            *
454            * @param companyId the company ID
455            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
456            * @return the first matching social request, or <code>null</code> if a matching social request could not be found
457            * @throws SystemException if a system exception occurred
458            */
459            public com.liferay.portlet.social.model.SocialRequest fetchByCompanyId_First(
460                    long companyId,
461                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
462                    throws com.liferay.portal.kernel.exception.SystemException;
463    
464            /**
465            * Returns the last social request in the ordered set where companyId = &#63;.
466            *
467            * @param companyId the company ID
468            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
469            * @return the last matching social request
470            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
471            * @throws SystemException if a system exception occurred
472            */
473            public com.liferay.portlet.social.model.SocialRequest findByCompanyId_Last(
474                    long companyId,
475                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
476                    throws com.liferay.portal.kernel.exception.SystemException,
477                            com.liferay.portlet.social.NoSuchRequestException;
478    
479            /**
480            * Returns the last social request in the ordered set where companyId = &#63;.
481            *
482            * @param companyId the company ID
483            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
484            * @return the last matching social request, or <code>null</code> if a matching social request could not be found
485            * @throws SystemException if a system exception occurred
486            */
487            public com.liferay.portlet.social.model.SocialRequest fetchByCompanyId_Last(
488                    long companyId,
489                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
490                    throws com.liferay.portal.kernel.exception.SystemException;
491    
492            /**
493            * Returns the social requests before and after the current social request in the ordered set where companyId = &#63;.
494            *
495            * @param requestId the primary key of the current social request
496            * @param companyId the company ID
497            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
498            * @return the previous, current, and next social request
499            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
500            * @throws SystemException if a system exception occurred
501            */
502            public com.liferay.portlet.social.model.SocialRequest[] findByCompanyId_PrevAndNext(
503                    long requestId, long companyId,
504                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
505                    throws com.liferay.portal.kernel.exception.SystemException,
506                            com.liferay.portlet.social.NoSuchRequestException;
507    
508            /**
509            * Returns all the social requests where userId = &#63;.
510            *
511            * @param userId the user ID
512            * @return the matching social requests
513            * @throws SystemException if a system exception occurred
514            */
515            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
516                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
517    
518            /**
519            * Returns a range of all the social requests where userId = &#63;.
520            *
521            * <p>
522            * 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.
523            * </p>
524            *
525            * @param userId the user ID
526            * @param start the lower bound of the range of social requests
527            * @param end the upper bound of the range of social requests (not inclusive)
528            * @return the range of matching social requests
529            * @throws SystemException if a system exception occurred
530            */
531            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
532                    long userId, int start, int end)
533                    throws com.liferay.portal.kernel.exception.SystemException;
534    
535            /**
536            * Returns an ordered range of all the social requests where userId = &#63;.
537            *
538            * <p>
539            * 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.
540            * </p>
541            *
542            * @param userId the user ID
543            * @param start the lower bound of the range of social requests
544            * @param end the upper bound of the range of social requests (not inclusive)
545            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
546            * @return the ordered range of matching social requests
547            * @throws SystemException if a system exception occurred
548            */
549            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
550                    long userId, int start, int end,
551                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * Returns the first social request in the ordered set where userId = &#63;.
556            *
557            * @param userId the user ID
558            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
559            * @return the first matching social request
560            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
561            * @throws SystemException if a system exception occurred
562            */
563            public com.liferay.portlet.social.model.SocialRequest findByUserId_First(
564                    long userId,
565                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
566                    throws com.liferay.portal.kernel.exception.SystemException,
567                            com.liferay.portlet.social.NoSuchRequestException;
568    
569            /**
570            * Returns the first social request in the ordered set where userId = &#63;.
571            *
572            * @param userId the user ID
573            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
574            * @return the first matching social request, or <code>null</code> if a matching social request could not be found
575            * @throws SystemException if a system exception occurred
576            */
577            public com.liferay.portlet.social.model.SocialRequest fetchByUserId_First(
578                    long userId,
579                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
580                    throws com.liferay.portal.kernel.exception.SystemException;
581    
582            /**
583            * Returns the last social request in the ordered set where userId = &#63;.
584            *
585            * @param userId the user ID
586            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
587            * @return the last matching social request
588            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
589            * @throws SystemException if a system exception occurred
590            */
591            public com.liferay.portlet.social.model.SocialRequest findByUserId_Last(
592                    long userId,
593                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
594                    throws com.liferay.portal.kernel.exception.SystemException,
595                            com.liferay.portlet.social.NoSuchRequestException;
596    
597            /**
598            * Returns the last social request in the ordered set where userId = &#63;.
599            *
600            * @param userId the user ID
601            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
602            * @return the last matching social request, or <code>null</code> if a matching social request could not be found
603            * @throws SystemException if a system exception occurred
604            */
605            public com.liferay.portlet.social.model.SocialRequest fetchByUserId_Last(
606                    long userId,
607                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
608                    throws com.liferay.portal.kernel.exception.SystemException;
609    
610            /**
611            * Returns the social requests before and after the current social request in the ordered set where userId = &#63;.
612            *
613            * @param requestId the primary key of the current social request
614            * @param userId the user ID
615            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
616            * @return the previous, current, and next social request
617            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
618            * @throws SystemException if a system exception occurred
619            */
620            public com.liferay.portlet.social.model.SocialRequest[] findByUserId_PrevAndNext(
621                    long requestId, long userId,
622                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
623                    throws com.liferay.portal.kernel.exception.SystemException,
624                            com.liferay.portlet.social.NoSuchRequestException;
625    
626            /**
627            * Returns all the social requests where receiverUserId = &#63;.
628            *
629            * @param receiverUserId the receiver user ID
630            * @return the matching social requests
631            * @throws SystemException if a system exception occurred
632            */
633            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
634                    long receiverUserId)
635                    throws com.liferay.portal.kernel.exception.SystemException;
636    
637            /**
638            * Returns a range of all the social requests where receiverUserId = &#63;.
639            *
640            * <p>
641            * 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.
642            * </p>
643            *
644            * @param receiverUserId the receiver user ID
645            * @param start the lower bound of the range of social requests
646            * @param end the upper bound of the range of social requests (not inclusive)
647            * @return the range of matching social requests
648            * @throws SystemException if a system exception occurred
649            */
650            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
651                    long receiverUserId, int start, int end)
652                    throws com.liferay.portal.kernel.exception.SystemException;
653    
654            /**
655            * Returns an ordered range of all the social requests where receiverUserId = &#63;.
656            *
657            * <p>
658            * 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.
659            * </p>
660            *
661            * @param receiverUserId the receiver user ID
662            * @param start the lower bound of the range of social requests
663            * @param end the upper bound of the range of social requests (not inclusive)
664            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
665            * @return the ordered range of matching social requests
666            * @throws SystemException if a system exception occurred
667            */
668            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
669                    long receiverUserId, int start, int end,
670                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
671                    throws com.liferay.portal.kernel.exception.SystemException;
672    
673            /**
674            * Returns the first social request in the ordered set where receiverUserId = &#63;.
675            *
676            * @param receiverUserId the receiver user ID
677            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
678            * @return the first matching social request
679            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
680            * @throws SystemException if a system exception occurred
681            */
682            public com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_First(
683                    long receiverUserId,
684                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
685                    throws com.liferay.portal.kernel.exception.SystemException,
686                            com.liferay.portlet.social.NoSuchRequestException;
687    
688            /**
689            * Returns the first social request in the ordered set where receiverUserId = &#63;.
690            *
691            * @param receiverUserId the receiver user ID
692            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
693            * @return the first matching social request, or <code>null</code> if a matching social request could not be found
694            * @throws SystemException if a system exception occurred
695            */
696            public com.liferay.portlet.social.model.SocialRequest fetchByReceiverUserId_First(
697                    long receiverUserId,
698                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
699                    throws com.liferay.portal.kernel.exception.SystemException;
700    
701            /**
702            * Returns the last social request in the ordered set where receiverUserId = &#63;.
703            *
704            * @param receiverUserId the receiver user ID
705            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
706            * @return the last matching social request
707            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
708            * @throws SystemException if a system exception occurred
709            */
710            public com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_Last(
711                    long receiverUserId,
712                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
713                    throws com.liferay.portal.kernel.exception.SystemException,
714                            com.liferay.portlet.social.NoSuchRequestException;
715    
716            /**
717            * Returns the last social request in the ordered set where receiverUserId = &#63;.
718            *
719            * @param receiverUserId the receiver user ID
720            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
721            * @return the last matching social request, or <code>null</code> if a matching social request could not be found
722            * @throws SystemException if a system exception occurred
723            */
724            public com.liferay.portlet.social.model.SocialRequest fetchByReceiverUserId_Last(
725                    long receiverUserId,
726                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
727                    throws com.liferay.portal.kernel.exception.SystemException;
728    
729            /**
730            * Returns the social requests before and after the current social request in the ordered set where receiverUserId = &#63;.
731            *
732            * @param requestId the primary key of the current social request
733            * @param receiverUserId the receiver user ID
734            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
735            * @return the previous, current, and next social request
736            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
737            * @throws SystemException if a system exception occurred
738            */
739            public com.liferay.portlet.social.model.SocialRequest[] findByReceiverUserId_PrevAndNext(
740                    long requestId, long receiverUserId,
741                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
742                    throws com.liferay.portal.kernel.exception.SystemException,
743                            com.liferay.portlet.social.NoSuchRequestException;
744    
745            /**
746            * Returns all the social requests where userId = &#63; and status = &#63;.
747            *
748            * @param userId the user ID
749            * @param status the status
750            * @return the matching social requests
751            * @throws SystemException if a system exception occurred
752            */
753            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
754                    long userId, int status)
755                    throws com.liferay.portal.kernel.exception.SystemException;
756    
757            /**
758            * Returns a range of all the social requests where userId = &#63; and status = &#63;.
759            *
760            * <p>
761            * 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.
762            * </p>
763            *
764            * @param userId the user ID
765            * @param status the status
766            * @param start the lower bound of the range of social requests
767            * @param end the upper bound of the range of social requests (not inclusive)
768            * @return the range of matching social requests
769            * @throws SystemException if a system exception occurred
770            */
771            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
772                    long userId, int status, int start, int end)
773                    throws com.liferay.portal.kernel.exception.SystemException;
774    
775            /**
776            * Returns an ordered range of all the social requests where userId = &#63; and status = &#63;.
777            *
778            * <p>
779            * 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.
780            * </p>
781            *
782            * @param userId the user ID
783            * @param status the status
784            * @param start the lower bound of the range of social requests
785            * @param end the upper bound of the range of social requests (not inclusive)
786            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
787            * @return the ordered range of matching social requests
788            * @throws SystemException if a system exception occurred
789            */
790            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
791                    long userId, int status, int start, int end,
792                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
793                    throws com.liferay.portal.kernel.exception.SystemException;
794    
795            /**
796            * Returns the first social request in the ordered set where userId = &#63; and status = &#63;.
797            *
798            * @param userId the user ID
799            * @param status the status
800            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
801            * @return the first matching social request
802            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
803            * @throws SystemException if a system exception occurred
804            */
805            public com.liferay.portlet.social.model.SocialRequest findByU_S_First(
806                    long userId, int status,
807                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
808                    throws com.liferay.portal.kernel.exception.SystemException,
809                            com.liferay.portlet.social.NoSuchRequestException;
810    
811            /**
812            * Returns the first social request in the ordered set where userId = &#63; and status = &#63;.
813            *
814            * @param userId the user ID
815            * @param status the status
816            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
817            * @return the first matching social request, or <code>null</code> if a matching social request could not be found
818            * @throws SystemException if a system exception occurred
819            */
820            public com.liferay.portlet.social.model.SocialRequest fetchByU_S_First(
821                    long userId, int status,
822                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
823                    throws com.liferay.portal.kernel.exception.SystemException;
824    
825            /**
826            * Returns the last social request in the ordered set where userId = &#63; and status = &#63;.
827            *
828            * @param userId the user ID
829            * @param status the status
830            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
831            * @return the last matching social request
832            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
833            * @throws SystemException if a system exception occurred
834            */
835            public com.liferay.portlet.social.model.SocialRequest findByU_S_Last(
836                    long userId, int status,
837                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
838                    throws com.liferay.portal.kernel.exception.SystemException,
839                            com.liferay.portlet.social.NoSuchRequestException;
840    
841            /**
842            * Returns the last social request in the ordered set where userId = &#63; and status = &#63;.
843            *
844            * @param userId the user ID
845            * @param status the status
846            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
847            * @return the last matching social request, or <code>null</code> if a matching social request could not be found
848            * @throws SystemException if a system exception occurred
849            */
850            public com.liferay.portlet.social.model.SocialRequest fetchByU_S_Last(
851                    long userId, int status,
852                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
853                    throws com.liferay.portal.kernel.exception.SystemException;
854    
855            /**
856            * Returns the social requests before and after the current social request in the ordered set where userId = &#63; and status = &#63;.
857            *
858            * @param requestId the primary key of the current social request
859            * @param userId the user ID
860            * @param status the status
861            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
862            * @return the previous, current, and next social request
863            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
864            * @throws SystemException if a system exception occurred
865            */
866            public com.liferay.portlet.social.model.SocialRequest[] findByU_S_PrevAndNext(
867                    long requestId, long userId, int status,
868                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
869                    throws com.liferay.portal.kernel.exception.SystemException,
870                            com.liferay.portlet.social.NoSuchRequestException;
871    
872            /**
873            * Returns all the social requests where receiverUserId = &#63; and status = &#63;.
874            *
875            * @param receiverUserId the receiver user ID
876            * @param status the status
877            * @return the matching social requests
878            * @throws SystemException if a system exception occurred
879            */
880            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
881                    long receiverUserId, int status)
882                    throws com.liferay.portal.kernel.exception.SystemException;
883    
884            /**
885            * Returns a range of all the social requests where receiverUserId = &#63; and status = &#63;.
886            *
887            * <p>
888            * 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.
889            * </p>
890            *
891            * @param receiverUserId the receiver user ID
892            * @param status the status
893            * @param start the lower bound of the range of social requests
894            * @param end the upper bound of the range of social requests (not inclusive)
895            * @return the range of matching social requests
896            * @throws SystemException if a system exception occurred
897            */
898            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
899                    long receiverUserId, int status, int start, int end)
900                    throws com.liferay.portal.kernel.exception.SystemException;
901    
902            /**
903            * Returns an ordered range of all the social requests where receiverUserId = &#63; and status = &#63;.
904            *
905            * <p>
906            * 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.
907            * </p>
908            *
909            * @param receiverUserId the receiver user ID
910            * @param status the status
911            * @param start the lower bound of the range of social requests
912            * @param end the upper bound of the range of social requests (not inclusive)
913            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
914            * @return the ordered range of matching social requests
915            * @throws SystemException if a system exception occurred
916            */
917            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
918                    long receiverUserId, int status, int start, int end,
919                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
920                    throws com.liferay.portal.kernel.exception.SystemException;
921    
922            /**
923            * Returns the first social request in the ordered set where receiverUserId = &#63; and status = &#63;.
924            *
925            * @param receiverUserId the receiver user ID
926            * @param status the status
927            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
928            * @return the first matching social request
929            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
930            * @throws SystemException if a system exception occurred
931            */
932            public com.liferay.portlet.social.model.SocialRequest findByR_S_First(
933                    long receiverUserId, int status,
934                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
935                    throws com.liferay.portal.kernel.exception.SystemException,
936                            com.liferay.portlet.social.NoSuchRequestException;
937    
938            /**
939            * Returns the first social request in the ordered set where receiverUserId = &#63; and status = &#63;.
940            *
941            * @param receiverUserId the receiver user ID
942            * @param status the status
943            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
944            * @return the first matching social request, or <code>null</code> if a matching social request could not be found
945            * @throws SystemException if a system exception occurred
946            */
947            public com.liferay.portlet.social.model.SocialRequest fetchByR_S_First(
948                    long receiverUserId, int status,
949                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
950                    throws com.liferay.portal.kernel.exception.SystemException;
951    
952            /**
953            * Returns the last social request in the ordered set where receiverUserId = &#63; and status = &#63;.
954            *
955            * @param receiverUserId the receiver user ID
956            * @param status the status
957            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
958            * @return the last matching social request
959            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
960            * @throws SystemException if a system exception occurred
961            */
962            public com.liferay.portlet.social.model.SocialRequest findByR_S_Last(
963                    long receiverUserId, int status,
964                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
965                    throws com.liferay.portal.kernel.exception.SystemException,
966                            com.liferay.portlet.social.NoSuchRequestException;
967    
968            /**
969            * Returns the last social request in the ordered set where receiverUserId = &#63; and status = &#63;.
970            *
971            * @param receiverUserId the receiver user ID
972            * @param status the status
973            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
974            * @return the last matching social request, or <code>null</code> if a matching social request could not be found
975            * @throws SystemException if a system exception occurred
976            */
977            public com.liferay.portlet.social.model.SocialRequest fetchByR_S_Last(
978                    long receiverUserId, int status,
979                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
980                    throws com.liferay.portal.kernel.exception.SystemException;
981    
982            /**
983            * Returns the social requests before and after the current social request in the ordered set where receiverUserId = &#63; and status = &#63;.
984            *
985            * @param requestId the primary key of the current social request
986            * @param receiverUserId the receiver user ID
987            * @param status the status
988            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
989            * @return the previous, current, and next social request
990            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
991            * @throws SystemException if a system exception occurred
992            */
993            public com.liferay.portlet.social.model.SocialRequest[] findByR_S_PrevAndNext(
994                    long requestId, long receiverUserId, int status,
995                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
996                    throws com.liferay.portal.kernel.exception.SystemException,
997                            com.liferay.portlet.social.NoSuchRequestException;
998    
999            /**
1000            * Returns the social request where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; or throws a {@link com.liferay.portlet.social.NoSuchRequestException} if it could not be found.
1001            *
1002            * @param userId the user ID
1003            * @param classNameId the class name ID
1004            * @param classPK the class p k
1005            * @param type the type
1006            * @param receiverUserId the receiver user ID
1007            * @return the matching social request
1008            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
1009            * @throws SystemException if a system exception occurred
1010            */
1011            public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_R(
1012                    long userId, long classNameId, long classPK, int type,
1013                    long receiverUserId)
1014                    throws com.liferay.portal.kernel.exception.SystemException,
1015                            com.liferay.portlet.social.NoSuchRequestException;
1016    
1017            /**
1018            * Returns the social request where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1019            *
1020            * @param userId the user ID
1021            * @param classNameId the class name ID
1022            * @param classPK the class p k
1023            * @param type the type
1024            * @param receiverUserId the receiver user ID
1025            * @return the matching social request, or <code>null</code> if a matching social request could not be found
1026            * @throws SystemException if a system exception occurred
1027            */
1028            public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
1029                    long userId, long classNameId, long classPK, int type,
1030                    long receiverUserId)
1031                    throws com.liferay.portal.kernel.exception.SystemException;
1032    
1033            /**
1034            * Returns the social request where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1035            *
1036            * @param userId the user ID
1037            * @param classNameId the class name ID
1038            * @param classPK the class p k
1039            * @param type the type
1040            * @param receiverUserId the receiver user ID
1041            * @param retrieveFromCache whether to use the finder cache
1042            * @return the matching social request, or <code>null</code> if a matching social request could not be found
1043            * @throws SystemException if a system exception occurred
1044            */
1045            public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
1046                    long userId, long classNameId, long classPK, int type,
1047                    long receiverUserId, boolean retrieveFromCache)
1048                    throws com.liferay.portal.kernel.exception.SystemException;
1049    
1050            /**
1051            * Returns all the social requests where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63;.
1052            *
1053            * @param userId the user ID
1054            * @param classNameId the class name ID
1055            * @param classPK the class p k
1056            * @param type the type
1057            * @param status the status
1058            * @return the matching social requests
1059            * @throws SystemException if a system exception occurred
1060            */
1061            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
1062                    long userId, long classNameId, long classPK, int type, int status)
1063                    throws com.liferay.portal.kernel.exception.SystemException;
1064    
1065            /**
1066            * Returns a range of all the social requests where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63;.
1067            *
1068            * <p>
1069            * 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.
1070            * </p>
1071            *
1072            * @param userId the user ID
1073            * @param classNameId the class name ID
1074            * @param classPK the class p k
1075            * @param type the type
1076            * @param status the status
1077            * @param start the lower bound of the range of social requests
1078            * @param end the upper bound of the range of social requests (not inclusive)
1079            * @return the range of matching social requests
1080            * @throws SystemException if a system exception occurred
1081            */
1082            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
1083                    long userId, long classNameId, long classPK, int type, int status,
1084                    int start, int end)
1085                    throws com.liferay.portal.kernel.exception.SystemException;
1086    
1087            /**
1088            * Returns an ordered range of all the social requests where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63;.
1089            *
1090            * <p>
1091            * 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.
1092            * </p>
1093            *
1094            * @param userId the user ID
1095            * @param classNameId the class name ID
1096            * @param classPK the class p k
1097            * @param type the type
1098            * @param status the status
1099            * @param start the lower bound of the range of social requests
1100            * @param end the upper bound of the range of social requests (not inclusive)
1101            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1102            * @return the ordered range of matching social requests
1103            * @throws SystemException if a system exception occurred
1104            */
1105            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
1106                    long userId, long classNameId, long classPK, int type, int status,
1107                    int start, int end,
1108                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1109                    throws com.liferay.portal.kernel.exception.SystemException;
1110    
1111            /**
1112            * Returns the first social request in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63;.
1113            *
1114            * @param userId the user ID
1115            * @param classNameId the class name ID
1116            * @param classPK the class p k
1117            * @param type the type
1118            * @param status the status
1119            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1120            * @return the first matching social request
1121            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
1122            * @throws SystemException if a system exception occurred
1123            */
1124            public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_First(
1125                    long userId, long classNameId, long classPK, int type, int status,
1126                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1127                    throws com.liferay.portal.kernel.exception.SystemException,
1128                            com.liferay.portlet.social.NoSuchRequestException;
1129    
1130            /**
1131            * Returns the first social request in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63;.
1132            *
1133            * @param userId the user ID
1134            * @param classNameId the class name ID
1135            * @param classPK the class p k
1136            * @param type the type
1137            * @param status the status
1138            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1139            * @return the first matching social request, or <code>null</code> if a matching social request could not be found
1140            * @throws SystemException if a system exception occurred
1141            */
1142            public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_S_First(
1143                    long userId, long classNameId, long classPK, int type, int status,
1144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1145                    throws com.liferay.portal.kernel.exception.SystemException;
1146    
1147            /**
1148            * Returns the last social request in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63;.
1149            *
1150            * @param userId the user ID
1151            * @param classNameId the class name ID
1152            * @param classPK the class p k
1153            * @param type the type
1154            * @param status the status
1155            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1156            * @return the last matching social request
1157            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
1158            * @throws SystemException if a system exception occurred
1159            */
1160            public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_Last(
1161                    long userId, long classNameId, long classPK, int type, int status,
1162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1163                    throws com.liferay.portal.kernel.exception.SystemException,
1164                            com.liferay.portlet.social.NoSuchRequestException;
1165    
1166            /**
1167            * Returns the last social request in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63;.
1168            *
1169            * @param userId the user ID
1170            * @param classNameId the class name ID
1171            * @param classPK the class p k
1172            * @param type the type
1173            * @param status the status
1174            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1175            * @return the last matching social request, or <code>null</code> if a matching social request could not be found
1176            * @throws SystemException if a system exception occurred
1177            */
1178            public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_S_Last(
1179                    long userId, long classNameId, long classPK, int type, int status,
1180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1181                    throws com.liferay.portal.kernel.exception.SystemException;
1182    
1183            /**
1184            * Returns the social requests before and after the current social request in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63;.
1185            *
1186            * @param requestId the primary key of the current social request
1187            * @param userId the user ID
1188            * @param classNameId the class name ID
1189            * @param classPK the class p k
1190            * @param type the type
1191            * @param status the status
1192            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1193            * @return the previous, current, and next social request
1194            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
1195            * @throws SystemException if a system exception occurred
1196            */
1197            public com.liferay.portlet.social.model.SocialRequest[] findByU_C_C_T_S_PrevAndNext(
1198                    long requestId, long userId, long classNameId, long classPK, int type,
1199                    int status,
1200                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1201                    throws com.liferay.portal.kernel.exception.SystemException,
1202                            com.liferay.portlet.social.NoSuchRequestException;
1203    
1204            /**
1205            * Returns all the social requests where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63;.
1206            *
1207            * @param classNameId the class name ID
1208            * @param classPK the class p k
1209            * @param type the type
1210            * @param receiverUserId the receiver user ID
1211            * @param status the status
1212            * @return the matching social requests
1213            * @throws SystemException if a system exception occurred
1214            */
1215            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
1216                    long classNameId, long classPK, int type, long receiverUserId,
1217                    int status) throws com.liferay.portal.kernel.exception.SystemException;
1218    
1219            /**
1220            * Returns a range of all the social requests where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63;.
1221            *
1222            * <p>
1223            * 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.
1224            * </p>
1225            *
1226            * @param classNameId the class name ID
1227            * @param classPK the class p k
1228            * @param type the type
1229            * @param receiverUserId the receiver user ID
1230            * @param status the status
1231            * @param start the lower bound of the range of social requests
1232            * @param end the upper bound of the range of social requests (not inclusive)
1233            * @return the range of matching social requests
1234            * @throws SystemException if a system exception occurred
1235            */
1236            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
1237                    long classNameId, long classPK, int type, long receiverUserId,
1238                    int status, int start, int end)
1239                    throws com.liferay.portal.kernel.exception.SystemException;
1240    
1241            /**
1242            * Returns an ordered range of all the social requests where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63;.
1243            *
1244            * <p>
1245            * 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.
1246            * </p>
1247            *
1248            * @param classNameId the class name ID
1249            * @param classPK the class p k
1250            * @param type the type
1251            * @param receiverUserId the receiver user ID
1252            * @param status the status
1253            * @param start the lower bound of the range of social requests
1254            * @param end the upper bound of the range of social requests (not inclusive)
1255            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1256            * @return the ordered range of matching social requests
1257            * @throws SystemException if a system exception occurred
1258            */
1259            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
1260                    long classNameId, long classPK, int type, long receiverUserId,
1261                    int status, int start, int end,
1262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1263                    throws com.liferay.portal.kernel.exception.SystemException;
1264    
1265            /**
1266            * Returns the first social request in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63;.
1267            *
1268            * @param classNameId the class name ID
1269            * @param classPK the class p k
1270            * @param type the type
1271            * @param receiverUserId the receiver user ID
1272            * @param status the status
1273            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1274            * @return the first matching social request
1275            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
1276            * @throws SystemException if a system exception occurred
1277            */
1278            public com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_First(
1279                    long classNameId, long classPK, int type, long receiverUserId,
1280                    int status,
1281                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1282                    throws com.liferay.portal.kernel.exception.SystemException,
1283                            com.liferay.portlet.social.NoSuchRequestException;
1284    
1285            /**
1286            * Returns the first social request in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63;.
1287            *
1288            * @param classNameId the class name ID
1289            * @param classPK the class p k
1290            * @param type the type
1291            * @param receiverUserId the receiver user ID
1292            * @param status the status
1293            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1294            * @return the first matching social request, or <code>null</code> if a matching social request could not be found
1295            * @throws SystemException if a system exception occurred
1296            */
1297            public com.liferay.portlet.social.model.SocialRequest fetchByC_C_T_R_S_First(
1298                    long classNameId, long classPK, int type, long receiverUserId,
1299                    int status,
1300                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1301                    throws com.liferay.portal.kernel.exception.SystemException;
1302    
1303            /**
1304            * Returns the last social request in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63;.
1305            *
1306            * @param classNameId the class name ID
1307            * @param classPK the class p k
1308            * @param type the type
1309            * @param receiverUserId the receiver user ID
1310            * @param status the status
1311            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1312            * @return the last matching social request
1313            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
1314            * @throws SystemException if a system exception occurred
1315            */
1316            public com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_Last(
1317                    long classNameId, long classPK, int type, long receiverUserId,
1318                    int status,
1319                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1320                    throws com.liferay.portal.kernel.exception.SystemException,
1321                            com.liferay.portlet.social.NoSuchRequestException;
1322    
1323            /**
1324            * Returns the last social request in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63;.
1325            *
1326            * @param classNameId the class name ID
1327            * @param classPK the class p k
1328            * @param type the type
1329            * @param receiverUserId the receiver user ID
1330            * @param status the status
1331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1332            * @return the last matching social request, or <code>null</code> if a matching social request could not be found
1333            * @throws SystemException if a system exception occurred
1334            */
1335            public com.liferay.portlet.social.model.SocialRequest fetchByC_C_T_R_S_Last(
1336                    long classNameId, long classPK, int type, long receiverUserId,
1337                    int status,
1338                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1339                    throws com.liferay.portal.kernel.exception.SystemException;
1340    
1341            /**
1342            * Returns the social requests before and after the current social request in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63;.
1343            *
1344            * @param requestId the primary key of the current social request
1345            * @param classNameId the class name ID
1346            * @param classPK the class p k
1347            * @param type the type
1348            * @param receiverUserId the receiver user ID
1349            * @param status the status
1350            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1351            * @return the previous, current, and next social request
1352            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
1353            * @throws SystemException if a system exception occurred
1354            */
1355            public com.liferay.portlet.social.model.SocialRequest[] findByC_C_T_R_S_PrevAndNext(
1356                    long requestId, long classNameId, long classPK, int type,
1357                    long receiverUserId, int status,
1358                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1359                    throws com.liferay.portal.kernel.exception.SystemException,
1360                            com.liferay.portlet.social.NoSuchRequestException;
1361    
1362            /**
1363            * Returns all the social requests.
1364            *
1365            * @return the social requests
1366            * @throws SystemException if a system exception occurred
1367            */
1368            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll()
1369                    throws com.liferay.portal.kernel.exception.SystemException;
1370    
1371            /**
1372            * Returns a range of all the social requests.
1373            *
1374            * <p>
1375            * 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.
1376            * </p>
1377            *
1378            * @param start the lower bound of the range of social requests
1379            * @param end the upper bound of the range of social requests (not inclusive)
1380            * @return the range of social requests
1381            * @throws SystemException if a system exception occurred
1382            */
1383            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
1384                    int start, int end)
1385                    throws com.liferay.portal.kernel.exception.SystemException;
1386    
1387            /**
1388            * Returns an ordered range of all the social requests.
1389            *
1390            * <p>
1391            * 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.
1392            * </p>
1393            *
1394            * @param start the lower bound of the range of social requests
1395            * @param end the upper bound of the range of social requests (not inclusive)
1396            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1397            * @return the ordered range of social requests
1398            * @throws SystemException if a system exception occurred
1399            */
1400            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
1401                    int start, int end,
1402                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1403                    throws com.liferay.portal.kernel.exception.SystemException;
1404    
1405            /**
1406            * Removes all the social requests where uuid = &#63; from the database.
1407            *
1408            * @param uuid the uuid
1409            * @throws SystemException if a system exception occurred
1410            */
1411            public void removeByUuid(java.lang.String uuid)
1412                    throws com.liferay.portal.kernel.exception.SystemException;
1413    
1414            /**
1415            * Removes the social request where uuid = &#63; and groupId = &#63; from the database.
1416            *
1417            * @param uuid the uuid
1418            * @param groupId the group ID
1419            * @return the social request that was removed
1420            * @throws SystemException if a system exception occurred
1421            */
1422            public com.liferay.portlet.social.model.SocialRequest removeByUUID_G(
1423                    java.lang.String uuid, long groupId)
1424                    throws com.liferay.portal.kernel.exception.SystemException,
1425                            com.liferay.portlet.social.NoSuchRequestException;
1426    
1427            /**
1428            * Removes all the social requests where uuid = &#63; and companyId = &#63; from the database.
1429            *
1430            * @param uuid the uuid
1431            * @param companyId the company ID
1432            * @throws SystemException if a system exception occurred
1433            */
1434            public void removeByUuid_C(java.lang.String uuid, long companyId)
1435                    throws com.liferay.portal.kernel.exception.SystemException;
1436    
1437            /**
1438            * Removes all the social requests where companyId = &#63; from the database.
1439            *
1440            * @param companyId the company ID
1441            * @throws SystemException if a system exception occurred
1442            */
1443            public void removeByCompanyId(long companyId)
1444                    throws com.liferay.portal.kernel.exception.SystemException;
1445    
1446            /**
1447            * Removes all the social requests where userId = &#63; from the database.
1448            *
1449            * @param userId the user ID
1450            * @throws SystemException if a system exception occurred
1451            */
1452            public void removeByUserId(long userId)
1453                    throws com.liferay.portal.kernel.exception.SystemException;
1454    
1455            /**
1456            * Removes all the social requests where receiverUserId = &#63; from the database.
1457            *
1458            * @param receiverUserId the receiver user ID
1459            * @throws SystemException if a system exception occurred
1460            */
1461            public void removeByReceiverUserId(long receiverUserId)
1462                    throws com.liferay.portal.kernel.exception.SystemException;
1463    
1464            /**
1465            * Removes all the social requests where userId = &#63; and status = &#63; from the database.
1466            *
1467            * @param userId the user ID
1468            * @param status the status
1469            * @throws SystemException if a system exception occurred
1470            */
1471            public void removeByU_S(long userId, int status)
1472                    throws com.liferay.portal.kernel.exception.SystemException;
1473    
1474            /**
1475            * Removes all the social requests where receiverUserId = &#63; and status = &#63; from the database.
1476            *
1477            * @param receiverUserId the receiver user ID
1478            * @param status the status
1479            * @throws SystemException if a system exception occurred
1480            */
1481            public void removeByR_S(long receiverUserId, int status)
1482                    throws com.liferay.portal.kernel.exception.SystemException;
1483    
1484            /**
1485            * Removes the social request where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; from the database.
1486            *
1487            * @param userId the user ID
1488            * @param classNameId the class name ID
1489            * @param classPK the class p k
1490            * @param type the type
1491            * @param receiverUserId the receiver user ID
1492            * @return the social request that was removed
1493            * @throws SystemException if a system exception occurred
1494            */
1495            public com.liferay.portlet.social.model.SocialRequest removeByU_C_C_T_R(
1496                    long userId, long classNameId, long classPK, int type,
1497                    long receiverUserId)
1498                    throws com.liferay.portal.kernel.exception.SystemException,
1499                            com.liferay.portlet.social.NoSuchRequestException;
1500    
1501            /**
1502            * Removes all the social requests where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63; from the database.
1503            *
1504            * @param userId the user ID
1505            * @param classNameId the class name ID
1506            * @param classPK the class p k
1507            * @param type the type
1508            * @param status the status
1509            * @throws SystemException if a system exception occurred
1510            */
1511            public void removeByU_C_C_T_S(long userId, long classNameId, long classPK,
1512                    int type, int status)
1513                    throws com.liferay.portal.kernel.exception.SystemException;
1514    
1515            /**
1516            * Removes all the social requests where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63; from the database.
1517            *
1518            * @param classNameId the class name ID
1519            * @param classPK the class p k
1520            * @param type the type
1521            * @param receiverUserId the receiver user ID
1522            * @param status the status
1523            * @throws SystemException if a system exception occurred
1524            */
1525            public void removeByC_C_T_R_S(long classNameId, long classPK, int type,
1526                    long receiverUserId, int status)
1527                    throws com.liferay.portal.kernel.exception.SystemException;
1528    
1529            /**
1530            * Removes all the social requests from the database.
1531            *
1532            * @throws SystemException if a system exception occurred
1533            */
1534            public void removeAll()
1535                    throws com.liferay.portal.kernel.exception.SystemException;
1536    
1537            /**
1538            * Returns the number of social requests where uuid = &#63;.
1539            *
1540            * @param uuid the uuid
1541            * @return the number of matching social requests
1542            * @throws SystemException if a system exception occurred
1543            */
1544            public int countByUuid(java.lang.String uuid)
1545                    throws com.liferay.portal.kernel.exception.SystemException;
1546    
1547            /**
1548            * Returns the number of social requests where uuid = &#63; and groupId = &#63;.
1549            *
1550            * @param uuid the uuid
1551            * @param groupId the group ID
1552            * @return the number of matching social requests
1553            * @throws SystemException if a system exception occurred
1554            */
1555            public int countByUUID_G(java.lang.String uuid, long groupId)
1556                    throws com.liferay.portal.kernel.exception.SystemException;
1557    
1558            /**
1559            * Returns the number of social requests where uuid = &#63; and companyId = &#63;.
1560            *
1561            * @param uuid the uuid
1562            * @param companyId the company ID
1563            * @return the number of matching social requests
1564            * @throws SystemException if a system exception occurred
1565            */
1566            public int countByUuid_C(java.lang.String uuid, long companyId)
1567                    throws com.liferay.portal.kernel.exception.SystemException;
1568    
1569            /**
1570            * Returns the number of social requests where companyId = &#63;.
1571            *
1572            * @param companyId the company ID
1573            * @return the number of matching social requests
1574            * @throws SystemException if a system exception occurred
1575            */
1576            public int countByCompanyId(long companyId)
1577                    throws com.liferay.portal.kernel.exception.SystemException;
1578    
1579            /**
1580            * Returns the number of social requests where userId = &#63;.
1581            *
1582            * @param userId the user ID
1583            * @return the number of matching social requests
1584            * @throws SystemException if a system exception occurred
1585            */
1586            public int countByUserId(long userId)
1587                    throws com.liferay.portal.kernel.exception.SystemException;
1588    
1589            /**
1590            * Returns the number of social requests where receiverUserId = &#63;.
1591            *
1592            * @param receiverUserId the receiver user ID
1593            * @return the number of matching social requests
1594            * @throws SystemException if a system exception occurred
1595            */
1596            public int countByReceiverUserId(long receiverUserId)
1597                    throws com.liferay.portal.kernel.exception.SystemException;
1598    
1599            /**
1600            * Returns the number of social requests where userId = &#63; and status = &#63;.
1601            *
1602            * @param userId the user ID
1603            * @param status the status
1604            * @return the number of matching social requests
1605            * @throws SystemException if a system exception occurred
1606            */
1607            public int countByU_S(long userId, int status)
1608                    throws com.liferay.portal.kernel.exception.SystemException;
1609    
1610            /**
1611            * Returns the number of social requests where receiverUserId = &#63; and status = &#63;.
1612            *
1613            * @param receiverUserId the receiver user ID
1614            * @param status the status
1615            * @return the number of matching social requests
1616            * @throws SystemException if a system exception occurred
1617            */
1618            public int countByR_S(long receiverUserId, int status)
1619                    throws com.liferay.portal.kernel.exception.SystemException;
1620    
1621            /**
1622            * Returns the number of social requests where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1623            *
1624            * @param userId the user ID
1625            * @param classNameId the class name ID
1626            * @param classPK the class p k
1627            * @param type the type
1628            * @param receiverUserId the receiver user ID
1629            * @return the number of matching social requests
1630            * @throws SystemException if a system exception occurred
1631            */
1632            public int countByU_C_C_T_R(long userId, long classNameId, long classPK,
1633                    int type, long receiverUserId)
1634                    throws com.liferay.portal.kernel.exception.SystemException;
1635    
1636            /**
1637            * Returns the number of social requests where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63;.
1638            *
1639            * @param userId the user ID
1640            * @param classNameId the class name ID
1641            * @param classPK the class p k
1642            * @param type the type
1643            * @param status the status
1644            * @return the number of matching social requests
1645            * @throws SystemException if a system exception occurred
1646            */
1647            public int countByU_C_C_T_S(long userId, long classNameId, long classPK,
1648                    int type, int status)
1649                    throws com.liferay.portal.kernel.exception.SystemException;
1650    
1651            /**
1652            * Returns the number of social requests where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63;.
1653            *
1654            * @param classNameId the class name ID
1655            * @param classPK the class p k
1656            * @param type the type
1657            * @param receiverUserId the receiver user ID
1658            * @param status the status
1659            * @return the number of matching social requests
1660            * @throws SystemException if a system exception occurred
1661            */
1662            public int countByC_C_T_R_S(long classNameId, long classPK, int type,
1663                    long receiverUserId, int status)
1664                    throws com.liferay.portal.kernel.exception.SystemException;
1665    
1666            /**
1667            * Returns the number of social requests.
1668            *
1669            * @return the number of social requests
1670            * @throws SystemException if a system exception occurred
1671            */
1672            public int countAll()
1673                    throws com.liferay.portal.kernel.exception.SystemException;
1674    }