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