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