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