001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.social.model.SocialRequest;
020    
021    /**
022     * The persistence interface for the social request service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see SocialRequestPersistenceImpl
030     * @see SocialRequestUtil
031     * @generated
032     */
033    public interface SocialRequestPersistence extends BasePersistence<SocialRequest> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link SocialRequestUtil} to access the social request persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the social request in the entity cache if it is enabled.
042            *
043            * @param socialRequest the social request
044            */
045            public void cacheResult(
046                    com.liferay.portlet.social.model.SocialRequest socialRequest);
047    
048            /**
049            * Caches the social requests in the entity cache if it is enabled.
050            *
051            * @param socialRequests the social requests
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.social.model.SocialRequest> socialRequests);
055    
056            /**
057            * Creates a new social request with the primary key. Does not add the social request to the database.
058            *
059            * @param requestId the primary key for the new social request
060            * @return the new social request
061            */
062            public com.liferay.portlet.social.model.SocialRequest create(long requestId);
063    
064            /**
065            * Removes the social request with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param requestId the primary key of the social request
068            * @return the social request that was removed
069            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public com.liferay.portlet.social.model.SocialRequest remove(long requestId)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.social.NoSuchRequestException;
075    
076            public com.liferay.portlet.social.model.SocialRequest updateImpl(
077                    com.liferay.portlet.social.model.SocialRequest socialRequest,
078                    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            * <p>
156            * 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.
157            * </p>
158            *
159            * @param uuid the uuid
160            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
161            * @return the first matching social request
162            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
163            * @throws SystemException if a system exception occurred
164            */
165            public com.liferay.portlet.social.model.SocialRequest findByUuid_First(
166                    java.lang.String uuid,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException,
169                            com.liferay.portlet.social.NoSuchRequestException;
170    
171            /**
172            * Returns the last social request in the ordered set where uuid = &#63;.
173            *
174            * <p>
175            * 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.
176            * </p>
177            *
178            * @param uuid the uuid
179            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
180            * @return the last matching social request
181            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portlet.social.model.SocialRequest findByUuid_Last(
185                    java.lang.String uuid,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.social.NoSuchRequestException;
189    
190            /**
191            * Returns the social requests before and after the current social request in the ordered set where uuid = &#63;.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param requestId the primary key of the current social request
198            * @param uuid the uuid
199            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
200            * @return the previous, current, and next social request
201            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.social.model.SocialRequest[] findByUuid_PrevAndNext(
205                    long requestId, java.lang.String uuid,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException,
208                            com.liferay.portlet.social.NoSuchRequestException;
209    
210            /**
211            * 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.
212            *
213            * @param uuid the uuid
214            * @param groupId the group ID
215            * @return the matching social request
216            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.social.model.SocialRequest findByUUID_G(
220                    java.lang.String uuid, long groupId)
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 returns <code>null</code> if it could not be found. Uses the finder cache.
226            *
227            * @param uuid the uuid
228            * @param groupId the group ID
229            * @return the matching social request, or <code>null</code> if a matching social request could not be found
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
233                    java.lang.String uuid, long groupId)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * 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.
238            *
239            * @param uuid the uuid
240            * @param groupId the group ID
241            * @param retrieveFromCache whether to use the finder cache
242            * @return the matching social request, or <code>null</code> if a matching social request could not be found
243            * @throws SystemException if a system exception occurred
244            */
245            public com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
246                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            /**
250            * Returns all the social requests where companyId = &#63;.
251            *
252            * @param companyId the company ID
253            * @return the matching social requests
254            * @throws SystemException if a system exception occurred
255            */
256            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
257                    long companyId)
258                    throws com.liferay.portal.kernel.exception.SystemException;
259    
260            /**
261            * Returns a range of all the social requests where companyId = &#63;.
262            *
263            * <p>
264            * 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.
265            * </p>
266            *
267            * @param companyId the company ID
268            * @param start the lower bound of the range of social requests
269            * @param end the upper bound of the range of social requests (not inclusive)
270            * @return the range of matching social requests
271            * @throws SystemException if a system exception occurred
272            */
273            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
274                    long companyId, int start, int end)
275                    throws com.liferay.portal.kernel.exception.SystemException;
276    
277            /**
278            * Returns an ordered range of all the social requests where companyId = &#63;.
279            *
280            * <p>
281            * 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.
282            * </p>
283            *
284            * @param companyId the company ID
285            * @param start the lower bound of the range of social requests
286            * @param end the upper bound of the range of social requests (not inclusive)
287            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
288            * @return the ordered range of matching social requests
289            * @throws SystemException if a system exception occurred
290            */
291            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
292                    long companyId, int start, int end,
293                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294                    throws com.liferay.portal.kernel.exception.SystemException;
295    
296            /**
297            * Returns the first social request in the ordered set where companyId = &#63;.
298            *
299            * <p>
300            * 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.
301            * </p>
302            *
303            * @param companyId the company ID
304            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
305            * @return the first matching social request
306            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
307            * @throws SystemException if a system exception occurred
308            */
309            public com.liferay.portlet.social.model.SocialRequest findByCompanyId_First(
310                    long companyId,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.kernel.exception.SystemException,
313                            com.liferay.portlet.social.NoSuchRequestException;
314    
315            /**
316            * Returns the last social request in the ordered set where companyId = &#63;.
317            *
318            * <p>
319            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
320            * </p>
321            *
322            * @param companyId the company ID
323            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
324            * @return the last matching social request
325            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
326            * @throws SystemException if a system exception occurred
327            */
328            public com.liferay.portlet.social.model.SocialRequest findByCompanyId_Last(
329                    long companyId,
330                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
331                    throws com.liferay.portal.kernel.exception.SystemException,
332                            com.liferay.portlet.social.NoSuchRequestException;
333    
334            /**
335            * Returns the social requests before and after the current social request in the ordered set where companyId = &#63;.
336            *
337            * <p>
338            * 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.
339            * </p>
340            *
341            * @param requestId the primary key of the current social request
342            * @param companyId the company ID
343            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
344            * @return the previous, current, and next social request
345            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
346            * @throws SystemException if a system exception occurred
347            */
348            public com.liferay.portlet.social.model.SocialRequest[] findByCompanyId_PrevAndNext(
349                    long requestId, long companyId,
350                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
351                    throws com.liferay.portal.kernel.exception.SystemException,
352                            com.liferay.portlet.social.NoSuchRequestException;
353    
354            /**
355            * Returns all the social requests where userId = &#63;.
356            *
357            * @param userId the user ID
358            * @return the matching social requests
359            * @throws SystemException if a system exception occurred
360            */
361            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
362                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * Returns a range of all the social requests where userId = &#63;.
366            *
367            * <p>
368            * 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.
369            * </p>
370            *
371            * @param userId the user ID
372            * @param start the lower bound of the range of social requests
373            * @param end the upper bound of the range of social requests (not inclusive)
374            * @return the range of matching social requests
375            * @throws SystemException if a system exception occurred
376            */
377            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
378                    long userId, int start, int end)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Returns an ordered range of all the social requests where userId = &#63;.
383            *
384            * <p>
385            * 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.
386            * </p>
387            *
388            * @param userId the user ID
389            * @param start the lower bound of the range of social requests
390            * @param end the upper bound of the range of social requests (not inclusive)
391            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
392            * @return the ordered range of matching social requests
393            * @throws SystemException if a system exception occurred
394            */
395            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
396                    long userId, int start, int end,
397                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
398                    throws com.liferay.portal.kernel.exception.SystemException;
399    
400            /**
401            * Returns the first social request in the ordered set where userId = &#63;.
402            *
403            * <p>
404            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
405            * </p>
406            *
407            * @param userId the user ID
408            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
409            * @return the first matching social request
410            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
411            * @throws SystemException if a system exception occurred
412            */
413            public com.liferay.portlet.social.model.SocialRequest findByUserId_First(
414                    long userId,
415                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
416                    throws com.liferay.portal.kernel.exception.SystemException,
417                            com.liferay.portlet.social.NoSuchRequestException;
418    
419            /**
420            * Returns the last social request in the ordered set where userId = &#63;.
421            *
422            * <p>
423            * 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.
424            * </p>
425            *
426            * @param userId the user ID
427            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
428            * @return the last matching social request
429            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
430            * @throws SystemException if a system exception occurred
431            */
432            public com.liferay.portlet.social.model.SocialRequest findByUserId_Last(
433                    long userId,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.kernel.exception.SystemException,
436                            com.liferay.portlet.social.NoSuchRequestException;
437    
438            /**
439            * Returns the social requests before and after the current social request in the ordered set where userId = &#63;.
440            *
441            * <p>
442            * 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.
443            * </p>
444            *
445            * @param requestId the primary key of the current social request
446            * @param userId the user ID
447            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
448            * @return the previous, current, and next social request
449            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
450            * @throws SystemException if a system exception occurred
451            */
452            public com.liferay.portlet.social.model.SocialRequest[] findByUserId_PrevAndNext(
453                    long requestId, long userId,
454                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
455                    throws com.liferay.portal.kernel.exception.SystemException,
456                            com.liferay.portlet.social.NoSuchRequestException;
457    
458            /**
459            * Returns all the social requests where receiverUserId = &#63;.
460            *
461            * @param receiverUserId the receiver user ID
462            * @return the matching social requests
463            * @throws SystemException if a system exception occurred
464            */
465            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
466                    long receiverUserId)
467                    throws com.liferay.portal.kernel.exception.SystemException;
468    
469            /**
470            * Returns a range of all the social requests where receiverUserId = &#63;.
471            *
472            * <p>
473            * 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.
474            * </p>
475            *
476            * @param receiverUserId the receiver user ID
477            * @param start the lower bound of the range of social requests
478            * @param end the upper bound of the range of social requests (not inclusive)
479            * @return the range of matching social requests
480            * @throws SystemException if a system exception occurred
481            */
482            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
483                    long receiverUserId, int start, int end)
484                    throws com.liferay.portal.kernel.exception.SystemException;
485    
486            /**
487            * Returns an ordered range of all the social requests where receiverUserId = &#63;.
488            *
489            * <p>
490            * 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.
491            * </p>
492            *
493            * @param receiverUserId the receiver user ID
494            * @param start the lower bound of the range of social requests
495            * @param end the upper bound of the range of social requests (not inclusive)
496            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
497            * @return the ordered range of matching social requests
498            * @throws SystemException if a system exception occurred
499            */
500            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
501                    long receiverUserId, int start, int end,
502                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
503                    throws com.liferay.portal.kernel.exception.SystemException;
504    
505            /**
506            * Returns the first social request in the ordered set where receiverUserId = &#63;.
507            *
508            * <p>
509            * 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.
510            * </p>
511            *
512            * @param receiverUserId the receiver user ID
513            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
514            * @return the first matching social request
515            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
516            * @throws SystemException if a system exception occurred
517            */
518            public com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_First(
519                    long receiverUserId,
520                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
521                    throws com.liferay.portal.kernel.exception.SystemException,
522                            com.liferay.portlet.social.NoSuchRequestException;
523    
524            /**
525            * Returns the last social request in the ordered set where receiverUserId = &#63;.
526            *
527            * <p>
528            * 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.
529            * </p>
530            *
531            * @param receiverUserId the receiver user ID
532            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
533            * @return the last matching social request
534            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
535            * @throws SystemException if a system exception occurred
536            */
537            public com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_Last(
538                    long receiverUserId,
539                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
540                    throws com.liferay.portal.kernel.exception.SystemException,
541                            com.liferay.portlet.social.NoSuchRequestException;
542    
543            /**
544            * Returns the social requests before and after the current social request in the ordered set where receiverUserId = &#63;.
545            *
546            * <p>
547            * 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.
548            * </p>
549            *
550            * @param requestId the primary key of the current social request
551            * @param receiverUserId the receiver user ID
552            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
553            * @return the previous, current, and next social request
554            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
555            * @throws SystemException if a system exception occurred
556            */
557            public com.liferay.portlet.social.model.SocialRequest[] findByReceiverUserId_PrevAndNext(
558                    long requestId, long receiverUserId,
559                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
560                    throws com.liferay.portal.kernel.exception.SystemException,
561                            com.liferay.portlet.social.NoSuchRequestException;
562    
563            /**
564            * Returns all the social requests where userId = &#63; and status = &#63;.
565            *
566            * @param userId the user ID
567            * @param status the status
568            * @return the matching social requests
569            * @throws SystemException if a system exception occurred
570            */
571            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
572                    long userId, int status)
573                    throws com.liferay.portal.kernel.exception.SystemException;
574    
575            /**
576            * Returns a range of all the social requests where userId = &#63; and status = &#63;.
577            *
578            * <p>
579            * 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.
580            * </p>
581            *
582            * @param userId the user ID
583            * @param status the status
584            * @param start the lower bound of the range of social requests
585            * @param end the upper bound of the range of social requests (not inclusive)
586            * @return the range of matching social requests
587            * @throws SystemException if a system exception occurred
588            */
589            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
590                    long userId, int status, int start, int end)
591                    throws com.liferay.portal.kernel.exception.SystemException;
592    
593            /**
594            * Returns an ordered range of all the social requests where userId = &#63; and status = &#63;.
595            *
596            * <p>
597            * 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.
598            * </p>
599            *
600            * @param userId the user ID
601            * @param status the status
602            * @param start the lower bound of the range of social requests
603            * @param end the upper bound of the range of social requests (not inclusive)
604            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
605            * @return the ordered range of matching social requests
606            * @throws SystemException if a system exception occurred
607            */
608            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
609                    long userId, int status, int start, int end,
610                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
611                    throws com.liferay.portal.kernel.exception.SystemException;
612    
613            /**
614            * Returns the first social request in the ordered set where userId = &#63; and status = &#63;.
615            *
616            * <p>
617            * 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.
618            * </p>
619            *
620            * @param userId the user ID
621            * @param status the status
622            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
623            * @return the first matching social request
624            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
625            * @throws SystemException if a system exception occurred
626            */
627            public com.liferay.portlet.social.model.SocialRequest findByU_S_First(
628                    long userId, int status,
629                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
630                    throws com.liferay.portal.kernel.exception.SystemException,
631                            com.liferay.portlet.social.NoSuchRequestException;
632    
633            /**
634            * Returns the last social request in the ordered set where userId = &#63; and status = &#63;.
635            *
636            * <p>
637            * 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.
638            * </p>
639            *
640            * @param userId the user ID
641            * @param status the status
642            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
643            * @return the last matching social request
644            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
645            * @throws SystemException if a system exception occurred
646            */
647            public com.liferay.portlet.social.model.SocialRequest findByU_S_Last(
648                    long userId, int status,
649                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
650                    throws com.liferay.portal.kernel.exception.SystemException,
651                            com.liferay.portlet.social.NoSuchRequestException;
652    
653            /**
654            * Returns the social requests before and after the current social request in the ordered set where userId = &#63; and status = &#63;.
655            *
656            * <p>
657            * 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.
658            * </p>
659            *
660            * @param requestId the primary key of the current social request
661            * @param userId the user ID
662            * @param status the status
663            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
664            * @return the previous, current, and next social request
665            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
666            * @throws SystemException if a system exception occurred
667            */
668            public com.liferay.portlet.social.model.SocialRequest[] findByU_S_PrevAndNext(
669                    long requestId, long userId, int status,
670                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
671                    throws com.liferay.portal.kernel.exception.SystemException,
672                            com.liferay.portlet.social.NoSuchRequestException;
673    
674            /**
675            * Returns all the social requests where receiverUserId = &#63; and status = &#63;.
676            *
677            * @param receiverUserId the receiver user ID
678            * @param status the status
679            * @return the matching social requests
680            * @throws SystemException if a system exception occurred
681            */
682            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
683                    long receiverUserId, int status)
684                    throws com.liferay.portal.kernel.exception.SystemException;
685    
686            /**
687            * Returns a range of all the social requests where receiverUserId = &#63; and status = &#63;.
688            *
689            * <p>
690            * 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.
691            * </p>
692            *
693            * @param receiverUserId the receiver user ID
694            * @param status the status
695            * @param start the lower bound of the range of social requests
696            * @param end the upper bound of the range of social requests (not inclusive)
697            * @return the range of matching social requests
698            * @throws SystemException if a system exception occurred
699            */
700            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
701                    long receiverUserId, int status, int start, int end)
702                    throws com.liferay.portal.kernel.exception.SystemException;
703    
704            /**
705            * Returns an ordered range of all the social requests where receiverUserId = &#63; and status = &#63;.
706            *
707            * <p>
708            * 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.
709            * </p>
710            *
711            * @param receiverUserId the receiver user ID
712            * @param status the status
713            * @param start the lower bound of the range of social requests
714            * @param end the upper bound of the range of social requests (not inclusive)
715            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
716            * @return the ordered range of matching social requests
717            * @throws SystemException if a system exception occurred
718            */
719            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
720                    long receiverUserId, int status, int start, int end,
721                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
722                    throws com.liferay.portal.kernel.exception.SystemException;
723    
724            /**
725            * Returns the first social request in the ordered set where receiverUserId = &#63; and status = &#63;.
726            *
727            * <p>
728            * 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.
729            * </p>
730            *
731            * @param receiverUserId the receiver user ID
732            * @param status the status
733            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
734            * @return the first matching social request
735            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
736            * @throws SystemException if a system exception occurred
737            */
738            public com.liferay.portlet.social.model.SocialRequest findByR_S_First(
739                    long receiverUserId, int status,
740                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
741                    throws com.liferay.portal.kernel.exception.SystemException,
742                            com.liferay.portlet.social.NoSuchRequestException;
743    
744            /**
745            * Returns the last social request in the ordered set where receiverUserId = &#63; and status = &#63;.
746            *
747            * <p>
748            * 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.
749            * </p>
750            *
751            * @param receiverUserId the receiver user ID
752            * @param status the status
753            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
754            * @return the last matching social request
755            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
756            * @throws SystemException if a system exception occurred
757            */
758            public com.liferay.portlet.social.model.SocialRequest findByR_S_Last(
759                    long receiverUserId, int status,
760                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
761                    throws com.liferay.portal.kernel.exception.SystemException,
762                            com.liferay.portlet.social.NoSuchRequestException;
763    
764            /**
765            * Returns the social requests before and after the current social request in the ordered set where receiverUserId = &#63; and status = &#63;.
766            *
767            * <p>
768            * 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.
769            * </p>
770            *
771            * @param requestId the primary key of the current social request
772            * @param receiverUserId the receiver user ID
773            * @param status the status
774            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
775            * @return the previous, current, and next social request
776            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
777            * @throws SystemException if a system exception occurred
778            */
779            public com.liferay.portlet.social.model.SocialRequest[] findByR_S_PrevAndNext(
780                    long requestId, long receiverUserId, int status,
781                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
782                    throws com.liferay.portal.kernel.exception.SystemException,
783                            com.liferay.portlet.social.NoSuchRequestException;
784    
785            /**
786            * 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.
787            *
788            * @param userId the user ID
789            * @param classNameId the class name ID
790            * @param classPK the class p k
791            * @param type the type
792            * @param receiverUserId the receiver user ID
793            * @return the matching social request
794            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
795            * @throws SystemException if a system exception occurred
796            */
797            public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_R(
798                    long userId, long classNameId, long classPK, int type,
799                    long receiverUserId)
800                    throws com.liferay.portal.kernel.exception.SystemException,
801                            com.liferay.portlet.social.NoSuchRequestException;
802    
803            /**
804            * 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.
805            *
806            * @param userId the user ID
807            * @param classNameId the class name ID
808            * @param classPK the class p k
809            * @param type the type
810            * @param receiverUserId the receiver user ID
811            * @return the matching social request, or <code>null</code> if a matching social request could not be found
812            * @throws SystemException if a system exception occurred
813            */
814            public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
815                    long userId, long classNameId, long classPK, int type,
816                    long receiverUserId)
817                    throws com.liferay.portal.kernel.exception.SystemException;
818    
819            /**
820            * 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.
821            *
822            * @param userId the user ID
823            * @param classNameId the class name ID
824            * @param classPK the class p k
825            * @param type the type
826            * @param receiverUserId the receiver user ID
827            * @param retrieveFromCache whether to use the finder cache
828            * @return the matching social request, or <code>null</code> if a matching social request could not be found
829            * @throws SystemException if a system exception occurred
830            */
831            public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
832                    long userId, long classNameId, long classPK, int type,
833                    long receiverUserId, boolean retrieveFromCache)
834                    throws com.liferay.portal.kernel.exception.SystemException;
835    
836            /**
837            * Returns all the social requests where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63;.
838            *
839            * @param userId the user ID
840            * @param classNameId the class name ID
841            * @param classPK the class p k
842            * @param type the type
843            * @param status the status
844            * @return the matching social requests
845            * @throws SystemException if a system exception occurred
846            */
847            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
848                    long userId, long classNameId, long classPK, int type, int status)
849                    throws com.liferay.portal.kernel.exception.SystemException;
850    
851            /**
852            * Returns a range of all the social requests where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63;.
853            *
854            * <p>
855            * 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.
856            * </p>
857            *
858            * @param userId the user ID
859            * @param classNameId the class name ID
860            * @param classPK the class p k
861            * @param type the type
862            * @param status the status
863            * @param start the lower bound of the range of social requests
864            * @param end the upper bound of the range of social requests (not inclusive)
865            * @return the range of matching social requests
866            * @throws SystemException if a system exception occurred
867            */
868            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
869                    long userId, long classNameId, long classPK, int type, int status,
870                    int start, int end)
871                    throws com.liferay.portal.kernel.exception.SystemException;
872    
873            /**
874            * Returns an ordered range of all the social requests where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63;.
875            *
876            * <p>
877            * 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.
878            * </p>
879            *
880            * @param userId the user ID
881            * @param classNameId the class name ID
882            * @param classPK the class p k
883            * @param type the type
884            * @param status the status
885            * @param start the lower bound of the range of social requests
886            * @param end the upper bound of the range of social requests (not inclusive)
887            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
888            * @return the ordered range of matching social requests
889            * @throws SystemException if a system exception occurred
890            */
891            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
892                    long userId, long classNameId, long classPK, int type, int status,
893                    int start, int end,
894                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
895                    throws com.liferay.portal.kernel.exception.SystemException;
896    
897            /**
898            * Returns the first social request in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63;.
899            *
900            * <p>
901            * 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.
902            * </p>
903            *
904            * @param userId the user ID
905            * @param classNameId the class name ID
906            * @param classPK the class p k
907            * @param type the type
908            * @param status the status
909            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
910            * @return the first matching social request
911            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
912            * @throws SystemException if a system exception occurred
913            */
914            public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_First(
915                    long userId, long classNameId, long classPK, int type, int status,
916                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
917                    throws com.liferay.portal.kernel.exception.SystemException,
918                            com.liferay.portlet.social.NoSuchRequestException;
919    
920            /**
921            * Returns the last social request in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63;.
922            *
923            * <p>
924            * 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.
925            * </p>
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            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
933            * @return the last matching social request
934            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
935            * @throws SystemException if a system exception occurred
936            */
937            public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_Last(
938                    long userId, long classNameId, long classPK, int type, int status,
939                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
940                    throws com.liferay.portal.kernel.exception.SystemException,
941                            com.liferay.portlet.social.NoSuchRequestException;
942    
943            /**
944            * 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;.
945            *
946            * <p>
947            * 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.
948            * </p>
949            *
950            * @param requestId the primary key of the current social request
951            * @param userId the user ID
952            * @param classNameId the class name ID
953            * @param classPK the class p k
954            * @param type the type
955            * @param status the status
956            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
957            * @return the previous, current, and next social request
958            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
959            * @throws SystemException if a system exception occurred
960            */
961            public com.liferay.portlet.social.model.SocialRequest[] findByU_C_C_T_S_PrevAndNext(
962                    long requestId, long userId, long classNameId, long classPK, int type,
963                    int status,
964                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
965                    throws com.liferay.portal.kernel.exception.SystemException,
966                            com.liferay.portlet.social.NoSuchRequestException;
967    
968            /**
969            * Returns all the social requests where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63;.
970            *
971            * @param classNameId the class name ID
972            * @param classPK the class p k
973            * @param type the type
974            * @param receiverUserId the receiver user ID
975            * @param status the status
976            * @return the matching social requests
977            * @throws SystemException if a system exception occurred
978            */
979            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
980                    long classNameId, long classPK, int type, long receiverUserId,
981                    int status) throws com.liferay.portal.kernel.exception.SystemException;
982    
983            /**
984            * Returns a range of all the social requests where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63;.
985            *
986            * <p>
987            * 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.
988            * </p>
989            *
990            * @param classNameId the class name ID
991            * @param classPK the class p k
992            * @param type the type
993            * @param receiverUserId the receiver user ID
994            * @param status the status
995            * @param start the lower bound of the range of social requests
996            * @param end the upper bound of the range of social requests (not inclusive)
997            * @return the range of matching social requests
998            * @throws SystemException if a system exception occurred
999            */
1000            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
1001                    long classNameId, long classPK, int type, long receiverUserId,
1002                    int status, int start, int end)
1003                    throws com.liferay.portal.kernel.exception.SystemException;
1004    
1005            /**
1006            * Returns an ordered range of all the social requests where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63;.
1007            *
1008            * <p>
1009            * 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.
1010            * </p>
1011            *
1012            * @param classNameId the class name ID
1013            * @param classPK the class p k
1014            * @param type the type
1015            * @param receiverUserId the receiver user ID
1016            * @param status the status
1017            * @param start the lower bound of the range of social requests
1018            * @param end the upper bound of the range of social requests (not inclusive)
1019            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1020            * @return the ordered range of matching social requests
1021            * @throws SystemException if a system exception occurred
1022            */
1023            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
1024                    long classNameId, long classPK, int type, long receiverUserId,
1025                    int status, int start, int end,
1026                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1027                    throws com.liferay.portal.kernel.exception.SystemException;
1028    
1029            /**
1030            * Returns the first social request in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63;.
1031            *
1032            * <p>
1033            * 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.
1034            * </p>
1035            *
1036            * @param classNameId the class name ID
1037            * @param classPK the class p k
1038            * @param type the type
1039            * @param receiverUserId the receiver user ID
1040            * @param status the status
1041            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1042            * @return the first matching social request
1043            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
1044            * @throws SystemException if a system exception occurred
1045            */
1046            public com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_First(
1047                    long classNameId, long classPK, int type, long receiverUserId,
1048                    int status,
1049                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1050                    throws com.liferay.portal.kernel.exception.SystemException,
1051                            com.liferay.portlet.social.NoSuchRequestException;
1052    
1053            /**
1054            * Returns the last social request in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63;.
1055            *
1056            * <p>
1057            * 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.
1058            * </p>
1059            *
1060            * @param classNameId the class name ID
1061            * @param classPK the class p k
1062            * @param type the type
1063            * @param receiverUserId the receiver user ID
1064            * @param status the status
1065            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1066            * @return the last matching social request
1067            * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found
1068            * @throws SystemException if a system exception occurred
1069            */
1070            public com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_Last(
1071                    long classNameId, long classPK, int type, long receiverUserId,
1072                    int status,
1073                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1074                    throws com.liferay.portal.kernel.exception.SystemException,
1075                            com.liferay.portlet.social.NoSuchRequestException;
1076    
1077            /**
1078            * 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;.
1079            *
1080            * <p>
1081            * 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.
1082            * </p>
1083            *
1084            * @param requestId the primary key of the current social request
1085            * @param classNameId the class name ID
1086            * @param classPK the class p k
1087            * @param type the type
1088            * @param receiverUserId the receiver user ID
1089            * @param status the status
1090            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1091            * @return the previous, current, and next social request
1092            * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found
1093            * @throws SystemException if a system exception occurred
1094            */
1095            public com.liferay.portlet.social.model.SocialRequest[] findByC_C_T_R_S_PrevAndNext(
1096                    long requestId, long classNameId, long classPK, int type,
1097                    long receiverUserId, int status,
1098                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1099                    throws com.liferay.portal.kernel.exception.SystemException,
1100                            com.liferay.portlet.social.NoSuchRequestException;
1101    
1102            /**
1103            * Returns all the social requests.
1104            *
1105            * @return the social requests
1106            * @throws SystemException if a system exception occurred
1107            */
1108            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll()
1109                    throws com.liferay.portal.kernel.exception.SystemException;
1110    
1111            /**
1112            * Returns a range of all the social requests.
1113            *
1114            * <p>
1115            * 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.
1116            * </p>
1117            *
1118            * @param start the lower bound of the range of social requests
1119            * @param end the upper bound of the range of social requests (not inclusive)
1120            * @return the range of social requests
1121            * @throws SystemException if a system exception occurred
1122            */
1123            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
1124                    int start, int end)
1125                    throws com.liferay.portal.kernel.exception.SystemException;
1126    
1127            /**
1128            * Returns an ordered range of all the social requests.
1129            *
1130            * <p>
1131            * 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.
1132            * </p>
1133            *
1134            * @param start the lower bound of the range of social requests
1135            * @param end the upper bound of the range of social requests (not inclusive)
1136            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1137            * @return the ordered range of social requests
1138            * @throws SystemException if a system exception occurred
1139            */
1140            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
1141                    int start, int end,
1142                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1143                    throws com.liferay.portal.kernel.exception.SystemException;
1144    
1145            /**
1146            * Removes all the social requests where uuid = &#63; from the database.
1147            *
1148            * @param uuid the uuid
1149            * @throws SystemException if a system exception occurred
1150            */
1151            public void removeByUuid(java.lang.String uuid)
1152                    throws com.liferay.portal.kernel.exception.SystemException;
1153    
1154            /**
1155            * Removes the social request where uuid = &#63; and groupId = &#63; from the database.
1156            *
1157            * @param uuid the uuid
1158            * @param groupId the group ID
1159            * @throws SystemException if a system exception occurred
1160            */
1161            public void removeByUUID_G(java.lang.String uuid, long groupId)
1162                    throws com.liferay.portal.kernel.exception.SystemException,
1163                            com.liferay.portlet.social.NoSuchRequestException;
1164    
1165            /**
1166            * Removes all the social requests where companyId = &#63; from the database.
1167            *
1168            * @param companyId the company ID
1169            * @throws SystemException if a system exception occurred
1170            */
1171            public void removeByCompanyId(long companyId)
1172                    throws com.liferay.portal.kernel.exception.SystemException;
1173    
1174            /**
1175            * Removes all the social requests where userId = &#63; from the database.
1176            *
1177            * @param userId the user ID
1178            * @throws SystemException if a system exception occurred
1179            */
1180            public void removeByUserId(long userId)
1181                    throws com.liferay.portal.kernel.exception.SystemException;
1182    
1183            /**
1184            * Removes all the social requests where receiverUserId = &#63; from the database.
1185            *
1186            * @param receiverUserId the receiver user ID
1187            * @throws SystemException if a system exception occurred
1188            */
1189            public void removeByReceiverUserId(long receiverUserId)
1190                    throws com.liferay.portal.kernel.exception.SystemException;
1191    
1192            /**
1193            * Removes all the social requests where userId = &#63; and status = &#63; from the database.
1194            *
1195            * @param userId the user ID
1196            * @param status the status
1197            * @throws SystemException if a system exception occurred
1198            */
1199            public void removeByU_S(long userId, int status)
1200                    throws com.liferay.portal.kernel.exception.SystemException;
1201    
1202            /**
1203            * Removes all the social requests where receiverUserId = &#63; and status = &#63; from the database.
1204            *
1205            * @param receiverUserId the receiver user ID
1206            * @param status the status
1207            * @throws SystemException if a system exception occurred
1208            */
1209            public void removeByR_S(long receiverUserId, int status)
1210                    throws com.liferay.portal.kernel.exception.SystemException;
1211    
1212            /**
1213            * Removes the social request where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; from the database.
1214            *
1215            * @param userId the user ID
1216            * @param classNameId the class name ID
1217            * @param classPK the class p k
1218            * @param type the type
1219            * @param receiverUserId the receiver user ID
1220            * @throws SystemException if a system exception occurred
1221            */
1222            public void removeByU_C_C_T_R(long userId, long classNameId, long classPK,
1223                    int type, long receiverUserId)
1224                    throws com.liferay.portal.kernel.exception.SystemException,
1225                            com.liferay.portlet.social.NoSuchRequestException;
1226    
1227            /**
1228            * Removes all the social requests where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63; from the database.
1229            *
1230            * @param userId the user ID
1231            * @param classNameId the class name ID
1232            * @param classPK the class p k
1233            * @param type the type
1234            * @param status the status
1235            * @throws SystemException if a system exception occurred
1236            */
1237            public void removeByU_C_C_T_S(long userId, long classNameId, long classPK,
1238                    int type, int status)
1239                    throws com.liferay.portal.kernel.exception.SystemException;
1240    
1241            /**
1242            * Removes all the social requests where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63; from the database.
1243            *
1244            * @param classNameId the class name ID
1245            * @param classPK the class p k
1246            * @param type the type
1247            * @param receiverUserId the receiver user ID
1248            * @param status the status
1249            * @throws SystemException if a system exception occurred
1250            */
1251            public void removeByC_C_T_R_S(long classNameId, long classPK, int type,
1252                    long receiverUserId, int status)
1253                    throws com.liferay.portal.kernel.exception.SystemException;
1254    
1255            /**
1256            * Removes all the social requests from the database.
1257            *
1258            * @throws SystemException if a system exception occurred
1259            */
1260            public void removeAll()
1261                    throws com.liferay.portal.kernel.exception.SystemException;
1262    
1263            /**
1264            * Returns the number of social requests where uuid = &#63;.
1265            *
1266            * @param uuid the uuid
1267            * @return the number of matching social requests
1268            * @throws SystemException if a system exception occurred
1269            */
1270            public int countByUuid(java.lang.String uuid)
1271                    throws com.liferay.portal.kernel.exception.SystemException;
1272    
1273            /**
1274            * Returns the number of social requests where uuid = &#63; and groupId = &#63;.
1275            *
1276            * @param uuid the uuid
1277            * @param groupId the group ID
1278            * @return the number of matching social requests
1279            * @throws SystemException if a system exception occurred
1280            */
1281            public int countByUUID_G(java.lang.String uuid, long groupId)
1282                    throws com.liferay.portal.kernel.exception.SystemException;
1283    
1284            /**
1285            * Returns the number of social requests where companyId = &#63;.
1286            *
1287            * @param companyId the company ID
1288            * @return the number of matching social requests
1289            * @throws SystemException if a system exception occurred
1290            */
1291            public int countByCompanyId(long companyId)
1292                    throws com.liferay.portal.kernel.exception.SystemException;
1293    
1294            /**
1295            * Returns the number of social requests where userId = &#63;.
1296            *
1297            * @param userId the user ID
1298            * @return the number of matching social requests
1299            * @throws SystemException if a system exception occurred
1300            */
1301            public int countByUserId(long userId)
1302                    throws com.liferay.portal.kernel.exception.SystemException;
1303    
1304            /**
1305            * Returns the number of social requests where receiverUserId = &#63;.
1306            *
1307            * @param receiverUserId the receiver user ID
1308            * @return the number of matching social requests
1309            * @throws SystemException if a system exception occurred
1310            */
1311            public int countByReceiverUserId(long receiverUserId)
1312                    throws com.liferay.portal.kernel.exception.SystemException;
1313    
1314            /**
1315            * Returns the number of social requests where userId = &#63; and status = &#63;.
1316            *
1317            * @param userId the user ID
1318            * @param status the status
1319            * @return the number of matching social requests
1320            * @throws SystemException if a system exception occurred
1321            */
1322            public int countByU_S(long userId, int status)
1323                    throws com.liferay.portal.kernel.exception.SystemException;
1324    
1325            /**
1326            * Returns the number of social requests where receiverUserId = &#63; and status = &#63;.
1327            *
1328            * @param receiverUserId the receiver user ID
1329            * @param status the status
1330            * @return the number of matching social requests
1331            * @throws SystemException if a system exception occurred
1332            */
1333            public int countByR_S(long receiverUserId, int status)
1334                    throws com.liferay.portal.kernel.exception.SystemException;
1335    
1336            /**
1337            * Returns the number of social requests where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1338            *
1339            * @param userId the user ID
1340            * @param classNameId the class name ID
1341            * @param classPK the class p k
1342            * @param type the type
1343            * @param receiverUserId the receiver user ID
1344            * @return the number of matching social requests
1345            * @throws SystemException if a system exception occurred
1346            */
1347            public int countByU_C_C_T_R(long userId, long classNameId, long classPK,
1348                    int type, long receiverUserId)
1349                    throws com.liferay.portal.kernel.exception.SystemException;
1350    
1351            /**
1352            * Returns the number of social requests where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#63;.
1353            *
1354            * @param userId the user ID
1355            * @param classNameId the class name ID
1356            * @param classPK the class p k
1357            * @param type the type
1358            * @param status the status
1359            * @return the number of matching social requests
1360            * @throws SystemException if a system exception occurred
1361            */
1362            public int countByU_C_C_T_S(long userId, long classNameId, long classPK,
1363                    int type, int status)
1364                    throws com.liferay.portal.kernel.exception.SystemException;
1365    
1366            /**
1367            * Returns the number of social requests where classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; and status = &#63;.
1368            *
1369            * @param classNameId the class name ID
1370            * @param classPK the class p k
1371            * @param type the type
1372            * @param receiverUserId the receiver user ID
1373            * @param status the status
1374            * @return the number of matching social requests
1375            * @throws SystemException if a system exception occurred
1376            */
1377            public int countByC_C_T_R_S(long classNameId, long classPK, int type,
1378                    long receiverUserId, int status)
1379                    throws com.liferay.portal.kernel.exception.SystemException;
1380    
1381            /**
1382            * Returns the number of social requests.
1383            *
1384            * @return the number of social requests
1385            * @throws SystemException if a system exception occurred
1386            */
1387            public int countAll()
1388                    throws com.liferay.portal.kernel.exception.SystemException;
1389    }