1
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
38 public class SocialRelationUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
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
65 public static SocialRelation remove(SocialRelation socialRelation)
66 throws SystemException {
67 return getPersistence().remove(socialRelation);
68 }
69
70
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 orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
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 orderByComparator)
142 throws com.liferay.portal.kernel.exception.SystemException,
143 com.liferay.portlet.social.NoSuchRelationException {
144 return getPersistence().findByUuid_First(uuid, orderByComparator);
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 orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException,
151 com.liferay.portlet.social.NoSuchRelationException {
152 return getPersistence().findByUuid_Last(uuid, orderByComparator);
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 orderByComparator)
158 throws com.liferay.portal.kernel.exception.SystemException,
159 com.liferay.portlet.social.NoSuchRelationException {
160 return getPersistence()
161 .findByUuid_PrevAndNext(relationId, uuid, orderByComparator);
162 }
163
164 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
165 long companyId)
166 throws com.liferay.portal.kernel.exception.SystemException {
167 return getPersistence().findByCompanyId(companyId);
168 }
169
170 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
171 long companyId, int start, int end)
172 throws com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence().findByCompanyId(companyId, start, end);
174 }
175
176 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
177 long companyId, int start, int end,
178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getPersistence()
181 .findByCompanyId(companyId, start, end, orderByComparator);
182 }
183
184 public static com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(
185 long companyId,
186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187 throws com.liferay.portal.kernel.exception.SystemException,
188 com.liferay.portlet.social.NoSuchRelationException {
189 return getPersistence()
190 .findByCompanyId_First(companyId, orderByComparator);
191 }
192
193 public static com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(
194 long companyId,
195 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196 throws com.liferay.portal.kernel.exception.SystemException,
197 com.liferay.portlet.social.NoSuchRelationException {
198 return getPersistence()
199 .findByCompanyId_Last(companyId, orderByComparator);
200 }
201
202 public static com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(
203 long relationId, long companyId,
204 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205 throws com.liferay.portal.kernel.exception.SystemException,
206 com.liferay.portlet.social.NoSuchRelationException {
207 return getPersistence()
208 .findByCompanyId_PrevAndNext(relationId, companyId,
209 orderByComparator);
210 }
211
212 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
213 long userId1)
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getPersistence().findByUserId1(userId1);
216 }
217
218 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
219 long userId1, int start, int end)
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getPersistence().findByUserId1(userId1, start, end);
222 }
223
224 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
225 long userId1, int start, int end,
226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getPersistence()
229 .findByUserId1(userId1, start, end, orderByComparator);
230 }
231
232 public static com.liferay.portlet.social.model.SocialRelation findByUserId1_First(
233 long userId1,
234 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
235 throws com.liferay.portal.kernel.exception.SystemException,
236 com.liferay.portlet.social.NoSuchRelationException {
237 return getPersistence().findByUserId1_First(userId1, orderByComparator);
238 }
239
240 public static com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(
241 long userId1,
242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243 throws com.liferay.portal.kernel.exception.SystemException,
244 com.liferay.portlet.social.NoSuchRelationException {
245 return getPersistence().findByUserId1_Last(userId1, orderByComparator);
246 }
247
248 public static com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(
249 long relationId, 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()
254 .findByUserId1_PrevAndNext(relationId, userId1,
255 orderByComparator);
256 }
257
258 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
259 long userId2)
260 throws com.liferay.portal.kernel.exception.SystemException {
261 return getPersistence().findByUserId2(userId2);
262 }
263
264 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
265 long userId2, int start, int end)
266 throws com.liferay.portal.kernel.exception.SystemException {
267 return getPersistence().findByUserId2(userId2, start, end);
268 }
269
270 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
271 long userId2, int start, int end,
272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273 throws com.liferay.portal.kernel.exception.SystemException {
274 return getPersistence()
275 .findByUserId2(userId2, start, end, orderByComparator);
276 }
277
278 public static com.liferay.portlet.social.model.SocialRelation findByUserId2_First(
279 long userId2,
280 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
281 throws com.liferay.portal.kernel.exception.SystemException,
282 com.liferay.portlet.social.NoSuchRelationException {
283 return getPersistence().findByUserId2_First(userId2, orderByComparator);
284 }
285
286 public static com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(
287 long userId2,
288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289 throws com.liferay.portal.kernel.exception.SystemException,
290 com.liferay.portlet.social.NoSuchRelationException {
291 return getPersistence().findByUserId2_Last(userId2, orderByComparator);
292 }
293
294 public static com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(
295 long relationId, 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()
300 .findByUserId2_PrevAndNext(relationId, userId2,
301 orderByComparator);
302 }
303
304 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
305 int type) throws com.liferay.portal.kernel.exception.SystemException {
306 return getPersistence().findByType(type);
307 }
308
309 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
310 int type, int start, int end)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 return getPersistence().findByType(type, start, end);
313 }
314
315 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
316 int type, int start, int end,
317 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318 throws com.liferay.portal.kernel.exception.SystemException {
319 return getPersistence().findByType(type, start, end, orderByComparator);
320 }
321
322 public static com.liferay.portlet.social.model.SocialRelation findByType_First(
323 int type,
324 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
325 throws com.liferay.portal.kernel.exception.SystemException,
326 com.liferay.portlet.social.NoSuchRelationException {
327 return getPersistence().findByType_First(type, orderByComparator);
328 }
329
330 public static com.liferay.portlet.social.model.SocialRelation findByType_Last(
331 int type,
332 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
333 throws com.liferay.portal.kernel.exception.SystemException,
334 com.liferay.portlet.social.NoSuchRelationException {
335 return getPersistence().findByType_Last(type, orderByComparator);
336 }
337
338 public static com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext(
339 long relationId, 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()
344 .findByType_PrevAndNext(relationId, type, orderByComparator);
345 }
346
347 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
348 long companyId, int type)
349 throws com.liferay.portal.kernel.exception.SystemException {
350 return getPersistence().findByC_T(companyId, type);
351 }
352
353 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
354 long companyId, int type, int start, int end)
355 throws com.liferay.portal.kernel.exception.SystemException {
356 return getPersistence().findByC_T(companyId, type, start, end);
357 }
358
359 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
360 long companyId, int type, int start, int end,
361 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
362 throws com.liferay.portal.kernel.exception.SystemException {
363 return getPersistence()
364 .findByC_T(companyId, type, start, end, orderByComparator);
365 }
366
367 public static com.liferay.portlet.social.model.SocialRelation findByC_T_First(
368 long companyId, int type,
369 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
370 throws com.liferay.portal.kernel.exception.SystemException,
371 com.liferay.portlet.social.NoSuchRelationException {
372 return getPersistence()
373 .findByC_T_First(companyId, type, orderByComparator);
374 }
375
376 public static com.liferay.portlet.social.model.SocialRelation findByC_T_Last(
377 long companyId, int type,
378 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379 throws com.liferay.portal.kernel.exception.SystemException,
380 com.liferay.portlet.social.NoSuchRelationException {
381 return getPersistence()
382 .findByC_T_Last(companyId, type, orderByComparator);
383 }
384
385 public static com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext(
386 long relationId, long companyId, int type,
387 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
388 throws com.liferay.portal.kernel.exception.SystemException,
389 com.liferay.portlet.social.NoSuchRelationException {
390 return getPersistence()
391 .findByC_T_PrevAndNext(relationId, companyId, type,
392 orderByComparator);
393 }
394
395 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
396 long userId1, int type)
397 throws com.liferay.portal.kernel.exception.SystemException {
398 return getPersistence().findByU1_T(userId1, type);
399 }
400
401 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
402 long userId1, int type, int start, int end)
403 throws com.liferay.portal.kernel.exception.SystemException {
404 return getPersistence().findByU1_T(userId1, type, start, end);
405 }
406
407 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
408 long userId1, int type, int start, int end,
409 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
410 throws com.liferay.portal.kernel.exception.SystemException {
411 return getPersistence()
412 .findByU1_T(userId1, type, start, end, orderByComparator);
413 }
414
415 public static com.liferay.portlet.social.model.SocialRelation findByU1_T_First(
416 long userId1, int type,
417 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418 throws com.liferay.portal.kernel.exception.SystemException,
419 com.liferay.portlet.social.NoSuchRelationException {
420 return getPersistence()
421 .findByU1_T_First(userId1, type, orderByComparator);
422 }
423
424 public static com.liferay.portlet.social.model.SocialRelation findByU1_T_Last(
425 long userId1, int type,
426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427 throws com.liferay.portal.kernel.exception.SystemException,
428 com.liferay.portlet.social.NoSuchRelationException {
429 return getPersistence().findByU1_T_Last(userId1, type, orderByComparator);
430 }
431
432 public static com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext(
433 long relationId, long userId1, int type,
434 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435 throws com.liferay.portal.kernel.exception.SystemException,
436 com.liferay.portlet.social.NoSuchRelationException {
437 return getPersistence()
438 .findByU1_T_PrevAndNext(relationId, userId1, type,
439 orderByComparator);
440 }
441
442 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
443 long userId2, int type)
444 throws com.liferay.portal.kernel.exception.SystemException {
445 return getPersistence().findByU2_T(userId2, type);
446 }
447
448 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
449 long userId2, int type, int start, int end)
450 throws com.liferay.portal.kernel.exception.SystemException {
451 return getPersistence().findByU2_T(userId2, type, start, end);
452 }
453
454 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
455 long userId2, int type, int start, int end,
456 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
457 throws com.liferay.portal.kernel.exception.SystemException {
458 return getPersistence()
459 .findByU2_T(userId2, type, start, end, orderByComparator);
460 }
461
462 public static com.liferay.portlet.social.model.SocialRelation findByU2_T_First(
463 long userId2, int type,
464 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465 throws com.liferay.portal.kernel.exception.SystemException,
466 com.liferay.portlet.social.NoSuchRelationException {
467 return getPersistence()
468 .findByU2_T_First(userId2, type, orderByComparator);
469 }
470
471 public static com.liferay.portlet.social.model.SocialRelation findByU2_T_Last(
472 long userId2, int type,
473 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
474 throws com.liferay.portal.kernel.exception.SystemException,
475 com.liferay.portlet.social.NoSuchRelationException {
476 return getPersistence().findByU2_T_Last(userId2, type, orderByComparator);
477 }
478
479 public static com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext(
480 long relationId, long userId2, int type,
481 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
482 throws com.liferay.portal.kernel.exception.SystemException,
483 com.liferay.portlet.social.NoSuchRelationException {
484 return getPersistence()
485 .findByU2_T_PrevAndNext(relationId, userId2, type,
486 orderByComparator);
487 }
488
489 public static com.liferay.portlet.social.model.SocialRelation findByU1_U2_T(
490 long userId1, long userId2, int type)
491 throws com.liferay.portal.kernel.exception.SystemException,
492 com.liferay.portlet.social.NoSuchRelationException {
493 return getPersistence().findByU1_U2_T(userId1, userId2, type);
494 }
495
496 public static com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
497 long userId1, long userId2, int type)
498 throws com.liferay.portal.kernel.exception.SystemException {
499 return getPersistence().fetchByU1_U2_T(userId1, userId2, type);
500 }
501
502 public static com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
503 long userId1, long userId2, int type, boolean retrieveFromCache)
504 throws com.liferay.portal.kernel.exception.SystemException {
505 return getPersistence()
506 .fetchByU1_U2_T(userId1, userId2, type, retrieveFromCache);
507 }
508
509 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll()
510 throws com.liferay.portal.kernel.exception.SystemException {
511 return getPersistence().findAll();
512 }
513
514 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
515 int start, int end)
516 throws com.liferay.portal.kernel.exception.SystemException {
517 return getPersistence().findAll(start, end);
518 }
519
520 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
521 int start, int end,
522 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
523 throws com.liferay.portal.kernel.exception.SystemException {
524 return getPersistence().findAll(start, end, orderByComparator);
525 }
526
527 public static void removeByUuid(java.lang.String uuid)
528 throws com.liferay.portal.kernel.exception.SystemException {
529 getPersistence().removeByUuid(uuid);
530 }
531
532 public static void removeByCompanyId(long companyId)
533 throws com.liferay.portal.kernel.exception.SystemException {
534 getPersistence().removeByCompanyId(companyId);
535 }
536
537 public static void removeByUserId1(long userId1)
538 throws com.liferay.portal.kernel.exception.SystemException {
539 getPersistence().removeByUserId1(userId1);
540 }
541
542 public static void removeByUserId2(long userId2)
543 throws com.liferay.portal.kernel.exception.SystemException {
544 getPersistence().removeByUserId2(userId2);
545 }
546
547 public static void removeByType(int type)
548 throws com.liferay.portal.kernel.exception.SystemException {
549 getPersistence().removeByType(type);
550 }
551
552 public static void removeByC_T(long companyId, int type)
553 throws com.liferay.portal.kernel.exception.SystemException {
554 getPersistence().removeByC_T(companyId, type);
555 }
556
557 public static void removeByU1_T(long userId1, int type)
558 throws com.liferay.portal.kernel.exception.SystemException {
559 getPersistence().removeByU1_T(userId1, type);
560 }
561
562 public static void removeByU2_T(long userId2, int type)
563 throws com.liferay.portal.kernel.exception.SystemException {
564 getPersistence().removeByU2_T(userId2, type);
565 }
566
567 public static void removeByU1_U2_T(long userId1, long userId2, int type)
568 throws com.liferay.portal.kernel.exception.SystemException,
569 com.liferay.portlet.social.NoSuchRelationException {
570 getPersistence().removeByU1_U2_T(userId1, userId2, type);
571 }
572
573 public static void removeAll()
574 throws com.liferay.portal.kernel.exception.SystemException {
575 getPersistence().removeAll();
576 }
577
578 public static int countByUuid(java.lang.String uuid)
579 throws com.liferay.portal.kernel.exception.SystemException {
580 return getPersistence().countByUuid(uuid);
581 }
582
583 public static int countByCompanyId(long companyId)
584 throws com.liferay.portal.kernel.exception.SystemException {
585 return getPersistence().countByCompanyId(companyId);
586 }
587
588 public static int countByUserId1(long userId1)
589 throws com.liferay.portal.kernel.exception.SystemException {
590 return getPersistence().countByUserId1(userId1);
591 }
592
593 public static int countByUserId2(long userId2)
594 throws com.liferay.portal.kernel.exception.SystemException {
595 return getPersistence().countByUserId2(userId2);
596 }
597
598 public static int countByType(int type)
599 throws com.liferay.portal.kernel.exception.SystemException {
600 return getPersistence().countByType(type);
601 }
602
603 public static int countByC_T(long companyId, int type)
604 throws com.liferay.portal.kernel.exception.SystemException {
605 return getPersistence().countByC_T(companyId, type);
606 }
607
608 public static int countByU1_T(long userId1, int type)
609 throws com.liferay.portal.kernel.exception.SystemException {
610 return getPersistence().countByU1_T(userId1, type);
611 }
612
613 public static int countByU2_T(long userId2, int type)
614 throws com.liferay.portal.kernel.exception.SystemException {
615 return getPersistence().countByU2_T(userId2, type);
616 }
617
618 public static int countByU1_U2_T(long userId1, long userId2, int type)
619 throws com.liferay.portal.kernel.exception.SystemException {
620 return getPersistence().countByU1_U2_T(userId1, userId2, type);
621 }
622
623 public static int countAll()
624 throws com.liferay.portal.kernel.exception.SystemException {
625 return getPersistence().countAll();
626 }
627
628 public static SocialRelationPersistence getPersistence() {
629 if (_persistence == null) {
630 _persistence = (SocialRelationPersistence)PortalBeanLocatorUtil.locate(SocialRelationPersistence.class.getName());
631 }
632
633 return _persistence;
634 }
635
636 public void setPersistence(SocialRelationPersistence persistence) {
637 _persistence = persistence;
638 }
639
640 private static SocialRelationPersistence _persistence;
641 }