1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.social.service.persistence;
24  
25  /**
26   * <a href="SocialRequestUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class SocialRequestUtil {
32      public static void cacheResult(
33          com.liferay.portlet.social.model.SocialRequest socialRequest) {
34          getPersistence().cacheResult(socialRequest);
35      }
36  
37      public static void cacheResult(
38          java.util.List<com.liferay.portlet.social.model.SocialRequest> socialRequests) {
39          getPersistence().cacheResult(socialRequests);
40      }
41  
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      public static com.liferay.portlet.social.model.SocialRequest create(
47          long requestId) {
48          return getPersistence().create(requestId);
49      }
50  
51      public static com.liferay.portlet.social.model.SocialRequest remove(
52          long requestId)
53          throws com.liferay.portal.SystemException,
54              com.liferay.portlet.social.NoSuchRequestException {
55          return getPersistence().remove(requestId);
56      }
57  
58      public static com.liferay.portlet.social.model.SocialRequest remove(
59          com.liferay.portlet.social.model.SocialRequest socialRequest)
60          throws com.liferay.portal.SystemException {
61          return getPersistence().remove(socialRequest);
62      }
63  
64      /**
65       * @deprecated Use <code>update(SocialRequest socialRequest, boolean merge)</code>.
66       */
67      public static com.liferay.portlet.social.model.SocialRequest update(
68          com.liferay.portlet.social.model.SocialRequest socialRequest)
69          throws com.liferay.portal.SystemException {
70          return getPersistence().update(socialRequest);
71      }
72  
73      /**
74       * Add, update, or merge, the entity. This method also calls the model
75       * listeners to trigger the proper events associated with adding, deleting,
76       * or updating an entity.
77       *
78       * @param        socialRequest the entity to add, update, or merge
79       * @param        merge boolean value for whether to merge the entity. The
80       *                default value is false. Setting merge to true is more
81       *                expensive and should only be true when socialRequest is
82       *                transient. See LEP-5473 for a detailed discussion of this
83       *                method.
84       * @return        true if the portlet can be displayed via Ajax
85       */
86      public static com.liferay.portlet.social.model.SocialRequest update(
87          com.liferay.portlet.social.model.SocialRequest socialRequest,
88          boolean merge) throws com.liferay.portal.SystemException {
89          return getPersistence().update(socialRequest, merge);
90      }
91  
92      public static com.liferay.portlet.social.model.SocialRequest updateImpl(
93          com.liferay.portlet.social.model.SocialRequest socialRequest,
94          boolean merge) throws com.liferay.portal.SystemException {
95          return getPersistence().updateImpl(socialRequest, merge);
96      }
97  
98      public static com.liferay.portlet.social.model.SocialRequest findByPrimaryKey(
99          long requestId)
100         throws com.liferay.portal.SystemException,
101             com.liferay.portlet.social.NoSuchRequestException {
102         return getPersistence().findByPrimaryKey(requestId);
103     }
104 
105     public static com.liferay.portlet.social.model.SocialRequest fetchByPrimaryKey(
106         long requestId) throws com.liferay.portal.SystemException {
107         return getPersistence().fetchByPrimaryKey(requestId);
108     }
109 
110     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
111         java.lang.String uuid) throws com.liferay.portal.SystemException {
112         return getPersistence().findByUuid(uuid);
113     }
114 
115     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
116         java.lang.String uuid, int start, int end)
117         throws com.liferay.portal.SystemException {
118         return getPersistence().findByUuid(uuid, start, end);
119     }
120 
121     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
122         java.lang.String uuid, int start, int end,
123         com.liferay.portal.kernel.util.OrderByComparator obc)
124         throws com.liferay.portal.SystemException {
125         return getPersistence().findByUuid(uuid, start, end, obc);
126     }
127 
128     public static com.liferay.portlet.social.model.SocialRequest findByUuid_First(
129         java.lang.String uuid,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException,
132             com.liferay.portlet.social.NoSuchRequestException {
133         return getPersistence().findByUuid_First(uuid, obc);
134     }
135 
136     public static com.liferay.portlet.social.model.SocialRequest findByUuid_Last(
137         java.lang.String uuid,
138         com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.SystemException,
140             com.liferay.portlet.social.NoSuchRequestException {
141         return getPersistence().findByUuid_Last(uuid, obc);
142     }
143 
144     public static com.liferay.portlet.social.model.SocialRequest[] findByUuid_PrevAndNext(
145         long requestId, java.lang.String uuid,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.social.NoSuchRequestException {
149         return getPersistence().findByUuid_PrevAndNext(requestId, uuid, obc);
150     }
151 
152     public static com.liferay.portlet.social.model.SocialRequest findByUUID_G(
153         java.lang.String uuid, long groupId)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.social.NoSuchRequestException {
156         return getPersistence().findByUUID_G(uuid, groupId);
157     }
158 
159     public static com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
160         java.lang.String uuid, long groupId)
161         throws com.liferay.portal.SystemException {
162         return getPersistence().fetchByUUID_G(uuid, groupId);
163     }
164 
165     public static com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
166         java.lang.String uuid, long groupId, boolean retrieveFromCache)
167         throws com.liferay.portal.SystemException {
168         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
169     }
170 
171     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
172         long companyId) throws com.liferay.portal.SystemException {
173         return getPersistence().findByCompanyId(companyId);
174     }
175 
176     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
177         long companyId, int start, int end)
178         throws com.liferay.portal.SystemException {
179         return getPersistence().findByCompanyId(companyId, start, end);
180     }
181 
182     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
183         long companyId, int start, int end,
184         com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.SystemException {
186         return getPersistence().findByCompanyId(companyId, start, end, obc);
187     }
188 
189     public static com.liferay.portlet.social.model.SocialRequest findByCompanyId_First(
190         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.SystemException,
192             com.liferay.portlet.social.NoSuchRequestException {
193         return getPersistence().findByCompanyId_First(companyId, obc);
194     }
195 
196     public static com.liferay.portlet.social.model.SocialRequest findByCompanyId_Last(
197         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException,
199             com.liferay.portlet.social.NoSuchRequestException {
200         return getPersistence().findByCompanyId_Last(companyId, obc);
201     }
202 
203     public static com.liferay.portlet.social.model.SocialRequest[] findByCompanyId_PrevAndNext(
204         long requestId, long companyId,
205         com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.SystemException,
207             com.liferay.portlet.social.NoSuchRequestException {
208         return getPersistence()
209                    .findByCompanyId_PrevAndNext(requestId, companyId, obc);
210     }
211 
212     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
213         long userId) throws com.liferay.portal.SystemException {
214         return getPersistence().findByUserId(userId);
215     }
216 
217     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
218         long userId, int start, int end)
219         throws com.liferay.portal.SystemException {
220         return getPersistence().findByUserId(userId, start, end);
221     }
222 
223     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
224         long userId, int start, int end,
225         com.liferay.portal.kernel.util.OrderByComparator obc)
226         throws com.liferay.portal.SystemException {
227         return getPersistence().findByUserId(userId, start, end, obc);
228     }
229 
230     public static com.liferay.portlet.social.model.SocialRequest findByUserId_First(
231         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException,
233             com.liferay.portlet.social.NoSuchRequestException {
234         return getPersistence().findByUserId_First(userId, obc);
235     }
236 
237     public static com.liferay.portlet.social.model.SocialRequest findByUserId_Last(
238         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
239         throws com.liferay.portal.SystemException,
240             com.liferay.portlet.social.NoSuchRequestException {
241         return getPersistence().findByUserId_Last(userId, obc);
242     }
243 
244     public static com.liferay.portlet.social.model.SocialRequest[] findByUserId_PrevAndNext(
245         long requestId, long userId,
246         com.liferay.portal.kernel.util.OrderByComparator obc)
247         throws com.liferay.portal.SystemException,
248             com.liferay.portlet.social.NoSuchRequestException {
249         return getPersistence().findByUserId_PrevAndNext(requestId, userId, obc);
250     }
251 
252     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
253         long receiverUserId) throws com.liferay.portal.SystemException {
254         return getPersistence().findByReceiverUserId(receiverUserId);
255     }
256 
257     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
258         long receiverUserId, int start, int end)
259         throws com.liferay.portal.SystemException {
260         return getPersistence().findByReceiverUserId(receiverUserId, start, end);
261     }
262 
263     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
264         long receiverUserId, int start, int end,
265         com.liferay.portal.kernel.util.OrderByComparator obc)
266         throws com.liferay.portal.SystemException {
267         return getPersistence()
268                    .findByReceiverUserId(receiverUserId, start, end, obc);
269     }
270 
271     public static com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_First(
272         long receiverUserId,
273         com.liferay.portal.kernel.util.OrderByComparator obc)
274         throws com.liferay.portal.SystemException,
275             com.liferay.portlet.social.NoSuchRequestException {
276         return getPersistence().findByReceiverUserId_First(receiverUserId, obc);
277     }
278 
279     public static com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_Last(
280         long receiverUserId,
281         com.liferay.portal.kernel.util.OrderByComparator obc)
282         throws com.liferay.portal.SystemException,
283             com.liferay.portlet.social.NoSuchRequestException {
284         return getPersistence().findByReceiverUserId_Last(receiverUserId, obc);
285     }
286 
287     public static com.liferay.portlet.social.model.SocialRequest[] findByReceiverUserId_PrevAndNext(
288         long requestId, long receiverUserId,
289         com.liferay.portal.kernel.util.OrderByComparator obc)
290         throws com.liferay.portal.SystemException,
291             com.liferay.portlet.social.NoSuchRequestException {
292         return getPersistence()
293                    .findByReceiverUserId_PrevAndNext(requestId, receiverUserId,
294             obc);
295     }
296 
297     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
298         long userId, int status) throws com.liferay.portal.SystemException {
299         return getPersistence().findByU_S(userId, status);
300     }
301 
302     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
303         long userId, int status, int start, int end)
304         throws com.liferay.portal.SystemException {
305         return getPersistence().findByU_S(userId, status, start, end);
306     }
307 
308     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
309         long userId, int status, int start, int end,
310         com.liferay.portal.kernel.util.OrderByComparator obc)
311         throws com.liferay.portal.SystemException {
312         return getPersistence().findByU_S(userId, status, start, end, obc);
313     }
314 
315     public static com.liferay.portlet.social.model.SocialRequest findByU_S_First(
316         long userId, int status,
317         com.liferay.portal.kernel.util.OrderByComparator obc)
318         throws com.liferay.portal.SystemException,
319             com.liferay.portlet.social.NoSuchRequestException {
320         return getPersistence().findByU_S_First(userId, status, obc);
321     }
322 
323     public static com.liferay.portlet.social.model.SocialRequest findByU_S_Last(
324         long userId, int status,
325         com.liferay.portal.kernel.util.OrderByComparator obc)
326         throws com.liferay.portal.SystemException,
327             com.liferay.portlet.social.NoSuchRequestException {
328         return getPersistence().findByU_S_Last(userId, status, obc);
329     }
330 
331     public static com.liferay.portlet.social.model.SocialRequest[] findByU_S_PrevAndNext(
332         long requestId, long userId, int status,
333         com.liferay.portal.kernel.util.OrderByComparator obc)
334         throws com.liferay.portal.SystemException,
335             com.liferay.portlet.social.NoSuchRequestException {
336         return getPersistence()
337                    .findByU_S_PrevAndNext(requestId, userId, status, obc);
338     }
339 
340     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
341         long receiverUserId, int status)
342         throws com.liferay.portal.SystemException {
343         return getPersistence().findByR_S(receiverUserId, status);
344     }
345 
346     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
347         long receiverUserId, int status, int start, int end)
348         throws com.liferay.portal.SystemException {
349         return getPersistence().findByR_S(receiverUserId, status, start, end);
350     }
351 
352     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
353         long receiverUserId, int status, int start, int end,
354         com.liferay.portal.kernel.util.OrderByComparator obc)
355         throws com.liferay.portal.SystemException {
356         return getPersistence()
357                    .findByR_S(receiverUserId, status, start, end, obc);
358     }
359 
360     public static com.liferay.portlet.social.model.SocialRequest findByR_S_First(
361         long receiverUserId, int status,
362         com.liferay.portal.kernel.util.OrderByComparator obc)
363         throws com.liferay.portal.SystemException,
364             com.liferay.portlet.social.NoSuchRequestException {
365         return getPersistence().findByR_S_First(receiverUserId, status, obc);
366     }
367 
368     public static com.liferay.portlet.social.model.SocialRequest findByR_S_Last(
369         long receiverUserId, int status,
370         com.liferay.portal.kernel.util.OrderByComparator obc)
371         throws com.liferay.portal.SystemException,
372             com.liferay.portlet.social.NoSuchRequestException {
373         return getPersistence().findByR_S_Last(receiverUserId, status, obc);
374     }
375 
376     public static com.liferay.portlet.social.model.SocialRequest[] findByR_S_PrevAndNext(
377         long requestId, long receiverUserId, int status,
378         com.liferay.portal.kernel.util.OrderByComparator obc)
379         throws com.liferay.portal.SystemException,
380             com.liferay.portlet.social.NoSuchRequestException {
381         return getPersistence()
382                    .findByR_S_PrevAndNext(requestId, receiverUserId, status, obc);
383     }
384 
385     public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_R(
386         long userId, long classNameId, long classPK, int type,
387         long receiverUserId)
388         throws com.liferay.portal.SystemException,
389             com.liferay.portlet.social.NoSuchRequestException {
390         return getPersistence()
391                    .findByU_C_C_T_R(userId, classNameId, classPK, type,
392             receiverUserId);
393     }
394 
395     public static com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
396         long userId, long classNameId, long classPK, int type,
397         long receiverUserId) throws com.liferay.portal.SystemException {
398         return getPersistence()
399                    .fetchByU_C_C_T_R(userId, classNameId, classPK, type,
400             receiverUserId);
401     }
402 
403     public static com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
404         long userId, long classNameId, long classPK, int type,
405         long receiverUserId, boolean retrieveFromCache)
406         throws com.liferay.portal.SystemException {
407         return getPersistence()
408                    .fetchByU_C_C_T_R(userId, classNameId, classPK, type,
409             receiverUserId, retrieveFromCache);
410     }
411 
412     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
413         long userId, long classNameId, long classPK, int type, int status)
414         throws com.liferay.portal.SystemException {
415         return getPersistence()
416                    .findByU_C_C_T_S(userId, classNameId, classPK, type, status);
417     }
418 
419     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
420         long userId, long classNameId, long classPK, int type, int status,
421         int start, int end) throws com.liferay.portal.SystemException {
422         return getPersistence()
423                    .findByU_C_C_T_S(userId, classNameId, classPK, type, status,
424             start, end);
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         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
430         throws com.liferay.portal.SystemException {
431         return getPersistence()
432                    .findByU_C_C_T_S(userId, classNameId, classPK, type, status,
433             start, end, obc);
434     }
435 
436     public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_First(
437         long userId, long classNameId, long classPK, int type, int status,
438         com.liferay.portal.kernel.util.OrderByComparator obc)
439         throws com.liferay.portal.SystemException,
440             com.liferay.portlet.social.NoSuchRequestException {
441         return getPersistence()
442                    .findByU_C_C_T_S_First(userId, classNameId, classPK, type,
443             status, obc);
444     }
445 
446     public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_Last(
447         long userId, long classNameId, long classPK, int type, int status,
448         com.liferay.portal.kernel.util.OrderByComparator obc)
449         throws com.liferay.portal.SystemException,
450             com.liferay.portlet.social.NoSuchRequestException {
451         return getPersistence()
452                    .findByU_C_C_T_S_Last(userId, classNameId, classPK, type,
453             status, obc);
454     }
455 
456     public static com.liferay.portlet.social.model.SocialRequest[] findByU_C_C_T_S_PrevAndNext(
457         long requestId, long userId, long classNameId, long classPK, int type,
458         int status, com.liferay.portal.kernel.util.OrderByComparator obc)
459         throws com.liferay.portal.SystemException,
460             com.liferay.portlet.social.NoSuchRequestException {
461         return getPersistence()
462                    .findByU_C_C_T_S_PrevAndNext(requestId, userId, classNameId,
463             classPK, type, status, obc);
464     }
465 
466     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
467         long classNameId, long classPK, int type, long receiverUserId,
468         int status) throws com.liferay.portal.SystemException {
469         return getPersistence()
470                    .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
471             status);
472     }
473 
474     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
475         long classNameId, long classPK, int type, long receiverUserId,
476         int status, int start, int end)
477         throws com.liferay.portal.SystemException {
478         return getPersistence()
479                    .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
480             status, start, end);
481     }
482 
483     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
484         long classNameId, long classPK, int type, long receiverUserId,
485         int status, int start, int end,
486         com.liferay.portal.kernel.util.OrderByComparator obc)
487         throws com.liferay.portal.SystemException {
488         return getPersistence()
489                    .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
490             status, start, end, obc);
491     }
492 
493     public static com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_First(
494         long classNameId, long classPK, int type, long receiverUserId,
495         int status, com.liferay.portal.kernel.util.OrderByComparator obc)
496         throws com.liferay.portal.SystemException,
497             com.liferay.portlet.social.NoSuchRequestException {
498         return getPersistence()
499                    .findByC_C_T_R_S_First(classNameId, classPK, type,
500             receiverUserId, status, obc);
501     }
502 
503     public static com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_Last(
504         long classNameId, long classPK, int type, long receiverUserId,
505         int status, com.liferay.portal.kernel.util.OrderByComparator obc)
506         throws com.liferay.portal.SystemException,
507             com.liferay.portlet.social.NoSuchRequestException {
508         return getPersistence()
509                    .findByC_C_T_R_S_Last(classNameId, classPK, type,
510             receiverUserId, status, obc);
511     }
512 
513     public static com.liferay.portlet.social.model.SocialRequest[] findByC_C_T_R_S_PrevAndNext(
514         long requestId, long classNameId, long classPK, int type,
515         long receiverUserId, int status,
516         com.liferay.portal.kernel.util.OrderByComparator obc)
517         throws com.liferay.portal.SystemException,
518             com.liferay.portlet.social.NoSuchRequestException {
519         return getPersistence()
520                    .findByC_C_T_R_S_PrevAndNext(requestId, classNameId,
521             classPK, type, receiverUserId, status, obc);
522     }
523 
524     public static java.util.List<Object> findWithDynamicQuery(
525         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
526         throws com.liferay.portal.SystemException {
527         return getPersistence().findWithDynamicQuery(dynamicQuery);
528     }
529 
530     public static java.util.List<Object> findWithDynamicQuery(
531         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
532         int end) throws com.liferay.portal.SystemException {
533         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
534     }
535 
536     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll()
537         throws com.liferay.portal.SystemException {
538         return getPersistence().findAll();
539     }
540 
541     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
542         int start, int end) throws com.liferay.portal.SystemException {
543         return getPersistence().findAll(start, end);
544     }
545 
546     public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
547         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
548         throws com.liferay.portal.SystemException {
549         return getPersistence().findAll(start, end, obc);
550     }
551 
552     public static void removeByUuid(java.lang.String uuid)
553         throws com.liferay.portal.SystemException {
554         getPersistence().removeByUuid(uuid);
555     }
556 
557     public static void removeByUUID_G(java.lang.String uuid, long groupId)
558         throws com.liferay.portal.SystemException,
559             com.liferay.portlet.social.NoSuchRequestException {
560         getPersistence().removeByUUID_G(uuid, groupId);
561     }
562 
563     public static void removeByCompanyId(long companyId)
564         throws com.liferay.portal.SystemException {
565         getPersistence().removeByCompanyId(companyId);
566     }
567 
568     public static void removeByUserId(long userId)
569         throws com.liferay.portal.SystemException {
570         getPersistence().removeByUserId(userId);
571     }
572 
573     public static void removeByReceiverUserId(long receiverUserId)
574         throws com.liferay.portal.SystemException {
575         getPersistence().removeByReceiverUserId(receiverUserId);
576     }
577 
578     public static void removeByU_S(long userId, int status)
579         throws com.liferay.portal.SystemException {
580         getPersistence().removeByU_S(userId, status);
581     }
582 
583     public static void removeByR_S(long receiverUserId, int status)
584         throws com.liferay.portal.SystemException {
585         getPersistence().removeByR_S(receiverUserId, status);
586     }
587 
588     public static void removeByU_C_C_T_R(long userId, long classNameId,
589         long classPK, int type, long receiverUserId)
590         throws com.liferay.portal.SystemException,
591             com.liferay.portlet.social.NoSuchRequestException {
592         getPersistence()
593             .removeByU_C_C_T_R(userId, classNameId, classPK, type,
594             receiverUserId);
595     }
596 
597     public static void removeByU_C_C_T_S(long userId, long classNameId,
598         long classPK, int type, int status)
599         throws com.liferay.portal.SystemException {
600         getPersistence()
601             .removeByU_C_C_T_S(userId, classNameId, classPK, type, status);
602     }
603 
604     public static void removeByC_C_T_R_S(long classNameId, long classPK,
605         int type, long receiverUserId, int status)
606         throws com.liferay.portal.SystemException {
607         getPersistence()
608             .removeByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
609             status);
610     }
611 
612     public static void removeAll() throws com.liferay.portal.SystemException {
613         getPersistence().removeAll();
614     }
615 
616     public static int countByUuid(java.lang.String uuid)
617         throws com.liferay.portal.SystemException {
618         return getPersistence().countByUuid(uuid);
619     }
620 
621     public static int countByUUID_G(java.lang.String uuid, long groupId)
622         throws com.liferay.portal.SystemException {
623         return getPersistence().countByUUID_G(uuid, groupId);
624     }
625 
626     public static int countByCompanyId(long companyId)
627         throws com.liferay.portal.SystemException {
628         return getPersistence().countByCompanyId(companyId);
629     }
630 
631     public static int countByUserId(long userId)
632         throws com.liferay.portal.SystemException {
633         return getPersistence().countByUserId(userId);
634     }
635 
636     public static int countByReceiverUserId(long receiverUserId)
637         throws com.liferay.portal.SystemException {
638         return getPersistence().countByReceiverUserId(receiverUserId);
639     }
640 
641     public static int countByU_S(long userId, int status)
642         throws com.liferay.portal.SystemException {
643         return getPersistence().countByU_S(userId, status);
644     }
645 
646     public static int countByR_S(long receiverUserId, int status)
647         throws com.liferay.portal.SystemException {
648         return getPersistence().countByR_S(receiverUserId, status);
649     }
650 
651     public static int countByU_C_C_T_R(long userId, long classNameId,
652         long classPK, int type, long receiverUserId)
653         throws com.liferay.portal.SystemException {
654         return getPersistence()
655                    .countByU_C_C_T_R(userId, classNameId, classPK, type,
656             receiverUserId);
657     }
658 
659     public static int countByU_C_C_T_S(long userId, long classNameId,
660         long classPK, int type, int status)
661         throws com.liferay.portal.SystemException {
662         return getPersistence()
663                    .countByU_C_C_T_S(userId, classNameId, classPK, type, status);
664     }
665 
666     public static int countByC_C_T_R_S(long classNameId, long classPK,
667         int type, long receiverUserId, int status)
668         throws com.liferay.portal.SystemException {
669         return getPersistence()
670                    .countByC_C_T_R_S(classNameId, classPK, type,
671             receiverUserId, status);
672     }
673 
674     public static int countAll() throws com.liferay.portal.SystemException {
675         return getPersistence().countAll();
676     }
677 
678     public static SocialRequestPersistence getPersistence() {
679         return _persistence;
680     }
681 
682     public void setPersistence(SocialRequestPersistence persistence) {
683         _persistence = persistence;
684     }
685 
686     private static SocialRequestPersistence _persistence;
687 }