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 obc)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByUuid(uuid, start, end, obc);
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 obc)
142         throws com.liferay.portal.kernel.exception.SystemException,
143             com.liferay.portlet.social.NoSuchRequestException {
144         return getPersistence().findByUuid_First(uuid, obc);
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 obc)
150         throws com.liferay.portal.kernel.exception.SystemException,
151             com.liferay.portlet.social.NoSuchRequestException {
152         return getPersistence().findByUuid_Last(uuid, obc);
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 obc)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.social.NoSuchRequestException {
160         return getPersistence().findByUuid_PrevAndNext(requestId, uuid, obc);
161     }
162 
163     public static com.liferay.portlet.social.model.SocialRequest findByUUID_G(
164         java.lang.String uuid, long groupId)
165         throws com.liferay.portal.kernel.exception.SystemException,
166             com.liferay.portlet.social.NoSuchRequestException {
167         return getPersistence().findByUUID_G(uuid, groupId);
168     }
169 
170     public static com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
171         java.lang.String uuid, long groupId)
172         throws com.liferay.portal.kernel.exception.SystemException {
173         return getPersistence().fetchByUUID_G(uuid, groupId);
174     }
175 
176     public static com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
177         java.lang.String uuid, long groupId, boolean retrieveFromCache)
178         throws com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
180     }
181 
182     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
183         long companyId)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence().findByCompanyId(companyId);
186     }
187 
188     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
189         long companyId, int start, int end)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().findByCompanyId(companyId, start, end);
192     }
193 
194     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
195         long companyId, int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence().findByCompanyId(companyId, start, end, obc);
199     }
200 
201     public static com.liferay.portlet.social.model.SocialRequest findByCompanyId_First(
202         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.kernel.exception.SystemException,
204             com.liferay.portlet.social.NoSuchRequestException {
205         return getPersistence().findByCompanyId_First(companyId, obc);
206     }
207 
208     public static com.liferay.portlet.social.model.SocialRequest findByCompanyId_Last(
209         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.kernel.exception.SystemException,
211             com.liferay.portlet.social.NoSuchRequestException {
212         return getPersistence().findByCompanyId_Last(companyId, obc);
213     }
214 
215     public static com.liferay.portlet.social.model.SocialRequest[] findByCompanyId_PrevAndNext(
216         long requestId, long companyId,
217         com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.kernel.exception.SystemException,
219             com.liferay.portlet.social.NoSuchRequestException {
220         return getPersistence()
221                    .findByCompanyId_PrevAndNext(requestId, companyId, obc);
222     }
223 
224     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
225         long userId) throws com.liferay.portal.kernel.exception.SystemException {
226         return getPersistence().findByUserId(userId);
227     }
228 
229     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
230         long userId, int start, int end)
231         throws com.liferay.portal.kernel.exception.SystemException {
232         return getPersistence().findByUserId(userId, start, end);
233     }
234 
235     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
236         long userId, int start, int end,
237         com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.kernel.exception.SystemException {
239         return getPersistence().findByUserId(userId, start, end, obc);
240     }
241 
242     public static com.liferay.portlet.social.model.SocialRequest findByUserId_First(
243         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.kernel.exception.SystemException,
245             com.liferay.portlet.social.NoSuchRequestException {
246         return getPersistence().findByUserId_First(userId, obc);
247     }
248 
249     public static com.liferay.portlet.social.model.SocialRequest findByUserId_Last(
250         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
251         throws com.liferay.portal.kernel.exception.SystemException,
252             com.liferay.portlet.social.NoSuchRequestException {
253         return getPersistence().findByUserId_Last(userId, obc);
254     }
255 
256     public static com.liferay.portlet.social.model.SocialRequest[] findByUserId_PrevAndNext(
257         long requestId, long userId,
258         com.liferay.portal.kernel.util.OrderByComparator obc)
259         throws com.liferay.portal.kernel.exception.SystemException,
260             com.liferay.portlet.social.NoSuchRequestException {
261         return getPersistence().findByUserId_PrevAndNext(requestId, userId, obc);
262     }
263 
264     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
265         long receiverUserId)
266         throws com.liferay.portal.kernel.exception.SystemException {
267         return getPersistence().findByReceiverUserId(receiverUserId);
268     }
269 
270     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
271         long receiverUserId, int start, int end)
272         throws com.liferay.portal.kernel.exception.SystemException {
273         return getPersistence().findByReceiverUserId(receiverUserId, start, end);
274     }
275 
276     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
277         long receiverUserId, int start, int end,
278         com.liferay.portal.kernel.util.OrderByComparator obc)
279         throws com.liferay.portal.kernel.exception.SystemException {
280         return getPersistence()
281                    .findByReceiverUserId(receiverUserId, start, end, obc);
282     }
283 
284     public static com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_First(
285         long receiverUserId,
286         com.liferay.portal.kernel.util.OrderByComparator obc)
287         throws com.liferay.portal.kernel.exception.SystemException,
288             com.liferay.portlet.social.NoSuchRequestException {
289         return getPersistence().findByReceiverUserId_First(receiverUserId, obc);
290     }
291 
292     public static com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_Last(
293         long receiverUserId,
294         com.liferay.portal.kernel.util.OrderByComparator obc)
295         throws com.liferay.portal.kernel.exception.SystemException,
296             com.liferay.portlet.social.NoSuchRequestException {
297         return getPersistence().findByReceiverUserId_Last(receiverUserId, obc);
298     }
299 
300     public static com.liferay.portlet.social.model.SocialRequest[] findByReceiverUserId_PrevAndNext(
301         long requestId, long receiverUserId,
302         com.liferay.portal.kernel.util.OrderByComparator obc)
303         throws com.liferay.portal.kernel.exception.SystemException,
304             com.liferay.portlet.social.NoSuchRequestException {
305         return getPersistence()
306                    .findByReceiverUserId_PrevAndNext(requestId, receiverUserId,
307             obc);
308     }
309 
310     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
311         long userId, int status)
312         throws com.liferay.portal.kernel.exception.SystemException {
313         return getPersistence().findByU_S(userId, status);
314     }
315 
316     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
317         long userId, int status, int start, int end)
318         throws com.liferay.portal.kernel.exception.SystemException {
319         return getPersistence().findByU_S(userId, status, start, end);
320     }
321 
322     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
323         long userId, int status, int start, int end,
324         com.liferay.portal.kernel.util.OrderByComparator obc)
325         throws com.liferay.portal.kernel.exception.SystemException {
326         return getPersistence().findByU_S(userId, status, start, end, obc);
327     }
328 
329     public static com.liferay.portlet.social.model.SocialRequest findByU_S_First(
330         long userId, int status,
331         com.liferay.portal.kernel.util.OrderByComparator obc)
332         throws com.liferay.portal.kernel.exception.SystemException,
333             com.liferay.portlet.social.NoSuchRequestException {
334         return getPersistence().findByU_S_First(userId, status, obc);
335     }
336 
337     public static com.liferay.portlet.social.model.SocialRequest findByU_S_Last(
338         long userId, int status,
339         com.liferay.portal.kernel.util.OrderByComparator obc)
340         throws com.liferay.portal.kernel.exception.SystemException,
341             com.liferay.portlet.social.NoSuchRequestException {
342         return getPersistence().findByU_S_Last(userId, status, obc);
343     }
344 
345     public static com.liferay.portlet.social.model.SocialRequest[] findByU_S_PrevAndNext(
346         long requestId, long userId, int status,
347         com.liferay.portal.kernel.util.OrderByComparator obc)
348         throws com.liferay.portal.kernel.exception.SystemException,
349             com.liferay.portlet.social.NoSuchRequestException {
350         return getPersistence()
351                    .findByU_S_PrevAndNext(requestId, userId, status, obc);
352     }
353 
354     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
355         long receiverUserId, int status)
356         throws com.liferay.portal.kernel.exception.SystemException {
357         return getPersistence().findByR_S(receiverUserId, status);
358     }
359 
360     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
361         long receiverUserId, int status, int start, int end)
362         throws com.liferay.portal.kernel.exception.SystemException {
363         return getPersistence().findByR_S(receiverUserId, status, start, end);
364     }
365 
366     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
367         long receiverUserId, int status, int start, int end,
368         com.liferay.portal.kernel.util.OrderByComparator obc)
369         throws com.liferay.portal.kernel.exception.SystemException {
370         return getPersistence()
371                    .findByR_S(receiverUserId, status, start, end, obc);
372     }
373 
374     public static com.liferay.portlet.social.model.SocialRequest findByR_S_First(
375         long receiverUserId, int status,
376         com.liferay.portal.kernel.util.OrderByComparator obc)
377         throws com.liferay.portal.kernel.exception.SystemException,
378             com.liferay.portlet.social.NoSuchRequestException {
379         return getPersistence().findByR_S_First(receiverUserId, status, obc);
380     }
381 
382     public static com.liferay.portlet.social.model.SocialRequest findByR_S_Last(
383         long receiverUserId, int status,
384         com.liferay.portal.kernel.util.OrderByComparator obc)
385         throws com.liferay.portal.kernel.exception.SystemException,
386             com.liferay.portlet.social.NoSuchRequestException {
387         return getPersistence().findByR_S_Last(receiverUserId, status, obc);
388     }
389 
390     public static com.liferay.portlet.social.model.SocialRequest[] findByR_S_PrevAndNext(
391         long requestId, long receiverUserId, int status,
392         com.liferay.portal.kernel.util.OrderByComparator obc)
393         throws com.liferay.portal.kernel.exception.SystemException,
394             com.liferay.portlet.social.NoSuchRequestException {
395         return getPersistence()
396                    .findByR_S_PrevAndNext(requestId, receiverUserId, status, obc);
397     }
398 
399     public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_R(
400         long userId, long classNameId, long classPK, int type,
401         long receiverUserId)
402         throws com.liferay.portal.kernel.exception.SystemException,
403             com.liferay.portlet.social.NoSuchRequestException {
404         return getPersistence()
405                    .findByU_C_C_T_R(userId, classNameId, classPK, type,
406             receiverUserId);
407     }
408 
409     public static com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
410         long userId, long classNameId, long classPK, int type,
411         long receiverUserId)
412         throws com.liferay.portal.kernel.exception.SystemException {
413         return getPersistence()
414                    .fetchByU_C_C_T_R(userId, classNameId, classPK, type,
415             receiverUserId);
416     }
417 
418     public static com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
419         long userId, long classNameId, long classPK, int type,
420         long receiverUserId, boolean retrieveFromCache)
421         throws com.liferay.portal.kernel.exception.SystemException {
422         return getPersistence()
423                    .fetchByU_C_C_T_R(userId, classNameId, classPK, type,
424             receiverUserId, retrieveFromCache);
425     }
426 
427     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
428         long userId, long classNameId, long classPK, int type, int status)
429         throws com.liferay.portal.kernel.exception.SystemException {
430         return getPersistence()
431                    .findByU_C_C_T_S(userId, classNameId, classPK, type, status);
432     }
433 
434     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
435         long userId, long classNameId, long classPK, int type, int status,
436         int start, int end)
437         throws com.liferay.portal.kernel.exception.SystemException {
438         return getPersistence()
439                    .findByU_C_C_T_S(userId, classNameId, classPK, type, status,
440             start, end);
441     }
442 
443     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
444         long userId, long classNameId, long classPK, int type, int status,
445         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
446         throws com.liferay.portal.kernel.exception.SystemException {
447         return getPersistence()
448                    .findByU_C_C_T_S(userId, classNameId, classPK, type, status,
449             start, end, obc);
450     }
451 
452     public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_First(
453         long userId, long classNameId, long classPK, int type, int status,
454         com.liferay.portal.kernel.util.OrderByComparator obc)
455         throws com.liferay.portal.kernel.exception.SystemException,
456             com.liferay.portlet.social.NoSuchRequestException {
457         return getPersistence()
458                    .findByU_C_C_T_S_First(userId, classNameId, classPK, type,
459             status, obc);
460     }
461 
462     public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_Last(
463         long userId, long classNameId, long classPK, int type, int status,
464         com.liferay.portal.kernel.util.OrderByComparator obc)
465         throws com.liferay.portal.kernel.exception.SystemException,
466             com.liferay.portlet.social.NoSuchRequestException {
467         return getPersistence()
468                    .findByU_C_C_T_S_Last(userId, classNameId, classPK, type,
469             status, obc);
470     }
471 
472     public static com.liferay.portlet.social.model.SocialRequest[] findByU_C_C_T_S_PrevAndNext(
473         long requestId, long userId, long classNameId, long classPK, int type,
474         int status, com.liferay.portal.kernel.util.OrderByComparator obc)
475         throws com.liferay.portal.kernel.exception.SystemException,
476             com.liferay.portlet.social.NoSuchRequestException {
477         return getPersistence()
478                    .findByU_C_C_T_S_PrevAndNext(requestId, userId, classNameId,
479             classPK, type, status, obc);
480     }
481 
482     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
483         long classNameId, long classPK, int type, long receiverUserId,
484         int status) throws com.liferay.portal.kernel.exception.SystemException {
485         return getPersistence()
486                    .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
487             status);
488     }
489 
490     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
491         long classNameId, long classPK, int type, long receiverUserId,
492         int status, int start, int end)
493         throws com.liferay.portal.kernel.exception.SystemException {
494         return getPersistence()
495                    .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
496             status, start, end);
497     }
498 
499     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
500         long classNameId, long classPK, int type, long receiverUserId,
501         int status, int start, int end,
502         com.liferay.portal.kernel.util.OrderByComparator obc)
503         throws com.liferay.portal.kernel.exception.SystemException {
504         return getPersistence()
505                    .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
506             status, start, end, obc);
507     }
508 
509     public static com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_First(
510         long classNameId, long classPK, int type, long receiverUserId,
511         int status, com.liferay.portal.kernel.util.OrderByComparator obc)
512         throws com.liferay.portal.kernel.exception.SystemException,
513             com.liferay.portlet.social.NoSuchRequestException {
514         return getPersistence()
515                    .findByC_C_T_R_S_First(classNameId, classPK, type,
516             receiverUserId, status, obc);
517     }
518 
519     public static com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_Last(
520         long classNameId, long classPK, int type, long receiverUserId,
521         int status, com.liferay.portal.kernel.util.OrderByComparator obc)
522         throws com.liferay.portal.kernel.exception.SystemException,
523             com.liferay.portlet.social.NoSuchRequestException {
524         return getPersistence()
525                    .findByC_C_T_R_S_Last(classNameId, classPK, type,
526             receiverUserId, status, obc);
527     }
528 
529     public static com.liferay.portlet.social.model.SocialRequest[] findByC_C_T_R_S_PrevAndNext(
530         long requestId, long classNameId, long classPK, int type,
531         long receiverUserId, int status,
532         com.liferay.portal.kernel.util.OrderByComparator obc)
533         throws com.liferay.portal.kernel.exception.SystemException,
534             com.liferay.portlet.social.NoSuchRequestException {
535         return getPersistence()
536                    .findByC_C_T_R_S_PrevAndNext(requestId, classNameId,
537             classPK, type, receiverUserId, status, obc);
538     }
539 
540     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll()
541         throws com.liferay.portal.kernel.exception.SystemException {
542         return getPersistence().findAll();
543     }
544 
545     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
546         int start, int end)
547         throws com.liferay.portal.kernel.exception.SystemException {
548         return getPersistence().findAll(start, end);
549     }
550 
551     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
552         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
553         throws com.liferay.portal.kernel.exception.SystemException {
554         return getPersistence().findAll(start, end, obc);
555     }
556 
557     public static void removeByUuid(java.lang.String uuid)
558         throws com.liferay.portal.kernel.exception.SystemException {
559         getPersistence().removeByUuid(uuid);
560     }
561 
562     public static void removeByUUID_G(java.lang.String uuid, long groupId)
563         throws com.liferay.portal.kernel.exception.SystemException,
564             com.liferay.portlet.social.NoSuchRequestException {
565         getPersistence().removeByUUID_G(uuid, groupId);
566     }
567 
568     public static void removeByCompanyId(long companyId)
569         throws com.liferay.portal.kernel.exception.SystemException {
570         getPersistence().removeByCompanyId(companyId);
571     }
572 
573     public static void removeByUserId(long userId)
574         throws com.liferay.portal.kernel.exception.SystemException {
575         getPersistence().removeByUserId(userId);
576     }
577 
578     public static void removeByReceiverUserId(long receiverUserId)
579         throws com.liferay.portal.kernel.exception.SystemException {
580         getPersistence().removeByReceiverUserId(receiverUserId);
581     }
582 
583     public static void removeByU_S(long userId, int status)
584         throws com.liferay.portal.kernel.exception.SystemException {
585         getPersistence().removeByU_S(userId, status);
586     }
587 
588     public static void removeByR_S(long receiverUserId, int status)
589         throws com.liferay.portal.kernel.exception.SystemException {
590         getPersistence().removeByR_S(receiverUserId, status);
591     }
592 
593     public static void removeByU_C_C_T_R(long userId, long classNameId,
594         long classPK, int type, long receiverUserId)
595         throws com.liferay.portal.kernel.exception.SystemException,
596             com.liferay.portlet.social.NoSuchRequestException {
597         getPersistence()
598             .removeByU_C_C_T_R(userId, classNameId, classPK, type,
599             receiverUserId);
600     }
601 
602     public static void removeByU_C_C_T_S(long userId, long classNameId,
603         long classPK, int type, int status)
604         throws com.liferay.portal.kernel.exception.SystemException {
605         getPersistence()
606             .removeByU_C_C_T_S(userId, classNameId, classPK, type, status);
607     }
608 
609     public static void removeByC_C_T_R_S(long classNameId, long classPK,
610         int type, long receiverUserId, int status)
611         throws com.liferay.portal.kernel.exception.SystemException {
612         getPersistence()
613             .removeByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
614             status);
615     }
616 
617     public static void removeAll()
618         throws com.liferay.portal.kernel.exception.SystemException {
619         getPersistence().removeAll();
620     }
621 
622     public static int countByUuid(java.lang.String uuid)
623         throws com.liferay.portal.kernel.exception.SystemException {
624         return getPersistence().countByUuid(uuid);
625     }
626 
627     public static int countByUUID_G(java.lang.String uuid, long groupId)
628         throws com.liferay.portal.kernel.exception.SystemException {
629         return getPersistence().countByUUID_G(uuid, groupId);
630     }
631 
632     public static int countByCompanyId(long companyId)
633         throws com.liferay.portal.kernel.exception.SystemException {
634         return getPersistence().countByCompanyId(companyId);
635     }
636 
637     public static int countByUserId(long userId)
638         throws com.liferay.portal.kernel.exception.SystemException {
639         return getPersistence().countByUserId(userId);
640     }
641 
642     public static int countByReceiverUserId(long receiverUserId)
643         throws com.liferay.portal.kernel.exception.SystemException {
644         return getPersistence().countByReceiverUserId(receiverUserId);
645     }
646 
647     public static int countByU_S(long userId, int status)
648         throws com.liferay.portal.kernel.exception.SystemException {
649         return getPersistence().countByU_S(userId, status);
650     }
651 
652     public static int countByR_S(long receiverUserId, int status)
653         throws com.liferay.portal.kernel.exception.SystemException {
654         return getPersistence().countByR_S(receiverUserId, status);
655     }
656 
657     public static int countByU_C_C_T_R(long userId, long classNameId,
658         long classPK, int type, long receiverUserId)
659         throws com.liferay.portal.kernel.exception.SystemException {
660         return getPersistence()
661                    .countByU_C_C_T_R(userId, classNameId, classPK, type,
662             receiverUserId);
663     }
664 
665     public static int countByU_C_C_T_S(long userId, long classNameId,
666         long classPK, int type, int status)
667         throws com.liferay.portal.kernel.exception.SystemException {
668         return getPersistence()
669                    .countByU_C_C_T_S(userId, classNameId, classPK, type, status);
670     }
671 
672     public static int countByC_C_T_R_S(long classNameId, long classPK,
673         int type, long receiverUserId, int status)
674         throws com.liferay.portal.kernel.exception.SystemException {
675         return getPersistence()
676                    .countByC_C_T_R_S(classNameId, classPK, type,
677             receiverUserId, status);
678     }
679 
680     public static int countAll()
681         throws com.liferay.portal.kernel.exception.SystemException {
682         return getPersistence().countAll();
683     }
684 
685     public static SocialRequestPersistence getPersistence() {
686         if (_persistence == null) {
687             _persistence = (SocialRequestPersistence)PortalBeanLocatorUtil.locate(SocialRequestPersistence.class.getName());
688         }
689 
690         return _persistence;
691     }
692 
693     public void setPersistence(SocialRequestPersistence persistence) {
694         _persistence = persistence;
695     }
696 
697     private static SocialRequestPersistence _persistence;
698 }