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