1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.social.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.social.model.SocialRelation;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="SocialRelationUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       SocialRelationPersistence
35   * @see       SocialRelationPersistenceImpl
36   * @generated
37   */
38  public class SocialRelationUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(SocialRelation)
48       */
49      public static void clearCache(SocialRelation socialRelation) {
50          getPersistence().clearCache(socialRelation);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<SocialRelation> findWithDynamicQuery(
65          DynamicQuery dynamicQuery) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<SocialRelation> findWithDynamicQuery(
73          DynamicQuery dynamicQuery, int start, int end)
74          throws SystemException {
75          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
80       */
81      public static SocialRelation remove(SocialRelation socialRelation)
82          throws SystemException {
83          return getPersistence().remove(socialRelation);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static SocialRelation update(SocialRelation socialRelation,
90          boolean merge) throws SystemException {
91          return getPersistence().update(socialRelation, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portlet.social.model.SocialRelation socialRelation) {
96          getPersistence().cacheResult(socialRelation);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations) {
101         getPersistence().cacheResult(socialRelations);
102     }
103 
104     public static com.liferay.portlet.social.model.SocialRelation create(
105         long relationId) {
106         return getPersistence().create(relationId);
107     }
108 
109     public static com.liferay.portlet.social.model.SocialRelation remove(
110         long relationId)
111         throws com.liferay.portal.kernel.exception.SystemException,
112             com.liferay.portlet.social.NoSuchRelationException {
113         return getPersistence().remove(relationId);
114     }
115 
116     public static com.liferay.portlet.social.model.SocialRelation updateImpl(
117         com.liferay.portlet.social.model.SocialRelation socialRelation,
118         boolean merge)
119         throws com.liferay.portal.kernel.exception.SystemException {
120         return getPersistence().updateImpl(socialRelation, merge);
121     }
122 
123     public static com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(
124         long relationId)
125         throws com.liferay.portal.kernel.exception.SystemException,
126             com.liferay.portlet.social.NoSuchRelationException {
127         return getPersistence().findByPrimaryKey(relationId);
128     }
129 
130     public static com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(
131         long relationId)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().fetchByPrimaryKey(relationId);
134     }
135 
136     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
137         java.lang.String uuid)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence().findByUuid(uuid);
140     }
141 
142     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
143         java.lang.String uuid, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence().findByUuid(uuid, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
149         java.lang.String uuid, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
153     }
154 
155     public static com.liferay.portlet.social.model.SocialRelation findByUuid_First(
156         java.lang.String uuid,
157         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.social.NoSuchRelationException {
160         return getPersistence().findByUuid_First(uuid, orderByComparator);
161     }
162 
163     public static com.liferay.portlet.social.model.SocialRelation findByUuid_Last(
164         java.lang.String uuid,
165         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166         throws com.liferay.portal.kernel.exception.SystemException,
167             com.liferay.portlet.social.NoSuchRelationException {
168         return getPersistence().findByUuid_Last(uuid, orderByComparator);
169     }
170 
171     public static com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext(
172         long relationId, java.lang.String uuid,
173         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174         throws com.liferay.portal.kernel.exception.SystemException,
175             com.liferay.portlet.social.NoSuchRelationException {
176         return getPersistence()
177                    .findByUuid_PrevAndNext(relationId, uuid, orderByComparator);
178     }
179 
180     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
181         long companyId)
182         throws com.liferay.portal.kernel.exception.SystemException {
183         return getPersistence().findByCompanyId(companyId);
184     }
185 
186     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
187         long companyId, int start, int end)
188         throws com.liferay.portal.kernel.exception.SystemException {
189         return getPersistence().findByCompanyId(companyId, start, end);
190     }
191 
192     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
193         long companyId, int start, int end,
194         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195         throws com.liferay.portal.kernel.exception.SystemException {
196         return getPersistence()
197                    .findByCompanyId(companyId, start, end, orderByComparator);
198     }
199 
200     public static com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(
201         long companyId,
202         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203         throws com.liferay.portal.kernel.exception.SystemException,
204             com.liferay.portlet.social.NoSuchRelationException {
205         return getPersistence()
206                    .findByCompanyId_First(companyId, orderByComparator);
207     }
208 
209     public static com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(
210         long companyId,
211         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212         throws com.liferay.portal.kernel.exception.SystemException,
213             com.liferay.portlet.social.NoSuchRelationException {
214         return getPersistence()
215                    .findByCompanyId_Last(companyId, orderByComparator);
216     }
217 
218     public static com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(
219         long relationId, long companyId,
220         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221         throws com.liferay.portal.kernel.exception.SystemException,
222             com.liferay.portlet.social.NoSuchRelationException {
223         return getPersistence()
224                    .findByCompanyId_PrevAndNext(relationId, companyId,
225             orderByComparator);
226     }
227 
228     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
229         long userId1)
230         throws com.liferay.portal.kernel.exception.SystemException {
231         return getPersistence().findByUserId1(userId1);
232     }
233 
234     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
235         long userId1, int start, int end)
236         throws com.liferay.portal.kernel.exception.SystemException {
237         return getPersistence().findByUserId1(userId1, start, end);
238     }
239 
240     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
241         long userId1, int start, int end,
242         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243         throws com.liferay.portal.kernel.exception.SystemException {
244         return getPersistence()
245                    .findByUserId1(userId1, start, end, orderByComparator);
246     }
247 
248     public static com.liferay.portlet.social.model.SocialRelation findByUserId1_First(
249         long userId1,
250         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251         throws com.liferay.portal.kernel.exception.SystemException,
252             com.liferay.portlet.social.NoSuchRelationException {
253         return getPersistence().findByUserId1_First(userId1, orderByComparator);
254     }
255 
256     public static com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(
257         long userId1,
258         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259         throws com.liferay.portal.kernel.exception.SystemException,
260             com.liferay.portlet.social.NoSuchRelationException {
261         return getPersistence().findByUserId1_Last(userId1, orderByComparator);
262     }
263 
264     public static com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(
265         long relationId, long userId1,
266         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
267         throws com.liferay.portal.kernel.exception.SystemException,
268             com.liferay.portlet.social.NoSuchRelationException {
269         return getPersistence()
270                    .findByUserId1_PrevAndNext(relationId, userId1,
271             orderByComparator);
272     }
273 
274     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
275         long userId2)
276         throws com.liferay.portal.kernel.exception.SystemException {
277         return getPersistence().findByUserId2(userId2);
278     }
279 
280     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
281         long userId2, int start, int end)
282         throws com.liferay.portal.kernel.exception.SystemException {
283         return getPersistence().findByUserId2(userId2, start, end);
284     }
285 
286     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
287         long userId2, int start, int end,
288         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289         throws com.liferay.portal.kernel.exception.SystemException {
290         return getPersistence()
291                    .findByUserId2(userId2, start, end, orderByComparator);
292     }
293 
294     public static com.liferay.portlet.social.model.SocialRelation findByUserId2_First(
295         long userId2,
296         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297         throws com.liferay.portal.kernel.exception.SystemException,
298             com.liferay.portlet.social.NoSuchRelationException {
299         return getPersistence().findByUserId2_First(userId2, orderByComparator);
300     }
301 
302     public static com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(
303         long userId2,
304         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305         throws com.liferay.portal.kernel.exception.SystemException,
306             com.liferay.portlet.social.NoSuchRelationException {
307         return getPersistence().findByUserId2_Last(userId2, orderByComparator);
308     }
309 
310     public static com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(
311         long relationId, long userId2,
312         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
313         throws com.liferay.portal.kernel.exception.SystemException,
314             com.liferay.portlet.social.NoSuchRelationException {
315         return getPersistence()
316                    .findByUserId2_PrevAndNext(relationId, userId2,
317             orderByComparator);
318     }
319 
320     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
321         int type) throws com.liferay.portal.kernel.exception.SystemException {
322         return getPersistence().findByType(type);
323     }
324 
325     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
326         int type, int start, int end)
327         throws com.liferay.portal.kernel.exception.SystemException {
328         return getPersistence().findByType(type, start, end);
329     }
330 
331     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
332         int type, int start, int end,
333         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
334         throws com.liferay.portal.kernel.exception.SystemException {
335         return getPersistence().findByType(type, start, end, orderByComparator);
336     }
337 
338     public static com.liferay.portlet.social.model.SocialRelation findByType_First(
339         int type,
340         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
341         throws com.liferay.portal.kernel.exception.SystemException,
342             com.liferay.portlet.social.NoSuchRelationException {
343         return getPersistence().findByType_First(type, orderByComparator);
344     }
345 
346     public static com.liferay.portlet.social.model.SocialRelation findByType_Last(
347         int type,
348         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
349         throws com.liferay.portal.kernel.exception.SystemException,
350             com.liferay.portlet.social.NoSuchRelationException {
351         return getPersistence().findByType_Last(type, orderByComparator);
352     }
353 
354     public static com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext(
355         long relationId, int type,
356         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357         throws com.liferay.portal.kernel.exception.SystemException,
358             com.liferay.portlet.social.NoSuchRelationException {
359         return getPersistence()
360                    .findByType_PrevAndNext(relationId, type, orderByComparator);
361     }
362 
363     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
364         long companyId, int type)
365         throws com.liferay.portal.kernel.exception.SystemException {
366         return getPersistence().findByC_T(companyId, type);
367     }
368 
369     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
370         long companyId, int type, int start, int end)
371         throws com.liferay.portal.kernel.exception.SystemException {
372         return getPersistence().findByC_T(companyId, type, start, end);
373     }
374 
375     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
376         long companyId, int type, int start, int end,
377         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
378         throws com.liferay.portal.kernel.exception.SystemException {
379         return getPersistence()
380                    .findByC_T(companyId, type, start, end, orderByComparator);
381     }
382 
383     public static com.liferay.portlet.social.model.SocialRelation findByC_T_First(
384         long companyId, int type,
385         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
386         throws com.liferay.portal.kernel.exception.SystemException,
387             com.liferay.portlet.social.NoSuchRelationException {
388         return getPersistence()
389                    .findByC_T_First(companyId, type, orderByComparator);
390     }
391 
392     public static com.liferay.portlet.social.model.SocialRelation findByC_T_Last(
393         long companyId, int type,
394         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
395         throws com.liferay.portal.kernel.exception.SystemException,
396             com.liferay.portlet.social.NoSuchRelationException {
397         return getPersistence()
398                    .findByC_T_Last(companyId, type, orderByComparator);
399     }
400 
401     public static com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext(
402         long relationId, long companyId, int type,
403         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
404         throws com.liferay.portal.kernel.exception.SystemException,
405             com.liferay.portlet.social.NoSuchRelationException {
406         return getPersistence()
407                    .findByC_T_PrevAndNext(relationId, companyId, type,
408             orderByComparator);
409     }
410 
411     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
412         long userId1, int type)
413         throws com.liferay.portal.kernel.exception.SystemException {
414         return getPersistence().findByU1_T(userId1, type);
415     }
416 
417     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
418         long userId1, int type, int start, int end)
419         throws com.liferay.portal.kernel.exception.SystemException {
420         return getPersistence().findByU1_T(userId1, type, start, end);
421     }
422 
423     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
424         long userId1, int type, int start, int end,
425         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
426         throws com.liferay.portal.kernel.exception.SystemException {
427         return getPersistence()
428                    .findByU1_T(userId1, type, start, end, orderByComparator);
429     }
430 
431     public static com.liferay.portlet.social.model.SocialRelation findByU1_T_First(
432         long userId1, int type,
433         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
434         throws com.liferay.portal.kernel.exception.SystemException,
435             com.liferay.portlet.social.NoSuchRelationException {
436         return getPersistence()
437                    .findByU1_T_First(userId1, type, orderByComparator);
438     }
439 
440     public static com.liferay.portlet.social.model.SocialRelation findByU1_T_Last(
441         long userId1, int type,
442         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
443         throws com.liferay.portal.kernel.exception.SystemException,
444             com.liferay.portlet.social.NoSuchRelationException {
445         return getPersistence().findByU1_T_Last(userId1, type, orderByComparator);
446     }
447 
448     public static com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext(
449         long relationId, long userId1, int type,
450         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
451         throws com.liferay.portal.kernel.exception.SystemException,
452             com.liferay.portlet.social.NoSuchRelationException {
453         return getPersistence()
454                    .findByU1_T_PrevAndNext(relationId, userId1, type,
455             orderByComparator);
456     }
457 
458     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
459         long userId2, int type)
460         throws com.liferay.portal.kernel.exception.SystemException {
461         return getPersistence().findByU2_T(userId2, type);
462     }
463 
464     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
465         long userId2, int type, int start, int end)
466         throws com.liferay.portal.kernel.exception.SystemException {
467         return getPersistence().findByU2_T(userId2, type, start, end);
468     }
469 
470     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
471         long userId2, int type, int start, int end,
472         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
473         throws com.liferay.portal.kernel.exception.SystemException {
474         return getPersistence()
475                    .findByU2_T(userId2, type, start, end, orderByComparator);
476     }
477 
478     public static com.liferay.portlet.social.model.SocialRelation findByU2_T_First(
479         long userId2, int type,
480         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
481         throws com.liferay.portal.kernel.exception.SystemException,
482             com.liferay.portlet.social.NoSuchRelationException {
483         return getPersistence()
484                    .findByU2_T_First(userId2, type, orderByComparator);
485     }
486 
487     public static com.liferay.portlet.social.model.SocialRelation findByU2_T_Last(
488         long userId2, int type,
489         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
490         throws com.liferay.portal.kernel.exception.SystemException,
491             com.liferay.portlet.social.NoSuchRelationException {
492         return getPersistence().findByU2_T_Last(userId2, type, orderByComparator);
493     }
494 
495     public static com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext(
496         long relationId, long userId2, int type,
497         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
498         throws com.liferay.portal.kernel.exception.SystemException,
499             com.liferay.portlet.social.NoSuchRelationException {
500         return getPersistence()
501                    .findByU2_T_PrevAndNext(relationId, userId2, type,
502             orderByComparator);
503     }
504 
505     public static com.liferay.portlet.social.model.SocialRelation findByU1_U2_T(
506         long userId1, long userId2, int type)
507         throws com.liferay.portal.kernel.exception.SystemException,
508             com.liferay.portlet.social.NoSuchRelationException {
509         return getPersistence().findByU1_U2_T(userId1, userId2, type);
510     }
511 
512     public static com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
513         long userId1, long userId2, int type)
514         throws com.liferay.portal.kernel.exception.SystemException {
515         return getPersistence().fetchByU1_U2_T(userId1, userId2, type);
516     }
517 
518     public static com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
519         long userId1, long userId2, int type, boolean retrieveFromCache)
520         throws com.liferay.portal.kernel.exception.SystemException {
521         return getPersistence()
522                    .fetchByU1_U2_T(userId1, userId2, type, retrieveFromCache);
523     }
524 
525     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll()
526         throws com.liferay.portal.kernel.exception.SystemException {
527         return getPersistence().findAll();
528     }
529 
530     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
531         int start, int end)
532         throws com.liferay.portal.kernel.exception.SystemException {
533         return getPersistence().findAll(start, end);
534     }
535 
536     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
537         int start, int end,
538         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
539         throws com.liferay.portal.kernel.exception.SystemException {
540         return getPersistence().findAll(start, end, orderByComparator);
541     }
542 
543     public static void removeByUuid(java.lang.String uuid)
544         throws com.liferay.portal.kernel.exception.SystemException {
545         getPersistence().removeByUuid(uuid);
546     }
547 
548     public static void removeByCompanyId(long companyId)
549         throws com.liferay.portal.kernel.exception.SystemException {
550         getPersistence().removeByCompanyId(companyId);
551     }
552 
553     public static void removeByUserId1(long userId1)
554         throws com.liferay.portal.kernel.exception.SystemException {
555         getPersistence().removeByUserId1(userId1);
556     }
557 
558     public static void removeByUserId2(long userId2)
559         throws com.liferay.portal.kernel.exception.SystemException {
560         getPersistence().removeByUserId2(userId2);
561     }
562 
563     public static void removeByType(int type)
564         throws com.liferay.portal.kernel.exception.SystemException {
565         getPersistence().removeByType(type);
566     }
567 
568     public static void removeByC_T(long companyId, int type)
569         throws com.liferay.portal.kernel.exception.SystemException {
570         getPersistence().removeByC_T(companyId, type);
571     }
572 
573     public static void removeByU1_T(long userId1, int type)
574         throws com.liferay.portal.kernel.exception.SystemException {
575         getPersistence().removeByU1_T(userId1, type);
576     }
577 
578     public static void removeByU2_T(long userId2, int type)
579         throws com.liferay.portal.kernel.exception.SystemException {
580         getPersistence().removeByU2_T(userId2, type);
581     }
582 
583     public static void removeByU1_U2_T(long userId1, long userId2, int type)
584         throws com.liferay.portal.kernel.exception.SystemException,
585             com.liferay.portlet.social.NoSuchRelationException {
586         getPersistence().removeByU1_U2_T(userId1, userId2, type);
587     }
588 
589     public static void removeAll()
590         throws com.liferay.portal.kernel.exception.SystemException {
591         getPersistence().removeAll();
592     }
593 
594     public static int countByUuid(java.lang.String uuid)
595         throws com.liferay.portal.kernel.exception.SystemException {
596         return getPersistence().countByUuid(uuid);
597     }
598 
599     public static int countByCompanyId(long companyId)
600         throws com.liferay.portal.kernel.exception.SystemException {
601         return getPersistence().countByCompanyId(companyId);
602     }
603 
604     public static int countByUserId1(long userId1)
605         throws com.liferay.portal.kernel.exception.SystemException {
606         return getPersistence().countByUserId1(userId1);
607     }
608 
609     public static int countByUserId2(long userId2)
610         throws com.liferay.portal.kernel.exception.SystemException {
611         return getPersistence().countByUserId2(userId2);
612     }
613 
614     public static int countByType(int type)
615         throws com.liferay.portal.kernel.exception.SystemException {
616         return getPersistence().countByType(type);
617     }
618 
619     public static int countByC_T(long companyId, int type)
620         throws com.liferay.portal.kernel.exception.SystemException {
621         return getPersistence().countByC_T(companyId, type);
622     }
623 
624     public static int countByU1_T(long userId1, int type)
625         throws com.liferay.portal.kernel.exception.SystemException {
626         return getPersistence().countByU1_T(userId1, type);
627     }
628 
629     public static int countByU2_T(long userId2, int type)
630         throws com.liferay.portal.kernel.exception.SystemException {
631         return getPersistence().countByU2_T(userId2, type);
632     }
633 
634     public static int countByU1_U2_T(long userId1, long userId2, int type)
635         throws com.liferay.portal.kernel.exception.SystemException {
636         return getPersistence().countByU1_U2_T(userId1, userId2, type);
637     }
638 
639     public static int countAll()
640         throws com.liferay.portal.kernel.exception.SystemException {
641         return getPersistence().countAll();
642     }
643 
644     public static SocialRelationPersistence getPersistence() {
645         if (_persistence == null) {
646             _persistence = (SocialRelationPersistence)PortalBeanLocatorUtil.locate(SocialRelationPersistence.class.getName());
647         }
648 
649         return _persistence;
650     }
651 
652     public void setPersistence(SocialRelationPersistence persistence) {
653         _persistence = persistence;
654     }
655 
656     private static SocialRelationPersistence _persistence;
657 }