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.SocialActivity;
22
23 import java.util.List;
24
25
38 public class SocialActivityUtil {
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 SocialActivity remove(SocialActivity socialActivity)
66 throws SystemException {
67 return getPersistence().remove(socialActivity);
68 }
69
70
73 public static SocialActivity update(SocialActivity socialActivity,
74 boolean merge) throws SystemException {
75 return getPersistence().update(socialActivity, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.social.model.SocialActivity socialActivity) {
80 getPersistence().cacheResult(socialActivity);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities) {
85 getPersistence().cacheResult(socialActivities);
86 }
87
88 public static com.liferay.portlet.social.model.SocialActivity create(
89 long activityId) {
90 return getPersistence().create(activityId);
91 }
92
93 public static com.liferay.portlet.social.model.SocialActivity remove(
94 long activityId)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portlet.social.NoSuchActivityException {
97 return getPersistence().remove(activityId);
98 }
99
100
103 public static com.liferay.portlet.social.model.SocialActivity update(
104 com.liferay.portlet.social.model.SocialActivity socialActivity)
105 throws com.liferay.portal.SystemException {
106 return getPersistence().update(socialActivity);
107 }
108
109 public static com.liferay.portlet.social.model.SocialActivity updateImpl(
110 com.liferay.portlet.social.model.SocialActivity socialActivity,
111 boolean merge) throws com.liferay.portal.SystemException {
112 return getPersistence().updateImpl(socialActivity, merge);
113 }
114
115 public static com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(
116 long activityId)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.social.NoSuchActivityException {
119 return getPersistence().findByPrimaryKey(activityId);
120 }
121
122 public static com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(
123 long activityId) throws com.liferay.portal.SystemException {
124 return getPersistence().fetchByPrimaryKey(activityId);
125 }
126
127 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
128 long groupId) throws com.liferay.portal.SystemException {
129 return getPersistence().findByGroupId(groupId);
130 }
131
132 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
133 long groupId, int start, int end)
134 throws com.liferay.portal.SystemException {
135 return getPersistence().findByGroupId(groupId, start, end);
136 }
137
138 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
139 long groupId, int start, int end,
140 com.liferay.portal.kernel.util.OrderByComparator obc)
141 throws com.liferay.portal.SystemException {
142 return getPersistence().findByGroupId(groupId, start, end, obc);
143 }
144
145 public static com.liferay.portlet.social.model.SocialActivity findByGroupId_First(
146 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
147 throws com.liferay.portal.SystemException,
148 com.liferay.portlet.social.NoSuchActivityException {
149 return getPersistence().findByGroupId_First(groupId, obc);
150 }
151
152 public static com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(
153 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portlet.social.NoSuchActivityException {
156 return getPersistence().findByGroupId_Last(groupId, obc);
157 }
158
159 public static com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(
160 long activityId, long groupId,
161 com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.SystemException,
163 com.liferay.portlet.social.NoSuchActivityException {
164 return getPersistence()
165 .findByGroupId_PrevAndNext(activityId, groupId, obc);
166 }
167
168 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
169 long companyId) throws com.liferay.portal.SystemException {
170 return getPersistence().findByCompanyId(companyId);
171 }
172
173 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
174 long companyId, int start, int end)
175 throws com.liferay.portal.SystemException {
176 return getPersistence().findByCompanyId(companyId, start, end);
177 }
178
179 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
180 long companyId, int start, int end,
181 com.liferay.portal.kernel.util.OrderByComparator obc)
182 throws com.liferay.portal.SystemException {
183 return getPersistence().findByCompanyId(companyId, start, end, obc);
184 }
185
186 public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_First(
187 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
188 throws com.liferay.portal.SystemException,
189 com.liferay.portlet.social.NoSuchActivityException {
190 return getPersistence().findByCompanyId_First(companyId, obc);
191 }
192
193 public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(
194 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
195 throws com.liferay.portal.SystemException,
196 com.liferay.portlet.social.NoSuchActivityException {
197 return getPersistence().findByCompanyId_Last(companyId, obc);
198 }
199
200 public static com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(
201 long activityId, long companyId,
202 com.liferay.portal.kernel.util.OrderByComparator obc)
203 throws com.liferay.portal.SystemException,
204 com.liferay.portlet.social.NoSuchActivityException {
205 return getPersistence()
206 .findByCompanyId_PrevAndNext(activityId, companyId, obc);
207 }
208
209 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
210 long userId) throws com.liferay.portal.SystemException {
211 return getPersistence().findByUserId(userId);
212 }
213
214 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
215 long userId, int start, int end)
216 throws com.liferay.portal.SystemException {
217 return getPersistence().findByUserId(userId, start, end);
218 }
219
220 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
221 long userId, int start, int end,
222 com.liferay.portal.kernel.util.OrderByComparator obc)
223 throws com.liferay.portal.SystemException {
224 return getPersistence().findByUserId(userId, start, end, obc);
225 }
226
227 public static com.liferay.portlet.social.model.SocialActivity findByUserId_First(
228 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
229 throws com.liferay.portal.SystemException,
230 com.liferay.portlet.social.NoSuchActivityException {
231 return getPersistence().findByUserId_First(userId, obc);
232 }
233
234 public static com.liferay.portlet.social.model.SocialActivity findByUserId_Last(
235 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
236 throws com.liferay.portal.SystemException,
237 com.liferay.portlet.social.NoSuchActivityException {
238 return getPersistence().findByUserId_Last(userId, obc);
239 }
240
241 public static com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(
242 long activityId, long userId,
243 com.liferay.portal.kernel.util.OrderByComparator obc)
244 throws com.liferay.portal.SystemException,
245 com.liferay.portlet.social.NoSuchActivityException {
246 return getPersistence().findByUserId_PrevAndNext(activityId, userId, obc);
247 }
248
249 public static com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(
250 long mirrorActivityId)
251 throws com.liferay.portal.SystemException,
252 com.liferay.portlet.social.NoSuchActivityException {
253 return getPersistence().findByMirrorActivityId(mirrorActivityId);
254 }
255
256 public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
257 long mirrorActivityId) throws com.liferay.portal.SystemException {
258 return getPersistence().fetchByMirrorActivityId(mirrorActivityId);
259 }
260
261 public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
262 long mirrorActivityId, boolean retrieveFromCache)
263 throws com.liferay.portal.SystemException {
264 return getPersistence()
265 .fetchByMirrorActivityId(mirrorActivityId, retrieveFromCache);
266 }
267
268 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
269 long classNameId) throws com.liferay.portal.SystemException {
270 return getPersistence().findByClassNameId(classNameId);
271 }
272
273 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
274 long classNameId, int start, int end)
275 throws com.liferay.portal.SystemException {
276 return getPersistence().findByClassNameId(classNameId, start, end);
277 }
278
279 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
280 long classNameId, int start, int end,
281 com.liferay.portal.kernel.util.OrderByComparator obc)
282 throws com.liferay.portal.SystemException {
283 return getPersistence().findByClassNameId(classNameId, start, end, obc);
284 }
285
286 public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_First(
287 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
288 throws com.liferay.portal.SystemException,
289 com.liferay.portlet.social.NoSuchActivityException {
290 return getPersistence().findByClassNameId_First(classNameId, obc);
291 }
292
293 public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last(
294 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
295 throws com.liferay.portal.SystemException,
296 com.liferay.portlet.social.NoSuchActivityException {
297 return getPersistence().findByClassNameId_Last(classNameId, obc);
298 }
299
300 public static com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext(
301 long activityId, long classNameId,
302 com.liferay.portal.kernel.util.OrderByComparator obc)
303 throws com.liferay.portal.SystemException,
304 com.liferay.portlet.social.NoSuchActivityException {
305 return getPersistence()
306 .findByClassNameId_PrevAndNext(activityId, classNameId, obc);
307 }
308
309 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
310 long receiverUserId) throws com.liferay.portal.SystemException {
311 return getPersistence().findByReceiverUserId(receiverUserId);
312 }
313
314 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
315 long receiverUserId, int start, int end)
316 throws com.liferay.portal.SystemException {
317 return getPersistence().findByReceiverUserId(receiverUserId, start, end);
318 }
319
320 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
321 long receiverUserId, int start, int end,
322 com.liferay.portal.kernel.util.OrderByComparator obc)
323 throws com.liferay.portal.SystemException {
324 return getPersistence()
325 .findByReceiverUserId(receiverUserId, start, end, obc);
326 }
327
328 public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First(
329 long receiverUserId,
330 com.liferay.portal.kernel.util.OrderByComparator obc)
331 throws com.liferay.portal.SystemException,
332 com.liferay.portlet.social.NoSuchActivityException {
333 return getPersistence().findByReceiverUserId_First(receiverUserId, obc);
334 }
335
336 public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last(
337 long receiverUserId,
338 com.liferay.portal.kernel.util.OrderByComparator obc)
339 throws com.liferay.portal.SystemException,
340 com.liferay.portlet.social.NoSuchActivityException {
341 return getPersistence().findByReceiverUserId_Last(receiverUserId, obc);
342 }
343
344 public static com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext(
345 long activityId, long receiverUserId,
346 com.liferay.portal.kernel.util.OrderByComparator obc)
347 throws com.liferay.portal.SystemException,
348 com.liferay.portlet.social.NoSuchActivityException {
349 return getPersistence()
350 .findByReceiverUserId_PrevAndNext(activityId,
351 receiverUserId, obc);
352 }
353
354 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
355 long classNameId, long classPK)
356 throws com.liferay.portal.SystemException {
357 return getPersistence().findByC_C(classNameId, classPK);
358 }
359
360 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
361 long classNameId, long classPK, int start, int end)
362 throws com.liferay.portal.SystemException {
363 return getPersistence().findByC_C(classNameId, classPK, start, end);
364 }
365
366 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
367 long classNameId, long classPK, int start, int end,
368 com.liferay.portal.kernel.util.OrderByComparator obc)
369 throws com.liferay.portal.SystemException {
370 return getPersistence().findByC_C(classNameId, classPK, start, end, obc);
371 }
372
373 public static com.liferay.portlet.social.model.SocialActivity findByC_C_First(
374 long classNameId, long classPK,
375 com.liferay.portal.kernel.util.OrderByComparator obc)
376 throws com.liferay.portal.SystemException,
377 com.liferay.portlet.social.NoSuchActivityException {
378 return getPersistence().findByC_C_First(classNameId, classPK, obc);
379 }
380
381 public static com.liferay.portlet.social.model.SocialActivity findByC_C_Last(
382 long classNameId, long classPK,
383 com.liferay.portal.kernel.util.OrderByComparator obc)
384 throws com.liferay.portal.SystemException,
385 com.liferay.portlet.social.NoSuchActivityException {
386 return getPersistence().findByC_C_Last(classNameId, classPK, obc);
387 }
388
389 public static com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext(
390 long activityId, long classNameId, long classPK,
391 com.liferay.portal.kernel.util.OrderByComparator obc)
392 throws com.liferay.portal.SystemException,
393 com.liferay.portlet.social.NoSuchActivityException {
394 return getPersistence()
395 .findByC_C_PrevAndNext(activityId, classNameId, classPK, obc);
396 }
397
398 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
399 long mirrorActivityId, long classNameId, long classPK)
400 throws com.liferay.portal.SystemException {
401 return getPersistence()
402 .findByM_C_C(mirrorActivityId, classNameId, classPK);
403 }
404
405 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
406 long mirrorActivityId, long classNameId, long classPK, int start,
407 int end) throws com.liferay.portal.SystemException {
408 return getPersistence()
409 .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
410 end);
411 }
412
413 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
414 long mirrorActivityId, long classNameId, long classPK, int start,
415 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
416 throws com.liferay.portal.SystemException {
417 return getPersistence()
418 .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
419 end, obc);
420 }
421
422 public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_First(
423 long mirrorActivityId, long classNameId, long classPK,
424 com.liferay.portal.kernel.util.OrderByComparator obc)
425 throws com.liferay.portal.SystemException,
426 com.liferay.portlet.social.NoSuchActivityException {
427 return getPersistence()
428 .findByM_C_C_First(mirrorActivityId, classNameId, classPK,
429 obc);
430 }
431
432 public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last(
433 long mirrorActivityId, long classNameId, long classPK,
434 com.liferay.portal.kernel.util.OrderByComparator obc)
435 throws com.liferay.portal.SystemException,
436 com.liferay.portlet.social.NoSuchActivityException {
437 return getPersistence()
438 .findByM_C_C_Last(mirrorActivityId, classNameId, classPK, obc);
439 }
440
441 public static com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext(
442 long activityId, long mirrorActivityId, long classNameId, long classPK,
443 com.liferay.portal.kernel.util.OrderByComparator obc)
444 throws com.liferay.portal.SystemException,
445 com.liferay.portlet.social.NoSuchActivityException {
446 return getPersistence()
447 .findByM_C_C_PrevAndNext(activityId, mirrorActivityId,
448 classNameId, classPK, obc);
449 }
450
451 public static com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(
452 long groupId, long userId, long createDate, long classNameId,
453 long classPK, int type, long receiverUserId)
454 throws com.liferay.portal.SystemException,
455 com.liferay.portlet.social.NoSuchActivityException {
456 return getPersistence()
457 .findByG_U_CD_C_C_T_R(groupId, userId, createDate,
458 classNameId, classPK, type, receiverUserId);
459 }
460
461 public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
462 long groupId, long userId, long createDate, long classNameId,
463 long classPK, int type, long receiverUserId)
464 throws com.liferay.portal.SystemException {
465 return getPersistence()
466 .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate,
467 classNameId, classPK, type, receiverUserId);
468 }
469
470 public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
471 long groupId, long userId, long createDate, long classNameId,
472 long classPK, int type, long receiverUserId, boolean retrieveFromCache)
473 throws com.liferay.portal.SystemException {
474 return getPersistence()
475 .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate,
476 classNameId, classPK, type, receiverUserId, retrieveFromCache);
477 }
478
479 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
480 throws com.liferay.portal.SystemException {
481 return getPersistence().findAll();
482 }
483
484 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
485 int start, int end) throws com.liferay.portal.SystemException {
486 return getPersistence().findAll(start, end);
487 }
488
489 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
490 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
491 throws com.liferay.portal.SystemException {
492 return getPersistence().findAll(start, end, obc);
493 }
494
495 public static void removeByGroupId(long groupId)
496 throws com.liferay.portal.SystemException {
497 getPersistence().removeByGroupId(groupId);
498 }
499
500 public static void removeByCompanyId(long companyId)
501 throws com.liferay.portal.SystemException {
502 getPersistence().removeByCompanyId(companyId);
503 }
504
505 public static void removeByUserId(long userId)
506 throws com.liferay.portal.SystemException {
507 getPersistence().removeByUserId(userId);
508 }
509
510 public static void removeByMirrorActivityId(long mirrorActivityId)
511 throws com.liferay.portal.SystemException,
512 com.liferay.portlet.social.NoSuchActivityException {
513 getPersistence().removeByMirrorActivityId(mirrorActivityId);
514 }
515
516 public static void removeByClassNameId(long classNameId)
517 throws com.liferay.portal.SystemException {
518 getPersistence().removeByClassNameId(classNameId);
519 }
520
521 public static void removeByReceiverUserId(long receiverUserId)
522 throws com.liferay.portal.SystemException {
523 getPersistence().removeByReceiverUserId(receiverUserId);
524 }
525
526 public static void removeByC_C(long classNameId, long classPK)
527 throws com.liferay.portal.SystemException {
528 getPersistence().removeByC_C(classNameId, classPK);
529 }
530
531 public static void removeByM_C_C(long mirrorActivityId, long classNameId,
532 long classPK) throws com.liferay.portal.SystemException {
533 getPersistence().removeByM_C_C(mirrorActivityId, classNameId, classPK);
534 }
535
536 public static void removeByG_U_CD_C_C_T_R(long groupId, long userId,
537 long createDate, long classNameId, long classPK, int type,
538 long receiverUserId)
539 throws com.liferay.portal.SystemException,
540 com.liferay.portlet.social.NoSuchActivityException {
541 getPersistence()
542 .removeByG_U_CD_C_C_T_R(groupId, userId, createDate, classNameId,
543 classPK, type, receiverUserId);
544 }
545
546 public static void removeAll() throws com.liferay.portal.SystemException {
547 getPersistence().removeAll();
548 }
549
550 public static int countByGroupId(long groupId)
551 throws com.liferay.portal.SystemException {
552 return getPersistence().countByGroupId(groupId);
553 }
554
555 public static int countByCompanyId(long companyId)
556 throws com.liferay.portal.SystemException {
557 return getPersistence().countByCompanyId(companyId);
558 }
559
560 public static int countByUserId(long userId)
561 throws com.liferay.portal.SystemException {
562 return getPersistence().countByUserId(userId);
563 }
564
565 public static int countByMirrorActivityId(long mirrorActivityId)
566 throws com.liferay.portal.SystemException {
567 return getPersistence().countByMirrorActivityId(mirrorActivityId);
568 }
569
570 public static int countByClassNameId(long classNameId)
571 throws com.liferay.portal.SystemException {
572 return getPersistence().countByClassNameId(classNameId);
573 }
574
575 public static int countByReceiverUserId(long receiverUserId)
576 throws com.liferay.portal.SystemException {
577 return getPersistence().countByReceiverUserId(receiverUserId);
578 }
579
580 public static int countByC_C(long classNameId, long classPK)
581 throws com.liferay.portal.SystemException {
582 return getPersistence().countByC_C(classNameId, classPK);
583 }
584
585 public static int countByM_C_C(long mirrorActivityId, long classNameId,
586 long classPK) throws com.liferay.portal.SystemException {
587 return getPersistence()
588 .countByM_C_C(mirrorActivityId, classNameId, classPK);
589 }
590
591 public static int countByG_U_CD_C_C_T_R(long groupId, long userId,
592 long createDate, long classNameId, long classPK, int type,
593 long receiverUserId) throws com.liferay.portal.SystemException {
594 return getPersistence()
595 .countByG_U_CD_C_C_T_R(groupId, userId, createDate,
596 classNameId, classPK, type, receiverUserId);
597 }
598
599 public static int countAll() throws com.liferay.portal.SystemException {
600 return getPersistence().countAll();
601 }
602
603 public static SocialActivityPersistence getPersistence() {
604 if (_persistence == null) {
605 _persistence = (SocialActivityPersistence)PortalBeanLocatorUtil.locate(SocialActivityPersistence.class.getName());
606 }
607
608 return _persistence;
609 }
610
611 public void setPersistence(SocialActivityPersistence persistence) {
612 _persistence = persistence;
613 }
614
615 private static SocialActivityPersistence _persistence;
616 }