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