1
14
15 package com.liferay.portlet.social.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
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.SystemException,
96 com.liferay.portlet.social.NoSuchRelationException {
97 return getPersistence().remove(relationId);
98 }
99
100
103 public static com.liferay.portlet.social.model.SocialRelation update(
104 com.liferay.portlet.social.model.SocialRelation socialRelation)
105 throws com.liferay.portal.SystemException {
106 return getPersistence().update(socialRelation);
107 }
108
109 public static com.liferay.portlet.social.model.SocialRelation updateImpl(
110 com.liferay.portlet.social.model.SocialRelation socialRelation,
111 boolean merge) throws com.liferay.portal.SystemException {
112 return getPersistence().updateImpl(socialRelation, merge);
113 }
114
115 public static com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(
116 long relationId)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.social.NoSuchRelationException {
119 return getPersistence().findByPrimaryKey(relationId);
120 }
121
122 public static com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(
123 long relationId) throws com.liferay.portal.SystemException {
124 return getPersistence().fetchByPrimaryKey(relationId);
125 }
126
127 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
128 java.lang.String uuid) throws com.liferay.portal.SystemException {
129 return getPersistence().findByUuid(uuid);
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 throws com.liferay.portal.SystemException {
135 return getPersistence().findByUuid(uuid, start, end);
136 }
137
138 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
139 java.lang.String uuid, int start, int end,
140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141 throws com.liferay.portal.SystemException {
142 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
143 }
144
145 public static com.liferay.portlet.social.model.SocialRelation findByUuid_First(
146 java.lang.String uuid,
147 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148 throws com.liferay.portal.SystemException,
149 com.liferay.portlet.social.NoSuchRelationException {
150 return getPersistence().findByUuid_First(uuid, orderByComparator);
151 }
152
153 public static com.liferay.portlet.social.model.SocialRelation findByUuid_Last(
154 java.lang.String uuid,
155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156 throws com.liferay.portal.SystemException,
157 com.liferay.portlet.social.NoSuchRelationException {
158 return getPersistence().findByUuid_Last(uuid, orderByComparator);
159 }
160
161 public static com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext(
162 long relationId, java.lang.String uuid,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portlet.social.NoSuchRelationException {
166 return getPersistence()
167 .findByUuid_PrevAndNext(relationId, uuid, orderByComparator);
168 }
169
170 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
171 long companyId) throws com.liferay.portal.SystemException {
172 return getPersistence().findByCompanyId(companyId);
173 }
174
175 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
176 long companyId, int start, int end)
177 throws com.liferay.portal.SystemException {
178 return getPersistence().findByCompanyId(companyId, start, end);
179 }
180
181 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
182 long companyId, int start, int end,
183 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184 throws com.liferay.portal.SystemException {
185 return getPersistence()
186 .findByCompanyId(companyId, start, end, orderByComparator);
187 }
188
189 public static com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(
190 long companyId,
191 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
192 throws com.liferay.portal.SystemException,
193 com.liferay.portlet.social.NoSuchRelationException {
194 return getPersistence()
195 .findByCompanyId_First(companyId, orderByComparator);
196 }
197
198 public static com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(
199 long companyId,
200 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
201 throws com.liferay.portal.SystemException,
202 com.liferay.portlet.social.NoSuchRelationException {
203 return getPersistence()
204 .findByCompanyId_Last(companyId, orderByComparator);
205 }
206
207 public static com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(
208 long relationId, long companyId,
209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210 throws com.liferay.portal.SystemException,
211 com.liferay.portlet.social.NoSuchRelationException {
212 return getPersistence()
213 .findByCompanyId_PrevAndNext(relationId, companyId,
214 orderByComparator);
215 }
216
217 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
218 long userId1) throws com.liferay.portal.SystemException {
219 return getPersistence().findByUserId1(userId1);
220 }
221
222 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
223 long userId1, int start, int end)
224 throws com.liferay.portal.SystemException {
225 return getPersistence().findByUserId1(userId1, start, end);
226 }
227
228 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
229 long userId1, int start, int end,
230 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
231 throws com.liferay.portal.SystemException {
232 return getPersistence()
233 .findByUserId1(userId1, start, end, orderByComparator);
234 }
235
236 public static com.liferay.portlet.social.model.SocialRelation findByUserId1_First(
237 long userId1,
238 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239 throws com.liferay.portal.SystemException,
240 com.liferay.portlet.social.NoSuchRelationException {
241 return getPersistence().findByUserId1_First(userId1, orderByComparator);
242 }
243
244 public static com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(
245 long userId1,
246 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247 throws com.liferay.portal.SystemException,
248 com.liferay.portlet.social.NoSuchRelationException {
249 return getPersistence().findByUserId1_Last(userId1, orderByComparator);
250 }
251
252 public static com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(
253 long relationId, long userId1,
254 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255 throws com.liferay.portal.SystemException,
256 com.liferay.portlet.social.NoSuchRelationException {
257 return getPersistence()
258 .findByUserId1_PrevAndNext(relationId, userId1,
259 orderByComparator);
260 }
261
262 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
263 long userId2) throws com.liferay.portal.SystemException {
264 return getPersistence().findByUserId2(userId2);
265 }
266
267 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
268 long userId2, int start, int end)
269 throws com.liferay.portal.SystemException {
270 return getPersistence().findByUserId2(userId2, start, end);
271 }
272
273 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
274 long userId2, int start, int end,
275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
276 throws com.liferay.portal.SystemException {
277 return getPersistence()
278 .findByUserId2(userId2, start, end, orderByComparator);
279 }
280
281 public static com.liferay.portlet.social.model.SocialRelation findByUserId2_First(
282 long userId2,
283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284 throws com.liferay.portal.SystemException,
285 com.liferay.portlet.social.NoSuchRelationException {
286 return getPersistence().findByUserId2_First(userId2, orderByComparator);
287 }
288
289 public static com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(
290 long userId2,
291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292 throws com.liferay.portal.SystemException,
293 com.liferay.portlet.social.NoSuchRelationException {
294 return getPersistence().findByUserId2_Last(userId2, orderByComparator);
295 }
296
297 public static com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(
298 long relationId, long userId2,
299 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300 throws com.liferay.portal.SystemException,
301 com.liferay.portlet.social.NoSuchRelationException {
302 return getPersistence()
303 .findByUserId2_PrevAndNext(relationId, userId2,
304 orderByComparator);
305 }
306
307 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
308 int type) throws com.liferay.portal.SystemException {
309 return getPersistence().findByType(type);
310 }
311
312 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
313 int type, int start, int end) throws com.liferay.portal.SystemException {
314 return getPersistence().findByType(type, start, end);
315 }
316
317 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
318 int type, int start, int end,
319 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320 throws com.liferay.portal.SystemException {
321 return getPersistence().findByType(type, start, end, orderByComparator);
322 }
323
324 public static com.liferay.portlet.social.model.SocialRelation findByType_First(
325 int type,
326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327 throws com.liferay.portal.SystemException,
328 com.liferay.portlet.social.NoSuchRelationException {
329 return getPersistence().findByType_First(type, orderByComparator);
330 }
331
332 public static com.liferay.portlet.social.model.SocialRelation findByType_Last(
333 int type,
334 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
335 throws com.liferay.portal.SystemException,
336 com.liferay.portlet.social.NoSuchRelationException {
337 return getPersistence().findByType_Last(type, orderByComparator);
338 }
339
340 public static com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext(
341 long relationId, int type,
342 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
343 throws com.liferay.portal.SystemException,
344 com.liferay.portlet.social.NoSuchRelationException {
345 return getPersistence()
346 .findByType_PrevAndNext(relationId, type, orderByComparator);
347 }
348
349 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
350 long companyId, int type) throws com.liferay.portal.SystemException {
351 return getPersistence().findByC_T(companyId, type);
352 }
353
354 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
355 long companyId, int type, int start, int end)
356 throws com.liferay.portal.SystemException {
357 return getPersistence().findByC_T(companyId, type, start, end);
358 }
359
360 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
361 long companyId, int type, int start, int end,
362 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
363 throws com.liferay.portal.SystemException {
364 return getPersistence()
365 .findByC_T(companyId, type, start, end, orderByComparator);
366 }
367
368 public static com.liferay.portlet.social.model.SocialRelation findByC_T_First(
369 long companyId, int type,
370 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
371 throws com.liferay.portal.SystemException,
372 com.liferay.portlet.social.NoSuchRelationException {
373 return getPersistence()
374 .findByC_T_First(companyId, type, orderByComparator);
375 }
376
377 public static com.liferay.portlet.social.model.SocialRelation findByC_T_Last(
378 long companyId, int type,
379 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
380 throws com.liferay.portal.SystemException,
381 com.liferay.portlet.social.NoSuchRelationException {
382 return getPersistence()
383 .findByC_T_Last(companyId, type, orderByComparator);
384 }
385
386 public static com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext(
387 long relationId, long companyId, int type,
388 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
389 throws com.liferay.portal.SystemException,
390 com.liferay.portlet.social.NoSuchRelationException {
391 return getPersistence()
392 .findByC_T_PrevAndNext(relationId, companyId, type,
393 orderByComparator);
394 }
395
396 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
397 long userId1, int type) throws com.liferay.portal.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.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.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.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.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.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) throws com.liferay.portal.SystemException {
444 return getPersistence().findByU2_T(userId2, type);
445 }
446
447 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
448 long userId2, int type, int start, int end)
449 throws com.liferay.portal.SystemException {
450 return getPersistence().findByU2_T(userId2, type, start, end);
451 }
452
453 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
454 long userId2, int type, int start, int end,
455 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
456 throws com.liferay.portal.SystemException {
457 return getPersistence()
458 .findByU2_T(userId2, type, start, end, orderByComparator);
459 }
460
461 public static com.liferay.portlet.social.model.SocialRelation findByU2_T_First(
462 long userId2, int type,
463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
464 throws com.liferay.portal.SystemException,
465 com.liferay.portlet.social.NoSuchRelationException {
466 return getPersistence()
467 .findByU2_T_First(userId2, type, orderByComparator);
468 }
469
470 public static com.liferay.portlet.social.model.SocialRelation findByU2_T_Last(
471 long userId2, int type,
472 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
473 throws com.liferay.portal.SystemException,
474 com.liferay.portlet.social.NoSuchRelationException {
475 return getPersistence().findByU2_T_Last(userId2, type, orderByComparator);
476 }
477
478 public static com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext(
479 long relationId, long userId2, int type,
480 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
481 throws com.liferay.portal.SystemException,
482 com.liferay.portlet.social.NoSuchRelationException {
483 return getPersistence()
484 .findByU2_T_PrevAndNext(relationId, userId2, type,
485 orderByComparator);
486 }
487
488 public static com.liferay.portlet.social.model.SocialRelation findByU1_U2_T(
489 long userId1, long userId2, int type)
490 throws com.liferay.portal.SystemException,
491 com.liferay.portlet.social.NoSuchRelationException {
492 return getPersistence().findByU1_U2_T(userId1, userId2, type);
493 }
494
495 public static com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
496 long userId1, long userId2, int type)
497 throws com.liferay.portal.SystemException {
498 return getPersistence().fetchByU1_U2_T(userId1, userId2, type);
499 }
500
501 public static com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
502 long userId1, long userId2, int type, boolean retrieveFromCache)
503 throws com.liferay.portal.SystemException {
504 return getPersistence()
505 .fetchByU1_U2_T(userId1, userId2, type, retrieveFromCache);
506 }
507
508 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll()
509 throws com.liferay.portal.SystemException {
510 return getPersistence().findAll();
511 }
512
513 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
514 int start, int end) throws com.liferay.portal.SystemException {
515 return getPersistence().findAll(start, end);
516 }
517
518 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
519 int start, int end,
520 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
521 throws com.liferay.portal.SystemException {
522 return getPersistence().findAll(start, end, orderByComparator);
523 }
524
525 public static void removeByUuid(java.lang.String uuid)
526 throws com.liferay.portal.SystemException {
527 getPersistence().removeByUuid(uuid);
528 }
529
530 public static void removeByCompanyId(long companyId)
531 throws com.liferay.portal.SystemException {
532 getPersistence().removeByCompanyId(companyId);
533 }
534
535 public static void removeByUserId1(long userId1)
536 throws com.liferay.portal.SystemException {
537 getPersistence().removeByUserId1(userId1);
538 }
539
540 public static void removeByUserId2(long userId2)
541 throws com.liferay.portal.SystemException {
542 getPersistence().removeByUserId2(userId2);
543 }
544
545 public static void removeByType(int type)
546 throws com.liferay.portal.SystemException {
547 getPersistence().removeByType(type);
548 }
549
550 public static void removeByC_T(long companyId, int type)
551 throws com.liferay.portal.SystemException {
552 getPersistence().removeByC_T(companyId, type);
553 }
554
555 public static void removeByU1_T(long userId1, int type)
556 throws com.liferay.portal.SystemException {
557 getPersistence().removeByU1_T(userId1, type);
558 }
559
560 public static void removeByU2_T(long userId2, int type)
561 throws com.liferay.portal.SystemException {
562 getPersistence().removeByU2_T(userId2, type);
563 }
564
565 public static void removeByU1_U2_T(long userId1, long userId2, int type)
566 throws com.liferay.portal.SystemException,
567 com.liferay.portlet.social.NoSuchRelationException {
568 getPersistence().removeByU1_U2_T(userId1, userId2, type);
569 }
570
571 public static void removeAll() throws com.liferay.portal.SystemException {
572 getPersistence().removeAll();
573 }
574
575 public static int countByUuid(java.lang.String uuid)
576 throws com.liferay.portal.SystemException {
577 return getPersistence().countByUuid(uuid);
578 }
579
580 public static int countByCompanyId(long companyId)
581 throws com.liferay.portal.SystemException {
582 return getPersistence().countByCompanyId(companyId);
583 }
584
585 public static int countByUserId1(long userId1)
586 throws com.liferay.portal.SystemException {
587 return getPersistence().countByUserId1(userId1);
588 }
589
590 public static int countByUserId2(long userId2)
591 throws com.liferay.portal.SystemException {
592 return getPersistence().countByUserId2(userId2);
593 }
594
595 public static int countByType(int type)
596 throws com.liferay.portal.SystemException {
597 return getPersistence().countByType(type);
598 }
599
600 public static int countByC_T(long companyId, int type)
601 throws com.liferay.portal.SystemException {
602 return getPersistence().countByC_T(companyId, type);
603 }
604
605 public static int countByU1_T(long userId1, int type)
606 throws com.liferay.portal.SystemException {
607 return getPersistence().countByU1_T(userId1, type);
608 }
609
610 public static int countByU2_T(long userId2, int type)
611 throws com.liferay.portal.SystemException {
612 return getPersistence().countByU2_T(userId2, type);
613 }
614
615 public static int countByU1_U2_T(long userId1, long userId2, int type)
616 throws com.liferay.portal.SystemException {
617 return getPersistence().countByU1_U2_T(userId1, userId2, type);
618 }
619
620 public static int countAll() throws com.liferay.portal.SystemException {
621 return getPersistence().countAll();
622 }
623
624 public static SocialRelationPersistence getPersistence() {
625 if (_persistence == null) {
626 _persistence = (SocialRelationPersistence)PortalBeanLocatorUtil.locate(SocialRelationPersistence.class.getName());
627 }
628
629 return _persistence;
630 }
631
632 public void setPersistence(SocialRelationPersistence persistence) {
633 _persistence = persistence;
634 }
635
636 private static SocialRelationPersistence _persistence;
637 }