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