001
014
015 package com.liferay.portlet.social.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.social.model.SocialRelation;
024
025 import java.util.List;
026
027
033 public class SocialRelationUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(SocialRelation socialRelation) {
045 getPersistence().clearCache(socialRelation);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<SocialRelation> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<SocialRelation> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<SocialRelation> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static SocialRelation remove(SocialRelation socialRelation)
088 throws SystemException {
089 return getPersistence().remove(socialRelation);
090 }
091
092
095 public static SocialRelation update(SocialRelation socialRelation,
096 boolean merge) throws SystemException {
097 return getPersistence().update(socialRelation, merge);
098 }
099
100
103 public static SocialRelation update(SocialRelation socialRelation,
104 boolean merge, ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(socialRelation, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.social.model.SocialRelation socialRelation) {
110 getPersistence().cacheResult(socialRelation);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations) {
115 getPersistence().cacheResult(socialRelations);
116 }
117
118 public static com.liferay.portlet.social.model.SocialRelation create(
119 long relationId) {
120 return getPersistence().create(relationId);
121 }
122
123 public static com.liferay.portlet.social.model.SocialRelation remove(
124 long relationId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.social.NoSuchRelationException {
127 return getPersistence().remove(relationId);
128 }
129
130 public static com.liferay.portlet.social.model.SocialRelation updateImpl(
131 com.liferay.portlet.social.model.SocialRelation socialRelation,
132 boolean merge)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().updateImpl(socialRelation, merge);
135 }
136
137 public static com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(
138 long relationId)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.social.NoSuchRelationException {
141 return getPersistence().findByPrimaryKey(relationId);
142 }
143
144 public static com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(
145 long relationId)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().fetchByPrimaryKey(relationId);
148 }
149
150 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
151 java.lang.String uuid)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence().findByUuid(uuid);
154 }
155
156 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
157 java.lang.String uuid, int start, int end)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence().findByUuid(uuid, start, end);
160 }
161
162 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
163 java.lang.String uuid, int start, int end,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
167 }
168
169 public static com.liferay.portlet.social.model.SocialRelation findByUuid_First(
170 java.lang.String uuid,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.kernel.exception.SystemException,
173 com.liferay.portlet.social.NoSuchRelationException {
174 return getPersistence().findByUuid_First(uuid, orderByComparator);
175 }
176
177 public static com.liferay.portlet.social.model.SocialRelation findByUuid_Last(
178 java.lang.String uuid,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.kernel.exception.SystemException,
181 com.liferay.portlet.social.NoSuchRelationException {
182 return getPersistence().findByUuid_Last(uuid, orderByComparator);
183 }
184
185 public static com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext(
186 long relationId, java.lang.String uuid,
187 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188 throws com.liferay.portal.kernel.exception.SystemException,
189 com.liferay.portlet.social.NoSuchRelationException {
190 return getPersistence()
191 .findByUuid_PrevAndNext(relationId, uuid, orderByComparator);
192 }
193
194 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
195 long companyId)
196 throws com.liferay.portal.kernel.exception.SystemException {
197 return getPersistence().findByCompanyId(companyId);
198 }
199
200 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
201 long companyId, int start, int end)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getPersistence().findByCompanyId(companyId, start, end);
204 }
205
206 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
207 long companyId, int start, int end,
208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getPersistence()
211 .findByCompanyId(companyId, start, end, orderByComparator);
212 }
213
214 public static com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(
215 long companyId,
216 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217 throws com.liferay.portal.kernel.exception.SystemException,
218 com.liferay.portlet.social.NoSuchRelationException {
219 return getPersistence()
220 .findByCompanyId_First(companyId, orderByComparator);
221 }
222
223 public static com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(
224 long companyId,
225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226 throws com.liferay.portal.kernel.exception.SystemException,
227 com.liferay.portlet.social.NoSuchRelationException {
228 return getPersistence()
229 .findByCompanyId_Last(companyId, orderByComparator);
230 }
231
232 public static com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(
233 long relationId, long companyId,
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()
238 .findByCompanyId_PrevAndNext(relationId, companyId,
239 orderByComparator);
240 }
241
242 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
243 long userId1)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getPersistence().findByUserId1(userId1);
246 }
247
248 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
249 long userId1, int start, int end)
250 throws com.liferay.portal.kernel.exception.SystemException {
251 return getPersistence().findByUserId1(userId1, start, end);
252 }
253
254 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
255 long userId1, int start, int end,
256 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257 throws com.liferay.portal.kernel.exception.SystemException {
258 return getPersistence()
259 .findByUserId1(userId1, start, end, orderByComparator);
260 }
261
262 public static com.liferay.portlet.social.model.SocialRelation findByUserId1_First(
263 long userId1,
264 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265 throws com.liferay.portal.kernel.exception.SystemException,
266 com.liferay.portlet.social.NoSuchRelationException {
267 return getPersistence().findByUserId1_First(userId1, orderByComparator);
268 }
269
270 public static com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(
271 long userId1,
272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273 throws com.liferay.portal.kernel.exception.SystemException,
274 com.liferay.portlet.social.NoSuchRelationException {
275 return getPersistence().findByUserId1_Last(userId1, orderByComparator);
276 }
277
278 public static com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(
279 long relationId, long userId1,
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()
284 .findByUserId1_PrevAndNext(relationId, userId1,
285 orderByComparator);
286 }
287
288 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
289 long userId2)
290 throws com.liferay.portal.kernel.exception.SystemException {
291 return getPersistence().findByUserId2(userId2);
292 }
293
294 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
295 long userId2, int start, int end)
296 throws com.liferay.portal.kernel.exception.SystemException {
297 return getPersistence().findByUserId2(userId2, start, end);
298 }
299
300 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
301 long userId2, int start, int end,
302 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
303 throws com.liferay.portal.kernel.exception.SystemException {
304 return getPersistence()
305 .findByUserId2(userId2, start, end, orderByComparator);
306 }
307
308 public static com.liferay.portlet.social.model.SocialRelation findByUserId2_First(
309 long userId2,
310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311 throws com.liferay.portal.kernel.exception.SystemException,
312 com.liferay.portlet.social.NoSuchRelationException {
313 return getPersistence().findByUserId2_First(userId2, orderByComparator);
314 }
315
316 public static com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(
317 long userId2,
318 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
319 throws com.liferay.portal.kernel.exception.SystemException,
320 com.liferay.portlet.social.NoSuchRelationException {
321 return getPersistence().findByUserId2_Last(userId2, orderByComparator);
322 }
323
324 public static com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(
325 long relationId, long userId2,
326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327 throws com.liferay.portal.kernel.exception.SystemException,
328 com.liferay.portlet.social.NoSuchRelationException {
329 return getPersistence()
330 .findByUserId2_PrevAndNext(relationId, userId2,
331 orderByComparator);
332 }
333
334 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
335 int type) throws com.liferay.portal.kernel.exception.SystemException {
336 return getPersistence().findByType(type);
337 }
338
339 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
340 int type, int start, int end)
341 throws com.liferay.portal.kernel.exception.SystemException {
342 return getPersistence().findByType(type, start, end);
343 }
344
345 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
346 int type, int start, int end,
347 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
348 throws com.liferay.portal.kernel.exception.SystemException {
349 return getPersistence().findByType(type, start, end, orderByComparator);
350 }
351
352 public static com.liferay.portlet.social.model.SocialRelation findByType_First(
353 int type,
354 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
355 throws com.liferay.portal.kernel.exception.SystemException,
356 com.liferay.portlet.social.NoSuchRelationException {
357 return getPersistence().findByType_First(type, orderByComparator);
358 }
359
360 public static com.liferay.portlet.social.model.SocialRelation findByType_Last(
361 int type,
362 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
363 throws com.liferay.portal.kernel.exception.SystemException,
364 com.liferay.portlet.social.NoSuchRelationException {
365 return getPersistence().findByType_Last(type, orderByComparator);
366 }
367
368 public static com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext(
369 long relationId, int type,
370 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
371 throws com.liferay.portal.kernel.exception.SystemException,
372 com.liferay.portlet.social.NoSuchRelationException {
373 return getPersistence()
374 .findByType_PrevAndNext(relationId, type, orderByComparator);
375 }
376
377 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
378 long companyId, int type)
379 throws com.liferay.portal.kernel.exception.SystemException {
380 return getPersistence().findByC_T(companyId, type);
381 }
382
383 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
384 long companyId, int type, int start, int end)
385 throws com.liferay.portal.kernel.exception.SystemException {
386 return getPersistence().findByC_T(companyId, type, start, end);
387 }
388
389 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
390 long companyId, int type, int start, int end,
391 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
392 throws com.liferay.portal.kernel.exception.SystemException {
393 return getPersistence()
394 .findByC_T(companyId, type, start, end, orderByComparator);
395 }
396
397 public static com.liferay.portlet.social.model.SocialRelation findByC_T_First(
398 long companyId, int type,
399 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
400 throws com.liferay.portal.kernel.exception.SystemException,
401 com.liferay.portlet.social.NoSuchRelationException {
402 return getPersistence()
403 .findByC_T_First(companyId, type, orderByComparator);
404 }
405
406 public static com.liferay.portlet.social.model.SocialRelation findByC_T_Last(
407 long companyId, int type,
408 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
409 throws com.liferay.portal.kernel.exception.SystemException,
410 com.liferay.portlet.social.NoSuchRelationException {
411 return getPersistence()
412 .findByC_T_Last(companyId, type, orderByComparator);
413 }
414
415 public static com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext(
416 long relationId, long companyId, 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 .findByC_T_PrevAndNext(relationId, companyId, type,
422 orderByComparator);
423 }
424
425 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
426 long userId1, int type)
427 throws com.liferay.portal.kernel.exception.SystemException {
428 return getPersistence().findByU1_T(userId1, type);
429 }
430
431 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
432 long userId1, int type, int start, int end)
433 throws com.liferay.portal.kernel.exception.SystemException {
434 return getPersistence().findByU1_T(userId1, type, start, end);
435 }
436
437 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
438 long userId1, int type, int start, int end,
439 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
440 throws com.liferay.portal.kernel.exception.SystemException {
441 return getPersistence()
442 .findByU1_T(userId1, type, start, end, orderByComparator);
443 }
444
445 public static com.liferay.portlet.social.model.SocialRelation findByU1_T_First(
446 long userId1, int type,
447 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
448 throws com.liferay.portal.kernel.exception.SystemException,
449 com.liferay.portlet.social.NoSuchRelationException {
450 return getPersistence()
451 .findByU1_T_First(userId1, type, orderByComparator);
452 }
453
454 public static com.liferay.portlet.social.model.SocialRelation findByU1_T_Last(
455 long userId1, int type,
456 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
457 throws com.liferay.portal.kernel.exception.SystemException,
458 com.liferay.portlet.social.NoSuchRelationException {
459 return getPersistence().findByU1_T_Last(userId1, type, orderByComparator);
460 }
461
462 public static com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext(
463 long relationId, long userId1, 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 .findByU1_T_PrevAndNext(relationId, userId1, type,
469 orderByComparator);
470 }
471
472 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
473 long userId2, int type)
474 throws com.liferay.portal.kernel.exception.SystemException {
475 return getPersistence().findByU2_T(userId2, type);
476 }
477
478 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
479 long userId2, int type, int start, int end)
480 throws com.liferay.portal.kernel.exception.SystemException {
481 return getPersistence().findByU2_T(userId2, type, start, end);
482 }
483
484 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
485 long userId2, int type, int start, int end,
486 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
487 throws com.liferay.portal.kernel.exception.SystemException {
488 return getPersistence()
489 .findByU2_T(userId2, type, start, end, orderByComparator);
490 }
491
492 public static com.liferay.portlet.social.model.SocialRelation findByU2_T_First(
493 long userId2, int type,
494 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
495 throws com.liferay.portal.kernel.exception.SystemException,
496 com.liferay.portlet.social.NoSuchRelationException {
497 return getPersistence()
498 .findByU2_T_First(userId2, type, orderByComparator);
499 }
500
501 public static com.liferay.portlet.social.model.SocialRelation findByU2_T_Last(
502 long userId2, int type,
503 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
504 throws com.liferay.portal.kernel.exception.SystemException,
505 com.liferay.portlet.social.NoSuchRelationException {
506 return getPersistence().findByU2_T_Last(userId2, type, orderByComparator);
507 }
508
509 public static com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext(
510 long relationId, long userId2, int type,
511 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
512 throws com.liferay.portal.kernel.exception.SystemException,
513 com.liferay.portlet.social.NoSuchRelationException {
514 return getPersistence()
515 .findByU2_T_PrevAndNext(relationId, userId2, type,
516 orderByComparator);
517 }
518
519 public static com.liferay.portlet.social.model.SocialRelation findByU1_U2_T(
520 long userId1, long userId2, int type)
521 throws com.liferay.portal.kernel.exception.SystemException,
522 com.liferay.portlet.social.NoSuchRelationException {
523 return getPersistence().findByU1_U2_T(userId1, userId2, type);
524 }
525
526 public static com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
527 long userId1, long userId2, int type)
528 throws com.liferay.portal.kernel.exception.SystemException {
529 return getPersistence().fetchByU1_U2_T(userId1, userId2, type);
530 }
531
532 public static com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
533 long userId1, long userId2, int type, boolean retrieveFromCache)
534 throws com.liferay.portal.kernel.exception.SystemException {
535 return getPersistence()
536 .fetchByU1_U2_T(userId1, userId2, type, retrieveFromCache);
537 }
538
539 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll()
540 throws com.liferay.portal.kernel.exception.SystemException {
541 return getPersistence().findAll();
542 }
543
544 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
545 int start, int end)
546 throws com.liferay.portal.kernel.exception.SystemException {
547 return getPersistence().findAll(start, end);
548 }
549
550 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
551 int start, int end,
552 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
553 throws com.liferay.portal.kernel.exception.SystemException {
554 return getPersistence().findAll(start, end, orderByComparator);
555 }
556
557 public static void removeByUuid(java.lang.String uuid)
558 throws com.liferay.portal.kernel.exception.SystemException {
559 getPersistence().removeByUuid(uuid);
560 }
561
562 public static void removeByCompanyId(long companyId)
563 throws com.liferay.portal.kernel.exception.SystemException {
564 getPersistence().removeByCompanyId(companyId);
565 }
566
567 public static void removeByUserId1(long userId1)
568 throws com.liferay.portal.kernel.exception.SystemException {
569 getPersistence().removeByUserId1(userId1);
570 }
571
572 public static void removeByUserId2(long userId2)
573 throws com.liferay.portal.kernel.exception.SystemException {
574 getPersistence().removeByUserId2(userId2);
575 }
576
577 public static void removeByType(int type)
578 throws com.liferay.portal.kernel.exception.SystemException {
579 getPersistence().removeByType(type);
580 }
581
582 public static void removeByC_T(long companyId, int type)
583 throws com.liferay.portal.kernel.exception.SystemException {
584 getPersistence().removeByC_T(companyId, type);
585 }
586
587 public static void removeByU1_T(long userId1, int type)
588 throws com.liferay.portal.kernel.exception.SystemException {
589 getPersistence().removeByU1_T(userId1, type);
590 }
591
592 public static void removeByU2_T(long userId2, int type)
593 throws com.liferay.portal.kernel.exception.SystemException {
594 getPersistence().removeByU2_T(userId2, type);
595 }
596
597 public static void removeByU1_U2_T(long userId1, long userId2, int type)
598 throws com.liferay.portal.kernel.exception.SystemException,
599 com.liferay.portlet.social.NoSuchRelationException {
600 getPersistence().removeByU1_U2_T(userId1, userId2, type);
601 }
602
603 public static void removeAll()
604 throws com.liferay.portal.kernel.exception.SystemException {
605 getPersistence().removeAll();
606 }
607
608 public static int countByUuid(java.lang.String uuid)
609 throws com.liferay.portal.kernel.exception.SystemException {
610 return getPersistence().countByUuid(uuid);
611 }
612
613 public static int countByCompanyId(long companyId)
614 throws com.liferay.portal.kernel.exception.SystemException {
615 return getPersistence().countByCompanyId(companyId);
616 }
617
618 public static int countByUserId1(long userId1)
619 throws com.liferay.portal.kernel.exception.SystemException {
620 return getPersistence().countByUserId1(userId1);
621 }
622
623 public static int countByUserId2(long userId2)
624 throws com.liferay.portal.kernel.exception.SystemException {
625 return getPersistence().countByUserId2(userId2);
626 }
627
628 public static int countByType(int type)
629 throws com.liferay.portal.kernel.exception.SystemException {
630 return getPersistence().countByType(type);
631 }
632
633 public static int countByC_T(long companyId, int type)
634 throws com.liferay.portal.kernel.exception.SystemException {
635 return getPersistence().countByC_T(companyId, type);
636 }
637
638 public static int countByU1_T(long userId1, int type)
639 throws com.liferay.portal.kernel.exception.SystemException {
640 return getPersistence().countByU1_T(userId1, type);
641 }
642
643 public static int countByU2_T(long userId2, int type)
644 throws com.liferay.portal.kernel.exception.SystemException {
645 return getPersistence().countByU2_T(userId2, type);
646 }
647
648 public static int countByU1_U2_T(long userId1, long userId2, int type)
649 throws com.liferay.portal.kernel.exception.SystemException {
650 return getPersistence().countByU1_U2_T(userId1, userId2, type);
651 }
652
653 public static int countAll()
654 throws com.liferay.portal.kernel.exception.SystemException {
655 return getPersistence().countAll();
656 }
657
658 public static SocialRelationPersistence getPersistence() {
659 if (_persistence == null) {
660 _persistence = (SocialRelationPersistence)PortalBeanLocatorUtil.locate(SocialRelationPersistence.class.getName());
661 }
662
663 return _persistence;
664 }
665
666 public void setPersistence(SocialRelationPersistence persistence) {
667 _persistence = persistence;
668 }
669
670 private static SocialRelationPersistence _persistence;
671 }