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