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#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static SocialRelation remove(SocialRelation socialRelation)
66          throws SystemException {
67          return getPersistence().remove(socialRelation);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static SocialRelation update(SocialRelation socialRelation,
74          boolean merge) throws SystemException {
75          return getPersistence().update(socialRelation, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.social.model.SocialRelation socialRelation) {
80          getPersistence().cacheResult(socialRelation);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations) {
85          getPersistence().cacheResult(socialRelations);
86      }
87  
88      public static com.liferay.portlet.social.model.SocialRelation create(
89          long relationId) {
90          return getPersistence().create(relationId);
91      }
92  
93      public static com.liferay.portlet.social.model.SocialRelation remove(
94          long relationId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.social.NoSuchRelationException {
97          return getPersistence().remove(relationId);
98      }
99  
100     public static com.liferay.portlet.social.model.SocialRelation updateImpl(
101         com.liferay.portlet.social.model.SocialRelation socialRelation,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(socialRelation, merge);
105     }
106 
107     public static com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(
108         long relationId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.social.NoSuchRelationException {
111         return getPersistence().findByPrimaryKey(relationId);
112     }
113 
114     public static com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(
115         long relationId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(relationId);
118     }
119 
120     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
121         java.lang.String uuid)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByUuid(uuid);
124     }
125 
126     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
127         java.lang.String uuid, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByUuid(uuid, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
133         java.lang.String uuid, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByUuid(uuid, start, end, obc);
137     }
138 
139     public static com.liferay.portlet.social.model.SocialRelation findByUuid_First(
140         java.lang.String uuid,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.kernel.exception.SystemException,
143             com.liferay.portlet.social.NoSuchRelationException {
144         return getPersistence().findByUuid_First(uuid, obc);
145     }
146 
147     public static com.liferay.portlet.social.model.SocialRelation findByUuid_Last(
148         java.lang.String uuid,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.kernel.exception.SystemException,
151             com.liferay.portlet.social.NoSuchRelationException {
152         return getPersistence().findByUuid_Last(uuid, obc);
153     }
154 
155     public static com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext(
156         long relationId, java.lang.String uuid,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.social.NoSuchRelationException {
160         return getPersistence().findByUuid_PrevAndNext(relationId, uuid, obc);
161     }
162 
163     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
164         long companyId)
165         throws com.liferay.portal.kernel.exception.SystemException {
166         return getPersistence().findByCompanyId(companyId);
167     }
168 
169     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
170         long companyId, int start, int end)
171         throws com.liferay.portal.kernel.exception.SystemException {
172         return getPersistence().findByCompanyId(companyId, start, end);
173     }
174 
175     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
176         long companyId, int start, int end,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence().findByCompanyId(companyId, start, end, obc);
180     }
181 
182     public static com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(
183         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.kernel.exception.SystemException,
185             com.liferay.portlet.social.NoSuchRelationException {
186         return getPersistence().findByCompanyId_First(companyId, obc);
187     }
188 
189     public static com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(
190         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.kernel.exception.SystemException,
192             com.liferay.portlet.social.NoSuchRelationException {
193         return getPersistence().findByCompanyId_Last(companyId, obc);
194     }
195 
196     public static com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(
197         long relationId, long companyId,
198         com.liferay.portal.kernel.util.OrderByComparator obc)
199         throws com.liferay.portal.kernel.exception.SystemException,
200             com.liferay.portlet.social.NoSuchRelationException {
201         return getPersistence()
202                    .findByCompanyId_PrevAndNext(relationId, companyId, obc);
203     }
204 
205     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
206         long userId1)
207         throws com.liferay.portal.kernel.exception.SystemException {
208         return getPersistence().findByUserId1(userId1);
209     }
210 
211     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
212         long userId1, int start, int end)
213         throws com.liferay.portal.kernel.exception.SystemException {
214         return getPersistence().findByUserId1(userId1, start, end);
215     }
216 
217     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
218         long userId1, int start, int end,
219         com.liferay.portal.kernel.util.OrderByComparator obc)
220         throws com.liferay.portal.kernel.exception.SystemException {
221         return getPersistence().findByUserId1(userId1, start, end, obc);
222     }
223 
224     public static com.liferay.portlet.social.model.SocialRelation findByUserId1_First(
225         long userId1, com.liferay.portal.kernel.util.OrderByComparator obc)
226         throws com.liferay.portal.kernel.exception.SystemException,
227             com.liferay.portlet.social.NoSuchRelationException {
228         return getPersistence().findByUserId1_First(userId1, obc);
229     }
230 
231     public static com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(
232         long userId1, com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.kernel.exception.SystemException,
234             com.liferay.portlet.social.NoSuchRelationException {
235         return getPersistence().findByUserId1_Last(userId1, obc);
236     }
237 
238     public static com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(
239         long relationId, long userId1,
240         com.liferay.portal.kernel.util.OrderByComparator obc)
241         throws com.liferay.portal.kernel.exception.SystemException,
242             com.liferay.portlet.social.NoSuchRelationException {
243         return getPersistence()
244                    .findByUserId1_PrevAndNext(relationId, userId1, obc);
245     }
246 
247     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
248         long userId2)
249         throws com.liferay.portal.kernel.exception.SystemException {
250         return getPersistence().findByUserId2(userId2);
251     }
252 
253     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
254         long userId2, int start, int end)
255         throws com.liferay.portal.kernel.exception.SystemException {
256         return getPersistence().findByUserId2(userId2, start, end);
257     }
258 
259     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
260         long userId2, int start, int end,
261         com.liferay.portal.kernel.util.OrderByComparator obc)
262         throws com.liferay.portal.kernel.exception.SystemException {
263         return getPersistence().findByUserId2(userId2, start, end, obc);
264     }
265 
266     public static com.liferay.portlet.social.model.SocialRelation findByUserId2_First(
267         long userId2, com.liferay.portal.kernel.util.OrderByComparator obc)
268         throws com.liferay.portal.kernel.exception.SystemException,
269             com.liferay.portlet.social.NoSuchRelationException {
270         return getPersistence().findByUserId2_First(userId2, obc);
271     }
272 
273     public static com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(
274         long userId2, com.liferay.portal.kernel.util.OrderByComparator obc)
275         throws com.liferay.portal.kernel.exception.SystemException,
276             com.liferay.portlet.social.NoSuchRelationException {
277         return getPersistence().findByUserId2_Last(userId2, obc);
278     }
279 
280     public static com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(
281         long relationId, long userId2,
282         com.liferay.portal.kernel.util.OrderByComparator obc)
283         throws com.liferay.portal.kernel.exception.SystemException,
284             com.liferay.portlet.social.NoSuchRelationException {
285         return getPersistence()
286                    .findByUserId2_PrevAndNext(relationId, userId2, obc);
287     }
288 
289     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
290         int type) throws com.liferay.portal.kernel.exception.SystemException {
291         return getPersistence().findByType(type);
292     }
293 
294     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
295         int type, int start, int end)
296         throws com.liferay.portal.kernel.exception.SystemException {
297         return getPersistence().findByType(type, start, end);
298     }
299 
300     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
301         int type, int start, int end,
302         com.liferay.portal.kernel.util.OrderByComparator obc)
303         throws com.liferay.portal.kernel.exception.SystemException {
304         return getPersistence().findByType(type, start, end, obc);
305     }
306 
307     public static com.liferay.portlet.social.model.SocialRelation findByType_First(
308         int type, com.liferay.portal.kernel.util.OrderByComparator obc)
309         throws com.liferay.portal.kernel.exception.SystemException,
310             com.liferay.portlet.social.NoSuchRelationException {
311         return getPersistence().findByType_First(type, obc);
312     }
313 
314     public static com.liferay.portlet.social.model.SocialRelation findByType_Last(
315         int type, com.liferay.portal.kernel.util.OrderByComparator obc)
316         throws com.liferay.portal.kernel.exception.SystemException,
317             com.liferay.portlet.social.NoSuchRelationException {
318         return getPersistence().findByType_Last(type, obc);
319     }
320 
321     public static com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext(
322         long relationId, int type,
323         com.liferay.portal.kernel.util.OrderByComparator obc)
324         throws com.liferay.portal.kernel.exception.SystemException,
325             com.liferay.portlet.social.NoSuchRelationException {
326         return getPersistence().findByType_PrevAndNext(relationId, type, obc);
327     }
328 
329     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
330         long companyId, int type)
331         throws com.liferay.portal.kernel.exception.SystemException {
332         return getPersistence().findByC_T(companyId, type);
333     }
334 
335     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
336         long companyId, int type, int start, int end)
337         throws com.liferay.portal.kernel.exception.SystemException {
338         return getPersistence().findByC_T(companyId, type, start, end);
339     }
340 
341     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
342         long companyId, int type, int start, int end,
343         com.liferay.portal.kernel.util.OrderByComparator obc)
344         throws com.liferay.portal.kernel.exception.SystemException {
345         return getPersistence().findByC_T(companyId, type, start, end, obc);
346     }
347 
348     public static com.liferay.portlet.social.model.SocialRelation findByC_T_First(
349         long companyId, int type,
350         com.liferay.portal.kernel.util.OrderByComparator obc)
351         throws com.liferay.portal.kernel.exception.SystemException,
352             com.liferay.portlet.social.NoSuchRelationException {
353         return getPersistence().findByC_T_First(companyId, type, obc);
354     }
355 
356     public static com.liferay.portlet.social.model.SocialRelation findByC_T_Last(
357         long companyId, int type,
358         com.liferay.portal.kernel.util.OrderByComparator obc)
359         throws com.liferay.portal.kernel.exception.SystemException,
360             com.liferay.portlet.social.NoSuchRelationException {
361         return getPersistence().findByC_T_Last(companyId, type, obc);
362     }
363 
364     public static com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext(
365         long relationId, long companyId, int type,
366         com.liferay.portal.kernel.util.OrderByComparator obc)
367         throws com.liferay.portal.kernel.exception.SystemException,
368             com.liferay.portlet.social.NoSuchRelationException {
369         return getPersistence()
370                    .findByC_T_PrevAndNext(relationId, companyId, type, obc);
371     }
372 
373     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
374         long userId1, int type)
375         throws com.liferay.portal.kernel.exception.SystemException {
376         return getPersistence().findByU1_T(userId1, type);
377     }
378 
379     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
380         long userId1, int type, int start, int end)
381         throws com.liferay.portal.kernel.exception.SystemException {
382         return getPersistence().findByU1_T(userId1, type, start, end);
383     }
384 
385     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
386         long userId1, int type, int start, int end,
387         com.liferay.portal.kernel.util.OrderByComparator obc)
388         throws com.liferay.portal.kernel.exception.SystemException {
389         return getPersistence().findByU1_T(userId1, type, start, end, obc);
390     }
391 
392     public static com.liferay.portlet.social.model.SocialRelation findByU1_T_First(
393         long userId1, int type,
394         com.liferay.portal.kernel.util.OrderByComparator obc)
395         throws com.liferay.portal.kernel.exception.SystemException,
396             com.liferay.portlet.social.NoSuchRelationException {
397         return getPersistence().findByU1_T_First(userId1, type, obc);
398     }
399 
400     public static com.liferay.portlet.social.model.SocialRelation findByU1_T_Last(
401         long userId1, int type,
402         com.liferay.portal.kernel.util.OrderByComparator obc)
403         throws com.liferay.portal.kernel.exception.SystemException,
404             com.liferay.portlet.social.NoSuchRelationException {
405         return getPersistence().findByU1_T_Last(userId1, type, obc);
406     }
407 
408     public static com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext(
409         long relationId, long userId1, int type,
410         com.liferay.portal.kernel.util.OrderByComparator obc)
411         throws com.liferay.portal.kernel.exception.SystemException,
412             com.liferay.portlet.social.NoSuchRelationException {
413         return getPersistence()
414                    .findByU1_T_PrevAndNext(relationId, userId1, type, obc);
415     }
416 
417     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
418         long userId2, int type)
419         throws com.liferay.portal.kernel.exception.SystemException {
420         return getPersistence().findByU2_T(userId2, type);
421     }
422 
423     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
424         long userId2, int type, int start, int end)
425         throws com.liferay.portal.kernel.exception.SystemException {
426         return getPersistence().findByU2_T(userId2, type, start, end);
427     }
428 
429     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
430         long userId2, int type, int start, int end,
431         com.liferay.portal.kernel.util.OrderByComparator obc)
432         throws com.liferay.portal.kernel.exception.SystemException {
433         return getPersistence().findByU2_T(userId2, type, start, end, obc);
434     }
435 
436     public static com.liferay.portlet.social.model.SocialRelation findByU2_T_First(
437         long userId2, int type,
438         com.liferay.portal.kernel.util.OrderByComparator obc)
439         throws com.liferay.portal.kernel.exception.SystemException,
440             com.liferay.portlet.social.NoSuchRelationException {
441         return getPersistence().findByU2_T_First(userId2, type, obc);
442     }
443 
444     public static com.liferay.portlet.social.model.SocialRelation findByU2_T_Last(
445         long userId2, int type,
446         com.liferay.portal.kernel.util.OrderByComparator obc)
447         throws com.liferay.portal.kernel.exception.SystemException,
448             com.liferay.portlet.social.NoSuchRelationException {
449         return getPersistence().findByU2_T_Last(userId2, type, obc);
450     }
451 
452     public static com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext(
453         long relationId, long userId2, int type,
454         com.liferay.portal.kernel.util.OrderByComparator obc)
455         throws com.liferay.portal.kernel.exception.SystemException,
456             com.liferay.portlet.social.NoSuchRelationException {
457         return getPersistence()
458                    .findByU2_T_PrevAndNext(relationId, userId2, type, obc);
459     }
460 
461     public static com.liferay.portlet.social.model.SocialRelation findByU1_U2_T(
462         long userId1, long userId2, int type)
463         throws com.liferay.portal.kernel.exception.SystemException,
464             com.liferay.portlet.social.NoSuchRelationException {
465         return getPersistence().findByU1_U2_T(userId1, userId2, type);
466     }
467 
468     public static com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
469         long userId1, long userId2, int type)
470         throws com.liferay.portal.kernel.exception.SystemException {
471         return getPersistence().fetchByU1_U2_T(userId1, userId2, type);
472     }
473 
474     public static com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
475         long userId1, long userId2, int type, boolean retrieveFromCache)
476         throws com.liferay.portal.kernel.exception.SystemException {
477         return getPersistence()
478                    .fetchByU1_U2_T(userId1, userId2, type, retrieveFromCache);
479     }
480 
481     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll()
482         throws com.liferay.portal.kernel.exception.SystemException {
483         return getPersistence().findAll();
484     }
485 
486     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
487         int start, int end)
488         throws com.liferay.portal.kernel.exception.SystemException {
489         return getPersistence().findAll(start, end);
490     }
491 
492     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
493         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
494         throws com.liferay.portal.kernel.exception.SystemException {
495         return getPersistence().findAll(start, end, obc);
496     }
497 
498     public static void removeByUuid(java.lang.String uuid)
499         throws com.liferay.portal.kernel.exception.SystemException {
500         getPersistence().removeByUuid(uuid);
501     }
502 
503     public static void removeByCompanyId(long companyId)
504         throws com.liferay.portal.kernel.exception.SystemException {
505         getPersistence().removeByCompanyId(companyId);
506     }
507 
508     public static void removeByUserId1(long userId1)
509         throws com.liferay.portal.kernel.exception.SystemException {
510         getPersistence().removeByUserId1(userId1);
511     }
512 
513     public static void removeByUserId2(long userId2)
514         throws com.liferay.portal.kernel.exception.SystemException {
515         getPersistence().removeByUserId2(userId2);
516     }
517 
518     public static void removeByType(int type)
519         throws com.liferay.portal.kernel.exception.SystemException {
520         getPersistence().removeByType(type);
521     }
522 
523     public static void removeByC_T(long companyId, int type)
524         throws com.liferay.portal.kernel.exception.SystemException {
525         getPersistence().removeByC_T(companyId, type);
526     }
527 
528     public static void removeByU1_T(long userId1, int type)
529         throws com.liferay.portal.kernel.exception.SystemException {
530         getPersistence().removeByU1_T(userId1, type);
531     }
532 
533     public static void removeByU2_T(long userId2, int type)
534         throws com.liferay.portal.kernel.exception.SystemException {
535         getPersistence().removeByU2_T(userId2, type);
536     }
537 
538     public static void removeByU1_U2_T(long userId1, long userId2, int type)
539         throws com.liferay.portal.kernel.exception.SystemException,
540             com.liferay.portlet.social.NoSuchRelationException {
541         getPersistence().removeByU1_U2_T(userId1, userId2, type);
542     }
543 
544     public static void removeAll()
545         throws com.liferay.portal.kernel.exception.SystemException {
546         getPersistence().removeAll();
547     }
548 
549     public static int countByUuid(java.lang.String uuid)
550         throws com.liferay.portal.kernel.exception.SystemException {
551         return getPersistence().countByUuid(uuid);
552     }
553 
554     public static int countByCompanyId(long companyId)
555         throws com.liferay.portal.kernel.exception.SystemException {
556         return getPersistence().countByCompanyId(companyId);
557     }
558 
559     public static int countByUserId1(long userId1)
560         throws com.liferay.portal.kernel.exception.SystemException {
561         return getPersistence().countByUserId1(userId1);
562     }
563 
564     public static int countByUserId2(long userId2)
565         throws com.liferay.portal.kernel.exception.SystemException {
566         return getPersistence().countByUserId2(userId2);
567     }
568 
569     public static int countByType(int type)
570         throws com.liferay.portal.kernel.exception.SystemException {
571         return getPersistence().countByType(type);
572     }
573 
574     public static int countByC_T(long companyId, int type)
575         throws com.liferay.portal.kernel.exception.SystemException {
576         return getPersistence().countByC_T(companyId, type);
577     }
578 
579     public static int countByU1_T(long userId1, int type)
580         throws com.liferay.portal.kernel.exception.SystemException {
581         return getPersistence().countByU1_T(userId1, type);
582     }
583 
584     public static int countByU2_T(long userId2, int type)
585         throws com.liferay.portal.kernel.exception.SystemException {
586         return getPersistence().countByU2_T(userId2, type);
587     }
588 
589     public static int countByU1_U2_T(long userId1, long userId2, int type)
590         throws com.liferay.portal.kernel.exception.SystemException {
591         return getPersistence().countByU1_U2_T(userId1, userId2, type);
592     }
593 
594     public static int countAll()
595         throws com.liferay.portal.kernel.exception.SystemException {
596         return getPersistence().countAll();
597     }
598 
599     public static SocialRelationPersistence getPersistence() {
600         if (_persistence == null) {
601             _persistence = (SocialRelationPersistence)PortalBeanLocatorUtil.locate(SocialRelationPersistence.class.getName());
602         }
603 
604         return _persistence;
605     }
606 
607     public void setPersistence(SocialRelationPersistence persistence) {
608         _persistence = persistence;
609     }
610 
611     private static SocialRelationPersistence _persistence;
612 }