1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.social.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.social.model.SocialRequest;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="SocialRequestUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       SocialRequestPersistence
35   * @see       SocialRequestPersistenceImpl
36   * @generated
37   */
38  public class SocialRequestUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static SocialRequest remove(SocialRequest socialRequest)
66          throws SystemException {
67          return getPersistence().remove(socialRequest);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static SocialRequest update(SocialRequest socialRequest,
74          boolean merge) throws SystemException {
75          return getPersistence().update(socialRequest, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.social.model.SocialRequest socialRequest) {
80          getPersistence().cacheResult(socialRequest);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.social.model.SocialRequest> socialRequests) {
85          getPersistence().cacheResult(socialRequests);
86      }
87  
88      public static com.liferay.portlet.social.model.SocialRequest create(
89          long requestId) {
90          return getPersistence().create(requestId);
91      }
92  
93      public static com.liferay.portlet.social.model.SocialRequest remove(
94          long requestId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.social.NoSuchRequestException {
97          return getPersistence().remove(requestId);
98      }
99  
100     public static com.liferay.portlet.social.model.SocialRequest updateImpl(
101         com.liferay.portlet.social.model.SocialRequest socialRequest,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(socialRequest, merge);
105     }
106 
107     public static com.liferay.portlet.social.model.SocialRequest findByPrimaryKey(
108         long requestId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.social.NoSuchRequestException {
111         return getPersistence().findByPrimaryKey(requestId);
112     }
113 
114     public static com.liferay.portlet.social.model.SocialRequest fetchByPrimaryKey(
115         long requestId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(requestId);
118     }
119 
120     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
121         java.lang.String uuid)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByUuid(uuid);
124     }
125 
126     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
127         java.lang.String uuid, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByUuid(uuid, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
133         java.lang.String uuid, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
137     }
138 
139     public static com.liferay.portlet.social.model.SocialRequest findByUuid_First(
140         java.lang.String uuid,
141         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142         throws com.liferay.portal.kernel.exception.SystemException,
143             com.liferay.portlet.social.NoSuchRequestException {
144         return getPersistence().findByUuid_First(uuid, orderByComparator);
145     }
146 
147     public static com.liferay.portlet.social.model.SocialRequest findByUuid_Last(
148         java.lang.String uuid,
149         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150         throws com.liferay.portal.kernel.exception.SystemException,
151             com.liferay.portlet.social.NoSuchRequestException {
152         return getPersistence().findByUuid_Last(uuid, orderByComparator);
153     }
154 
155     public static com.liferay.portlet.social.model.SocialRequest[] findByUuid_PrevAndNext(
156         long requestId, java.lang.String uuid,
157         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.social.NoSuchRequestException {
160         return getPersistence()
161                    .findByUuid_PrevAndNext(requestId, uuid, orderByComparator);
162     }
163 
164     public static com.liferay.portlet.social.model.SocialRequest findByUUID_G(
165         java.lang.String uuid, long groupId)
166         throws com.liferay.portal.kernel.exception.SystemException,
167             com.liferay.portlet.social.NoSuchRequestException {
168         return getPersistence().findByUUID_G(uuid, groupId);
169     }
170 
171     public static com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
172         java.lang.String uuid, long groupId)
173         throws com.liferay.portal.kernel.exception.SystemException {
174         return getPersistence().fetchByUUID_G(uuid, groupId);
175     }
176 
177     public static com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
178         java.lang.String uuid, long groupId, boolean retrieveFromCache)
179         throws com.liferay.portal.kernel.exception.SystemException {
180         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
181     }
182 
183     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
184         long companyId)
185         throws com.liferay.portal.kernel.exception.SystemException {
186         return getPersistence().findByCompanyId(companyId);
187     }
188 
189     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
190         long companyId, int start, int end)
191         throws com.liferay.portal.kernel.exception.SystemException {
192         return getPersistence().findByCompanyId(companyId, start, end);
193     }
194 
195     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
196         long companyId, int start, int end,
197         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198         throws com.liferay.portal.kernel.exception.SystemException {
199         return getPersistence()
200                    .findByCompanyId(companyId, start, end, orderByComparator);
201     }
202 
203     public static com.liferay.portlet.social.model.SocialRequest findByCompanyId_First(
204         long companyId,
205         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206         throws com.liferay.portal.kernel.exception.SystemException,
207             com.liferay.portlet.social.NoSuchRequestException {
208         return getPersistence()
209                    .findByCompanyId_First(companyId, orderByComparator);
210     }
211 
212     public static com.liferay.portlet.social.model.SocialRequest findByCompanyId_Last(
213         long companyId,
214         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215         throws com.liferay.portal.kernel.exception.SystemException,
216             com.liferay.portlet.social.NoSuchRequestException {
217         return getPersistence()
218                    .findByCompanyId_Last(companyId, orderByComparator);
219     }
220 
221     public static com.liferay.portlet.social.model.SocialRequest[] findByCompanyId_PrevAndNext(
222         long requestId, long companyId,
223         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
224         throws com.liferay.portal.kernel.exception.SystemException,
225             com.liferay.portlet.social.NoSuchRequestException {
226         return getPersistence()
227                    .findByCompanyId_PrevAndNext(requestId, companyId,
228             orderByComparator);
229     }
230 
231     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
232         long userId) throws com.liferay.portal.kernel.exception.SystemException {
233         return getPersistence().findByUserId(userId);
234     }
235 
236     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
237         long userId, int start, int end)
238         throws com.liferay.portal.kernel.exception.SystemException {
239         return getPersistence().findByUserId(userId, start, end);
240     }
241 
242     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
243         long userId, int start, int end,
244         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245         throws com.liferay.portal.kernel.exception.SystemException {
246         return getPersistence()
247                    .findByUserId(userId, start, end, orderByComparator);
248     }
249 
250     public static com.liferay.portlet.social.model.SocialRequest findByUserId_First(
251         long userId,
252         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
253         throws com.liferay.portal.kernel.exception.SystemException,
254             com.liferay.portlet.social.NoSuchRequestException {
255         return getPersistence().findByUserId_First(userId, orderByComparator);
256     }
257 
258     public static com.liferay.portlet.social.model.SocialRequest findByUserId_Last(
259         long userId,
260         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
261         throws com.liferay.portal.kernel.exception.SystemException,
262             com.liferay.portlet.social.NoSuchRequestException {
263         return getPersistence().findByUserId_Last(userId, orderByComparator);
264     }
265 
266     public static com.liferay.portlet.social.model.SocialRequest[] findByUserId_PrevAndNext(
267         long requestId, long userId,
268         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
269         throws com.liferay.portal.kernel.exception.SystemException,
270             com.liferay.portlet.social.NoSuchRequestException {
271         return getPersistence()
272                    .findByUserId_PrevAndNext(requestId, userId,
273             orderByComparator);
274     }
275 
276     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
277         long receiverUserId)
278         throws com.liferay.portal.kernel.exception.SystemException {
279         return getPersistence().findByReceiverUserId(receiverUserId);
280     }
281 
282     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
283         long receiverUserId, int start, int end)
284         throws com.liferay.portal.kernel.exception.SystemException {
285         return getPersistence().findByReceiverUserId(receiverUserId, start, end);
286     }
287 
288     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
289         long receiverUserId, int start, int end,
290         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291         throws com.liferay.portal.kernel.exception.SystemException {
292         return getPersistence()
293                    .findByReceiverUserId(receiverUserId, start, end,
294             orderByComparator);
295     }
296 
297     public static com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_First(
298         long receiverUserId,
299         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300         throws com.liferay.portal.kernel.exception.SystemException,
301             com.liferay.portlet.social.NoSuchRequestException {
302         return getPersistence()
303                    .findByReceiverUserId_First(receiverUserId, orderByComparator);
304     }
305 
306     public static com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_Last(
307         long receiverUserId,
308         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309         throws com.liferay.portal.kernel.exception.SystemException,
310             com.liferay.portlet.social.NoSuchRequestException {
311         return getPersistence()
312                    .findByReceiverUserId_Last(receiverUserId, orderByComparator);
313     }
314 
315     public static com.liferay.portlet.social.model.SocialRequest[] findByReceiverUserId_PrevAndNext(
316         long requestId, long receiverUserId,
317         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318         throws com.liferay.portal.kernel.exception.SystemException,
319             com.liferay.portlet.social.NoSuchRequestException {
320         return getPersistence()
321                    .findByReceiverUserId_PrevAndNext(requestId, receiverUserId,
322             orderByComparator);
323     }
324 
325     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
326         long userId, int status)
327         throws com.liferay.portal.kernel.exception.SystemException {
328         return getPersistence().findByU_S(userId, status);
329     }
330 
331     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
332         long userId, int status, int start, int end)
333         throws com.liferay.portal.kernel.exception.SystemException {
334         return getPersistence().findByU_S(userId, status, start, end);
335     }
336 
337     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
338         long userId, int status, int start, int end,
339         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340         throws com.liferay.portal.kernel.exception.SystemException {
341         return getPersistence()
342                    .findByU_S(userId, status, start, end, orderByComparator);
343     }
344 
345     public static com.liferay.portlet.social.model.SocialRequest findByU_S_First(
346         long userId, int status,
347         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
348         throws com.liferay.portal.kernel.exception.SystemException,
349             com.liferay.portlet.social.NoSuchRequestException {
350         return getPersistence()
351                    .findByU_S_First(userId, status, orderByComparator);
352     }
353 
354     public static com.liferay.portlet.social.model.SocialRequest findByU_S_Last(
355         long userId, int status,
356         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357         throws com.liferay.portal.kernel.exception.SystemException,
358             com.liferay.portlet.social.NoSuchRequestException {
359         return getPersistence().findByU_S_Last(userId, status, orderByComparator);
360     }
361 
362     public static com.liferay.portlet.social.model.SocialRequest[] findByU_S_PrevAndNext(
363         long requestId, long userId, int status,
364         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
365         throws com.liferay.portal.kernel.exception.SystemException,
366             com.liferay.portlet.social.NoSuchRequestException {
367         return getPersistence()
368                    .findByU_S_PrevAndNext(requestId, userId, status,
369             orderByComparator);
370     }
371 
372     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
373         long receiverUserId, int status)
374         throws com.liferay.portal.kernel.exception.SystemException {
375         return getPersistence().findByR_S(receiverUserId, status);
376     }
377 
378     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
379         long receiverUserId, int status, int start, int end)
380         throws com.liferay.portal.kernel.exception.SystemException {
381         return getPersistence().findByR_S(receiverUserId, status, start, end);
382     }
383 
384     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
385         long receiverUserId, int status, int start, int end,
386         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
387         throws com.liferay.portal.kernel.exception.SystemException {
388         return getPersistence()
389                    .findByR_S(receiverUserId, status, start, end,
390             orderByComparator);
391     }
392 
393     public static com.liferay.portlet.social.model.SocialRequest findByR_S_First(
394         long receiverUserId, int status,
395         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396         throws com.liferay.portal.kernel.exception.SystemException,
397             com.liferay.portlet.social.NoSuchRequestException {
398         return getPersistence()
399                    .findByR_S_First(receiverUserId, status, orderByComparator);
400     }
401 
402     public static com.liferay.portlet.social.model.SocialRequest findByR_S_Last(
403         long receiverUserId, int status,
404         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
405         throws com.liferay.portal.kernel.exception.SystemException,
406             com.liferay.portlet.social.NoSuchRequestException {
407         return getPersistence()
408                    .findByR_S_Last(receiverUserId, status, orderByComparator);
409     }
410 
411     public static com.liferay.portlet.social.model.SocialRequest[] findByR_S_PrevAndNext(
412         long requestId, long receiverUserId, int status,
413         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
414         throws com.liferay.portal.kernel.exception.SystemException,
415             com.liferay.portlet.social.NoSuchRequestException {
416         return getPersistence()
417                    .findByR_S_PrevAndNext(requestId, receiverUserId, status,
418             orderByComparator);
419     }
420 
421     public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_R(
422         long userId, long classNameId, long classPK, int type,
423         long receiverUserId)
424         throws com.liferay.portal.kernel.exception.SystemException,
425             com.liferay.portlet.social.NoSuchRequestException {
426         return getPersistence()
427                    .findByU_C_C_T_R(userId, classNameId, classPK, type,
428             receiverUserId);
429     }
430 
431     public static com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
432         long userId, long classNameId, long classPK, int type,
433         long receiverUserId)
434         throws com.liferay.portal.kernel.exception.SystemException {
435         return getPersistence()
436                    .fetchByU_C_C_T_R(userId, classNameId, classPK, type,
437             receiverUserId);
438     }
439 
440     public static com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
441         long userId, long classNameId, long classPK, int type,
442         long receiverUserId, boolean retrieveFromCache)
443         throws com.liferay.portal.kernel.exception.SystemException {
444         return getPersistence()
445                    .fetchByU_C_C_T_R(userId, classNameId, classPK, type,
446             receiverUserId, retrieveFromCache);
447     }
448 
449     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
450         long userId, long classNameId, long classPK, int type, int status)
451         throws com.liferay.portal.kernel.exception.SystemException {
452         return getPersistence()
453                    .findByU_C_C_T_S(userId, classNameId, classPK, type, status);
454     }
455 
456     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
457         long userId, long classNameId, long classPK, int type, int status,
458         int start, int end)
459         throws com.liferay.portal.kernel.exception.SystemException {
460         return getPersistence()
461                    .findByU_C_C_T_S(userId, classNameId, classPK, type, status,
462             start, end);
463     }
464 
465     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
466         long userId, long classNameId, long classPK, int type, int status,
467         int start, int end,
468         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
469         throws com.liferay.portal.kernel.exception.SystemException {
470         return getPersistence()
471                    .findByU_C_C_T_S(userId, classNameId, classPK, type, status,
472             start, end, orderByComparator);
473     }
474 
475     public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_First(
476         long userId, long classNameId, long classPK, int type, int status,
477         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
478         throws com.liferay.portal.kernel.exception.SystemException,
479             com.liferay.portlet.social.NoSuchRequestException {
480         return getPersistence()
481                    .findByU_C_C_T_S_First(userId, classNameId, classPK, type,
482             status, orderByComparator);
483     }
484 
485     public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_Last(
486         long userId, long classNameId, long classPK, int type, int status,
487         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
488         throws com.liferay.portal.kernel.exception.SystemException,
489             com.liferay.portlet.social.NoSuchRequestException {
490         return getPersistence()
491                    .findByU_C_C_T_S_Last(userId, classNameId, classPK, type,
492             status, orderByComparator);
493     }
494 
495     public static com.liferay.portlet.social.model.SocialRequest[] findByU_C_C_T_S_PrevAndNext(
496         long requestId, long userId, long classNameId, long classPK, int type,
497         int status,
498         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
499         throws com.liferay.portal.kernel.exception.SystemException,
500             com.liferay.portlet.social.NoSuchRequestException {
501         return getPersistence()
502                    .findByU_C_C_T_S_PrevAndNext(requestId, userId, classNameId,
503             classPK, type, status, orderByComparator);
504     }
505 
506     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
507         long classNameId, long classPK, int type, long receiverUserId,
508         int status) throws com.liferay.portal.kernel.exception.SystemException {
509         return getPersistence()
510                    .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
511             status);
512     }
513 
514     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
515         long classNameId, long classPK, int type, long receiverUserId,
516         int status, int start, int end)
517         throws com.liferay.portal.kernel.exception.SystemException {
518         return getPersistence()
519                    .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
520             status, start, end);
521     }
522 
523     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
524         long classNameId, long classPK, int type, long receiverUserId,
525         int status, int start, int end,
526         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
527         throws com.liferay.portal.kernel.exception.SystemException {
528         return getPersistence()
529                    .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
530             status, start, end, orderByComparator);
531     }
532 
533     public static com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_First(
534         long classNameId, long classPK, int type, long receiverUserId,
535         int status,
536         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
537         throws com.liferay.portal.kernel.exception.SystemException,
538             com.liferay.portlet.social.NoSuchRequestException {
539         return getPersistence()
540                    .findByC_C_T_R_S_First(classNameId, classPK, type,
541             receiverUserId, status, orderByComparator);
542     }
543 
544     public static com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_Last(
545         long classNameId, long classPK, int type, long receiverUserId,
546         int status,
547         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
548         throws com.liferay.portal.kernel.exception.SystemException,
549             com.liferay.portlet.social.NoSuchRequestException {
550         return getPersistence()
551                    .findByC_C_T_R_S_Last(classNameId, classPK, type,
552             receiverUserId, status, orderByComparator);
553     }
554 
555     public static com.liferay.portlet.social.model.SocialRequest[] findByC_C_T_R_S_PrevAndNext(
556         long requestId, long classNameId, long classPK, int type,
557         long receiverUserId, int status,
558         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
559         throws com.liferay.portal.kernel.exception.SystemException,
560             com.liferay.portlet.social.NoSuchRequestException {
561         return getPersistence()
562                    .findByC_C_T_R_S_PrevAndNext(requestId, classNameId,
563             classPK, type, receiverUserId, status, orderByComparator);
564     }
565 
566     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll()
567         throws com.liferay.portal.kernel.exception.SystemException {
568         return getPersistence().findAll();
569     }
570 
571     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
572         int start, int end)
573         throws com.liferay.portal.kernel.exception.SystemException {
574         return getPersistence().findAll(start, end);
575     }
576 
577     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
578         int start, int end,
579         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
580         throws com.liferay.portal.kernel.exception.SystemException {
581         return getPersistence().findAll(start, end, orderByComparator);
582     }
583 
584     public static void removeByUuid(java.lang.String uuid)
585         throws com.liferay.portal.kernel.exception.SystemException {
586         getPersistence().removeByUuid(uuid);
587     }
588 
589     public static void removeByUUID_G(java.lang.String uuid, long groupId)
590         throws com.liferay.portal.kernel.exception.SystemException,
591             com.liferay.portlet.social.NoSuchRequestException {
592         getPersistence().removeByUUID_G(uuid, groupId);
593     }
594 
595     public static void removeByCompanyId(long companyId)
596         throws com.liferay.portal.kernel.exception.SystemException {
597         getPersistence().removeByCompanyId(companyId);
598     }
599 
600     public static void removeByUserId(long userId)
601         throws com.liferay.portal.kernel.exception.SystemException {
602         getPersistence().removeByUserId(userId);
603     }
604 
605     public static void removeByReceiverUserId(long receiverUserId)
606         throws com.liferay.portal.kernel.exception.SystemException {
607         getPersistence().removeByReceiverUserId(receiverUserId);
608     }
609 
610     public static void removeByU_S(long userId, int status)
611         throws com.liferay.portal.kernel.exception.SystemException {
612         getPersistence().removeByU_S(userId, status);
613     }
614 
615     public static void removeByR_S(long receiverUserId, int status)
616         throws com.liferay.portal.kernel.exception.SystemException {
617         getPersistence().removeByR_S(receiverUserId, status);
618     }
619 
620     public static void removeByU_C_C_T_R(long userId, long classNameId,
621         long classPK, int type, long receiverUserId)
622         throws com.liferay.portal.kernel.exception.SystemException,
623             com.liferay.portlet.social.NoSuchRequestException {
624         getPersistence()
625             .removeByU_C_C_T_R(userId, classNameId, classPK, type,
626             receiverUserId);
627     }
628 
629     public static void removeByU_C_C_T_S(long userId, long classNameId,
630         long classPK, int type, int status)
631         throws com.liferay.portal.kernel.exception.SystemException {
632         getPersistence()
633             .removeByU_C_C_T_S(userId, classNameId, classPK, type, status);
634     }
635 
636     public static void removeByC_C_T_R_S(long classNameId, long classPK,
637         int type, long receiverUserId, int status)
638         throws com.liferay.portal.kernel.exception.SystemException {
639         getPersistence()
640             .removeByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
641             status);
642     }
643 
644     public static void removeAll()
645         throws com.liferay.portal.kernel.exception.SystemException {
646         getPersistence().removeAll();
647     }
648 
649     public static int countByUuid(java.lang.String uuid)
650         throws com.liferay.portal.kernel.exception.SystemException {
651         return getPersistence().countByUuid(uuid);
652     }
653 
654     public static int countByUUID_G(java.lang.String uuid, long groupId)
655         throws com.liferay.portal.kernel.exception.SystemException {
656         return getPersistence().countByUUID_G(uuid, groupId);
657     }
658 
659     public static int countByCompanyId(long companyId)
660         throws com.liferay.portal.kernel.exception.SystemException {
661         return getPersistence().countByCompanyId(companyId);
662     }
663 
664     public static int countByUserId(long userId)
665         throws com.liferay.portal.kernel.exception.SystemException {
666         return getPersistence().countByUserId(userId);
667     }
668 
669     public static int countByReceiverUserId(long receiverUserId)
670         throws com.liferay.portal.kernel.exception.SystemException {
671         return getPersistence().countByReceiverUserId(receiverUserId);
672     }
673 
674     public static int countByU_S(long userId, int status)
675         throws com.liferay.portal.kernel.exception.SystemException {
676         return getPersistence().countByU_S(userId, status);
677     }
678 
679     public static int countByR_S(long receiverUserId, int status)
680         throws com.liferay.portal.kernel.exception.SystemException {
681         return getPersistence().countByR_S(receiverUserId, status);
682     }
683 
684     public static int countByU_C_C_T_R(long userId, long classNameId,
685         long classPK, int type, long receiverUserId)
686         throws com.liferay.portal.kernel.exception.SystemException {
687         return getPersistence()
688                    .countByU_C_C_T_R(userId, classNameId, classPK, type,
689             receiverUserId);
690     }
691 
692     public static int countByU_C_C_T_S(long userId, long classNameId,
693         long classPK, int type, int status)
694         throws com.liferay.portal.kernel.exception.SystemException {
695         return getPersistence()
696                    .countByU_C_C_T_S(userId, classNameId, classPK, type, status);
697     }
698 
699     public static int countByC_C_T_R_S(long classNameId, long classPK,
700         int type, long receiverUserId, int status)
701         throws com.liferay.portal.kernel.exception.SystemException {
702         return getPersistence()
703                    .countByC_C_T_R_S(classNameId, classPK, type,
704             receiverUserId, status);
705     }
706 
707     public static int countAll()
708         throws com.liferay.portal.kernel.exception.SystemException {
709         return getPersistence().countAll();
710     }
711 
712     public static SocialRequestPersistence getPersistence() {
713         if (_persistence == null) {
714             _persistence = (SocialRequestPersistence)PortalBeanLocatorUtil.locate(SocialRequestPersistence.class.getName());
715         }
716 
717         return _persistence;
718     }
719 
720     public void setPersistence(SocialRequestPersistence persistence) {
721         _persistence = persistence;
722     }
723 
724     private static SocialRequestPersistence _persistence;
725 }