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