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