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