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