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