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