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