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