1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.social.service.persistence;
24  
25  /**
26   * <a href="SocialActivityUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class SocialActivityUtil {
32      public static com.liferay.portlet.social.model.SocialActivity create(
33          long activityId) {
34          return getPersistence().create(activityId);
35      }
36  
37      public static com.liferay.portlet.social.model.SocialActivity remove(
38          long activityId)
39          throws com.liferay.portal.SystemException,
40              com.liferay.portlet.social.NoSuchActivityException {
41          return getPersistence().remove(activityId);
42      }
43  
44      public static com.liferay.portlet.social.model.SocialActivity remove(
45          com.liferay.portlet.social.model.SocialActivity socialActivity)
46          throws com.liferay.portal.SystemException {
47          return getPersistence().remove(socialActivity);
48      }
49  
50      /**
51       * @deprecated Use <code>update(SocialActivity socialActivity, boolean merge)</code>.
52       */
53      public static com.liferay.portlet.social.model.SocialActivity update(
54          com.liferay.portlet.social.model.SocialActivity socialActivity)
55          throws com.liferay.portal.SystemException {
56          return getPersistence().update(socialActivity);
57      }
58  
59      /**
60       * Add, update, or merge, the entity. This method also calls the model
61       * listeners to trigger the proper events associated with adding, deleting,
62       * or updating an entity.
63       *
64       * @param        socialActivity the entity to add, update, or merge
65       * @param        merge boolean value for whether to merge the entity. The
66       *                default value is false. Setting merge to true is more
67       *                expensive and should only be true when socialActivity is
68       *                transient. See LEP-5473 for a detailed discussion of this
69       *                method.
70       * @return        true if the portlet can be displayed via Ajax
71       */
72      public static com.liferay.portlet.social.model.SocialActivity update(
73          com.liferay.portlet.social.model.SocialActivity socialActivity,
74          boolean merge) throws com.liferay.portal.SystemException {
75          return getPersistence().update(socialActivity, merge);
76      }
77  
78      public static com.liferay.portlet.social.model.SocialActivity updateImpl(
79          com.liferay.portlet.social.model.SocialActivity socialActivity,
80          boolean merge) throws com.liferay.portal.SystemException {
81          return getPersistence().updateImpl(socialActivity, merge);
82      }
83  
84      public static com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(
85          long activityId)
86          throws com.liferay.portal.SystemException,
87              com.liferay.portlet.social.NoSuchActivityException {
88          return getPersistence().findByPrimaryKey(activityId);
89      }
90  
91      public static com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(
92          long activityId) throws com.liferay.portal.SystemException {
93          return getPersistence().fetchByPrimaryKey(activityId);
94      }
95  
96      public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
97          long groupId) throws com.liferay.portal.SystemException {
98          return getPersistence().findByGroupId(groupId);
99      }
100 
101     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
102         long groupId, int start, int end)
103         throws com.liferay.portal.SystemException {
104         return getPersistence().findByGroupId(groupId, start, end);
105     }
106 
107     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
108         long groupId, int start, int end,
109         com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException {
111         return getPersistence().findByGroupId(groupId, start, end, obc);
112     }
113 
114     public static com.liferay.portlet.social.model.SocialActivity findByGroupId_First(
115         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.SystemException,
117             com.liferay.portlet.social.NoSuchActivityException {
118         return getPersistence().findByGroupId_First(groupId, obc);
119     }
120 
121     public static com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(
122         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.social.NoSuchActivityException {
125         return getPersistence().findByGroupId_Last(groupId, obc);
126     }
127 
128     public static com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(
129         long activityId, long groupId,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException,
132             com.liferay.portlet.social.NoSuchActivityException {
133         return getPersistence()
134                    .findByGroupId_PrevAndNext(activityId, groupId, obc);
135     }
136 
137     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
138         long companyId) throws com.liferay.portal.SystemException {
139         return getPersistence().findByCompanyId(companyId);
140     }
141 
142     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
143         long companyId, int start, int end)
144         throws com.liferay.portal.SystemException {
145         return getPersistence().findByCompanyId(companyId, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
149         long companyId, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException {
152         return getPersistence().findByCompanyId(companyId, start, end, obc);
153     }
154 
155     public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_First(
156         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.social.NoSuchActivityException {
159         return getPersistence().findByCompanyId_First(companyId, obc);
160     }
161 
162     public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(
163         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.social.NoSuchActivityException {
166         return getPersistence().findByCompanyId_Last(companyId, obc);
167     }
168 
169     public static com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(
170         long activityId, long companyId,
171         com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.SystemException,
173             com.liferay.portlet.social.NoSuchActivityException {
174         return getPersistence()
175                    .findByCompanyId_PrevAndNext(activityId, companyId, obc);
176     }
177 
178     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
179         long userId) throws com.liferay.portal.SystemException {
180         return getPersistence().findByUserId(userId);
181     }
182 
183     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
184         long userId, int start, int end)
185         throws com.liferay.portal.SystemException {
186         return getPersistence().findByUserId(userId, start, end);
187     }
188 
189     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
190         long userId, int start, int end,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException {
193         return getPersistence().findByUserId(userId, start, end, obc);
194     }
195 
196     public static com.liferay.portlet.social.model.SocialActivity findByUserId_First(
197         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException,
199             com.liferay.portlet.social.NoSuchActivityException {
200         return getPersistence().findByUserId_First(userId, obc);
201     }
202 
203     public static com.liferay.portlet.social.model.SocialActivity findByUserId_Last(
204         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException,
206             com.liferay.portlet.social.NoSuchActivityException {
207         return getPersistence().findByUserId_Last(userId, obc);
208     }
209 
210     public static com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(
211         long activityId, long userId,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException,
214             com.liferay.portlet.social.NoSuchActivityException {
215         return getPersistence().findByUserId_PrevAndNext(activityId, userId, obc);
216     }
217 
218     public static com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(
219         long mirrorActivityId)
220         throws com.liferay.portal.SystemException,
221             com.liferay.portlet.social.NoSuchActivityException {
222         return getPersistence().findByMirrorActivityId(mirrorActivityId);
223     }
224 
225     public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
226         long mirrorActivityId) throws com.liferay.portal.SystemException {
227         return getPersistence().fetchByMirrorActivityId(mirrorActivityId);
228     }
229 
230     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
231         long classNameId) throws com.liferay.portal.SystemException {
232         return getPersistence().findByClassNameId(classNameId);
233     }
234 
235     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
236         long classNameId, int start, int end)
237         throws com.liferay.portal.SystemException {
238         return getPersistence().findByClassNameId(classNameId, start, end);
239     }
240 
241     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
242         long classNameId, int start, int end,
243         com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.SystemException {
245         return getPersistence().findByClassNameId(classNameId, start, end, obc);
246     }
247 
248     public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_First(
249         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
250         throws com.liferay.portal.SystemException,
251             com.liferay.portlet.social.NoSuchActivityException {
252         return getPersistence().findByClassNameId_First(classNameId, obc);
253     }
254 
255     public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last(
256         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
257         throws com.liferay.portal.SystemException,
258             com.liferay.portlet.social.NoSuchActivityException {
259         return getPersistence().findByClassNameId_Last(classNameId, obc);
260     }
261 
262     public static com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext(
263         long activityId, long classNameId,
264         com.liferay.portal.kernel.util.OrderByComparator obc)
265         throws com.liferay.portal.SystemException,
266             com.liferay.portlet.social.NoSuchActivityException {
267         return getPersistence()
268                    .findByClassNameId_PrevAndNext(activityId, classNameId, obc);
269     }
270 
271     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
272         long receiverUserId) throws com.liferay.portal.SystemException {
273         return getPersistence().findByReceiverUserId(receiverUserId);
274     }
275 
276     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
277         long receiverUserId, int start, int end)
278         throws com.liferay.portal.SystemException {
279         return getPersistence().findByReceiverUserId(receiverUserId, start, end);
280     }
281 
282     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
283         long receiverUserId, int start, int end,
284         com.liferay.portal.kernel.util.OrderByComparator obc)
285         throws com.liferay.portal.SystemException {
286         return getPersistence()
287                    .findByReceiverUserId(receiverUserId, start, end, obc);
288     }
289 
290     public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First(
291         long receiverUserId,
292         com.liferay.portal.kernel.util.OrderByComparator obc)
293         throws com.liferay.portal.SystemException,
294             com.liferay.portlet.social.NoSuchActivityException {
295         return getPersistence().findByReceiverUserId_First(receiverUserId, obc);
296     }
297 
298     public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last(
299         long receiverUserId,
300         com.liferay.portal.kernel.util.OrderByComparator obc)
301         throws com.liferay.portal.SystemException,
302             com.liferay.portlet.social.NoSuchActivityException {
303         return getPersistence().findByReceiverUserId_Last(receiverUserId, obc);
304     }
305 
306     public static com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext(
307         long activityId, long receiverUserId,
308         com.liferay.portal.kernel.util.OrderByComparator obc)
309         throws com.liferay.portal.SystemException,
310             com.liferay.portlet.social.NoSuchActivityException {
311         return getPersistence()
312                    .findByReceiverUserId_PrevAndNext(activityId,
313             receiverUserId, obc);
314     }
315 
316     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
317         long classNameId, long classPK)
318         throws com.liferay.portal.SystemException {
319         return getPersistence().findByC_C(classNameId, classPK);
320     }
321 
322     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
323         long classNameId, long classPK, int start, int end)
324         throws com.liferay.portal.SystemException {
325         return getPersistence().findByC_C(classNameId, classPK, start, end);
326     }
327 
328     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
329         long classNameId, long classPK, int start, int end,
330         com.liferay.portal.kernel.util.OrderByComparator obc)
331         throws com.liferay.portal.SystemException {
332         return getPersistence().findByC_C(classNameId, classPK, start, end, obc);
333     }
334 
335     public static com.liferay.portlet.social.model.SocialActivity findByC_C_First(
336         long classNameId, long classPK,
337         com.liferay.portal.kernel.util.OrderByComparator obc)
338         throws com.liferay.portal.SystemException,
339             com.liferay.portlet.social.NoSuchActivityException {
340         return getPersistence().findByC_C_First(classNameId, classPK, obc);
341     }
342 
343     public static com.liferay.portlet.social.model.SocialActivity findByC_C_Last(
344         long classNameId, long classPK,
345         com.liferay.portal.kernel.util.OrderByComparator obc)
346         throws com.liferay.portal.SystemException,
347             com.liferay.portlet.social.NoSuchActivityException {
348         return getPersistence().findByC_C_Last(classNameId, classPK, obc);
349     }
350 
351     public static com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext(
352         long activityId, long classNameId, long classPK,
353         com.liferay.portal.kernel.util.OrderByComparator obc)
354         throws com.liferay.portal.SystemException,
355             com.liferay.portlet.social.NoSuchActivityException {
356         return getPersistence()
357                    .findByC_C_PrevAndNext(activityId, classNameId, classPK, obc);
358     }
359 
360     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
361         long mirrorActivityId, long classNameId, long classPK)
362         throws com.liferay.portal.SystemException {
363         return getPersistence()
364                    .findByM_C_C(mirrorActivityId, classNameId, classPK);
365     }
366 
367     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
368         long mirrorActivityId, long classNameId, long classPK, int start,
369         int end) throws com.liferay.portal.SystemException {
370         return getPersistence()
371                    .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
372             end);
373     }
374 
375     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
376         long mirrorActivityId, long classNameId, long classPK, int start,
377         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
378         throws com.liferay.portal.SystemException {
379         return getPersistence()
380                    .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
381             end, obc);
382     }
383 
384     public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_First(
385         long mirrorActivityId, long classNameId, long classPK,
386         com.liferay.portal.kernel.util.OrderByComparator obc)
387         throws com.liferay.portal.SystemException,
388             com.liferay.portlet.social.NoSuchActivityException {
389         return getPersistence()
390                    .findByM_C_C_First(mirrorActivityId, classNameId, classPK,
391             obc);
392     }
393 
394     public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last(
395         long mirrorActivityId, long classNameId, long classPK,
396         com.liferay.portal.kernel.util.OrderByComparator obc)
397         throws com.liferay.portal.SystemException,
398             com.liferay.portlet.social.NoSuchActivityException {
399         return getPersistence()
400                    .findByM_C_C_Last(mirrorActivityId, classNameId, classPK, obc);
401     }
402 
403     public static com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext(
404         long activityId, long mirrorActivityId, long classNameId, long classPK,
405         com.liferay.portal.kernel.util.OrderByComparator obc)
406         throws com.liferay.portal.SystemException,
407             com.liferay.portlet.social.NoSuchActivityException {
408         return getPersistence()
409                    .findByM_C_C_PrevAndNext(activityId, mirrorActivityId,
410             classNameId, classPK, obc);
411     }
412 
413     public static com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(
414         long groupId, long userId, java.util.Date createDate, long classNameId,
415         long classPK, int type, long receiverUserId)
416         throws com.liferay.portal.SystemException,
417             com.liferay.portlet.social.NoSuchActivityException {
418         return getPersistence()
419                    .findByG_U_CD_C_C_T_R(groupId, userId, createDate,
420             classNameId, classPK, type, receiverUserId);
421     }
422 
423     public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
424         long groupId, long userId, java.util.Date createDate, long classNameId,
425         long classPK, int type, long receiverUserId)
426         throws com.liferay.portal.SystemException {
427         return getPersistence()
428                    .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate,
429             classNameId, classPK, type, receiverUserId);
430     }
431 
432     public static java.util.List<Object> findWithDynamicQuery(
433         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
434         throws com.liferay.portal.SystemException {
435         return getPersistence().findWithDynamicQuery(dynamicQuery);
436     }
437 
438     public static java.util.List<Object> findWithDynamicQuery(
439         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
440         int end) throws com.liferay.portal.SystemException {
441         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
442     }
443 
444     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
445         throws com.liferay.portal.SystemException {
446         return getPersistence().findAll();
447     }
448 
449     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
450         int start, int end) throws com.liferay.portal.SystemException {
451         return getPersistence().findAll(start, end);
452     }
453 
454     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
455         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
456         throws com.liferay.portal.SystemException {
457         return getPersistence().findAll(start, end, obc);
458     }
459 
460     public static void removeByGroupId(long groupId)
461         throws com.liferay.portal.SystemException {
462         getPersistence().removeByGroupId(groupId);
463     }
464 
465     public static void removeByCompanyId(long companyId)
466         throws com.liferay.portal.SystemException {
467         getPersistence().removeByCompanyId(companyId);
468     }
469 
470     public static void removeByUserId(long userId)
471         throws com.liferay.portal.SystemException {
472         getPersistence().removeByUserId(userId);
473     }
474 
475     public static void removeByMirrorActivityId(long mirrorActivityId)
476         throws com.liferay.portal.SystemException,
477             com.liferay.portlet.social.NoSuchActivityException {
478         getPersistence().removeByMirrorActivityId(mirrorActivityId);
479     }
480 
481     public static void removeByClassNameId(long classNameId)
482         throws com.liferay.portal.SystemException {
483         getPersistence().removeByClassNameId(classNameId);
484     }
485 
486     public static void removeByReceiverUserId(long receiverUserId)
487         throws com.liferay.portal.SystemException {
488         getPersistence().removeByReceiverUserId(receiverUserId);
489     }
490 
491     public static void removeByC_C(long classNameId, long classPK)
492         throws com.liferay.portal.SystemException {
493         getPersistence().removeByC_C(classNameId, classPK);
494     }
495 
496     public static void removeByM_C_C(long mirrorActivityId, long classNameId,
497         long classPK) throws com.liferay.portal.SystemException {
498         getPersistence().removeByM_C_C(mirrorActivityId, classNameId, classPK);
499     }
500 
501     public static void removeByG_U_CD_C_C_T_R(long groupId, long userId,
502         java.util.Date createDate, long classNameId, long classPK, int type,
503         long receiverUserId)
504         throws com.liferay.portal.SystemException,
505             com.liferay.portlet.social.NoSuchActivityException {
506         getPersistence()
507             .removeByG_U_CD_C_C_T_R(groupId, userId, createDate, classNameId,
508             classPK, type, receiverUserId);
509     }
510 
511     public static void removeAll() throws com.liferay.portal.SystemException {
512         getPersistence().removeAll();
513     }
514 
515     public static int countByGroupId(long groupId)
516         throws com.liferay.portal.SystemException {
517         return getPersistence().countByGroupId(groupId);
518     }
519 
520     public static int countByCompanyId(long companyId)
521         throws com.liferay.portal.SystemException {
522         return getPersistence().countByCompanyId(companyId);
523     }
524 
525     public static int countByUserId(long userId)
526         throws com.liferay.portal.SystemException {
527         return getPersistence().countByUserId(userId);
528     }
529 
530     public static int countByMirrorActivityId(long mirrorActivityId)
531         throws com.liferay.portal.SystemException {
532         return getPersistence().countByMirrorActivityId(mirrorActivityId);
533     }
534 
535     public static int countByClassNameId(long classNameId)
536         throws com.liferay.portal.SystemException {
537         return getPersistence().countByClassNameId(classNameId);
538     }
539 
540     public static int countByReceiverUserId(long receiverUserId)
541         throws com.liferay.portal.SystemException {
542         return getPersistence().countByReceiverUserId(receiverUserId);
543     }
544 
545     public static int countByC_C(long classNameId, long classPK)
546         throws com.liferay.portal.SystemException {
547         return getPersistence().countByC_C(classNameId, classPK);
548     }
549 
550     public static int countByM_C_C(long mirrorActivityId, long classNameId,
551         long classPK) throws com.liferay.portal.SystemException {
552         return getPersistence()
553                    .countByM_C_C(mirrorActivityId, classNameId, classPK);
554     }
555 
556     public static int countByG_U_CD_C_C_T_R(long groupId, long userId,
557         java.util.Date createDate, long classNameId, long classPK, int type,
558         long receiverUserId) throws com.liferay.portal.SystemException {
559         return getPersistence()
560                    .countByG_U_CD_C_C_T_R(groupId, userId, createDate,
561             classNameId, classPK, type, receiverUserId);
562     }
563 
564     public static int countAll() throws com.liferay.portal.SystemException {
565         return getPersistence().countAll();
566     }
567 
568     public static SocialActivityPersistence getPersistence() {
569         return _persistence;
570     }
571 
572     public void setPersistence(SocialActivityPersistence persistence) {
573         _persistence = persistence;
574     }
575 
576     private static SocialActivityPersistence _persistence;
577 }