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