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