1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
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  /**
26   * <a href="SocialActivityUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       SocialActivityPersistence
35   * @see       SocialActivityPersistenceImpl
36   * @generated
37   */
38  public class SocialActivityUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
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      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static SocialActivity remove(SocialActivity socialActivity)
66          throws SystemException {
67          return getPersistence().remove(socialActivity);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
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     /**
101      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
102      */
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 orderByComparator)
141         throws com.liferay.portal.SystemException {
142         return getPersistence()
143                    .findByGroupId(groupId, start, end, orderByComparator);
144     }
145 
146     public static com.liferay.portlet.social.model.SocialActivity findByGroupId_First(
147         long groupId,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.social.NoSuchActivityException {
151         return getPersistence().findByGroupId_First(groupId, orderByComparator);
152     }
153 
154     public static com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(
155         long groupId,
156         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.social.NoSuchActivityException {
159         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
160     }
161 
162     public static com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(
163         long activityId, long groupId,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.social.NoSuchActivityException {
167         return getPersistence()
168                    .findByGroupId_PrevAndNext(activityId, groupId,
169             orderByComparator);
170     }
171 
172     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
173         long companyId) throws com.liferay.portal.SystemException {
174         return getPersistence().findByCompanyId(companyId);
175     }
176 
177     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
178         long companyId, int start, int end)
179         throws com.liferay.portal.SystemException {
180         return getPersistence().findByCompanyId(companyId, start, end);
181     }
182 
183     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
184         long companyId, int start, int end,
185         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186         throws com.liferay.portal.SystemException {
187         return getPersistence()
188                    .findByCompanyId(companyId, start, end, orderByComparator);
189     }
190 
191     public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_First(
192         long companyId,
193         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194         throws com.liferay.portal.SystemException,
195             com.liferay.portlet.social.NoSuchActivityException {
196         return getPersistence()
197                    .findByCompanyId_First(companyId, orderByComparator);
198     }
199 
200     public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(
201         long companyId,
202         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203         throws com.liferay.portal.SystemException,
204             com.liferay.portlet.social.NoSuchActivityException {
205         return getPersistence()
206                    .findByCompanyId_Last(companyId, orderByComparator);
207     }
208 
209     public static com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(
210         long activityId, long companyId,
211         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212         throws com.liferay.portal.SystemException,
213             com.liferay.portlet.social.NoSuchActivityException {
214         return getPersistence()
215                    .findByCompanyId_PrevAndNext(activityId, companyId,
216             orderByComparator);
217     }
218 
219     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
220         long userId) throws com.liferay.portal.SystemException {
221         return getPersistence().findByUserId(userId);
222     }
223 
224     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
225         long userId, int start, int end)
226         throws com.liferay.portal.SystemException {
227         return getPersistence().findByUserId(userId, start, end);
228     }
229 
230     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
231         long userId, int start, int end,
232         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
233         throws com.liferay.portal.SystemException {
234         return getPersistence()
235                    .findByUserId(userId, start, end, orderByComparator);
236     }
237 
238     public static com.liferay.portlet.social.model.SocialActivity findByUserId_First(
239         long userId,
240         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241         throws com.liferay.portal.SystemException,
242             com.liferay.portlet.social.NoSuchActivityException {
243         return getPersistence().findByUserId_First(userId, orderByComparator);
244     }
245 
246     public static com.liferay.portlet.social.model.SocialActivity findByUserId_Last(
247         long userId,
248         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
249         throws com.liferay.portal.SystemException,
250             com.liferay.portlet.social.NoSuchActivityException {
251         return getPersistence().findByUserId_Last(userId, orderByComparator);
252     }
253 
254     public static com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(
255         long activityId, long userId,
256         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257         throws com.liferay.portal.SystemException,
258             com.liferay.portlet.social.NoSuchActivityException {
259         return getPersistence()
260                    .findByUserId_PrevAndNext(activityId, userId,
261             orderByComparator);
262     }
263 
264     public static com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(
265         long mirrorActivityId)
266         throws com.liferay.portal.SystemException,
267             com.liferay.portlet.social.NoSuchActivityException {
268         return getPersistence().findByMirrorActivityId(mirrorActivityId);
269     }
270 
271     public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
272         long mirrorActivityId) throws com.liferay.portal.SystemException {
273         return getPersistence().fetchByMirrorActivityId(mirrorActivityId);
274     }
275 
276     public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
277         long mirrorActivityId, boolean retrieveFromCache)
278         throws com.liferay.portal.SystemException {
279         return getPersistence()
280                    .fetchByMirrorActivityId(mirrorActivityId, retrieveFromCache);
281     }
282 
283     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
284         long classNameId) throws com.liferay.portal.SystemException {
285         return getPersistence().findByClassNameId(classNameId);
286     }
287 
288     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
289         long classNameId, int start, int end)
290         throws com.liferay.portal.SystemException {
291         return getPersistence().findByClassNameId(classNameId, start, end);
292     }
293 
294     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
295         long classNameId, int start, int end,
296         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297         throws com.liferay.portal.SystemException {
298         return getPersistence()
299                    .findByClassNameId(classNameId, start, end, orderByComparator);
300     }
301 
302     public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_First(
303         long classNameId,
304         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305         throws com.liferay.portal.SystemException,
306             com.liferay.portlet.social.NoSuchActivityException {
307         return getPersistence()
308                    .findByClassNameId_First(classNameId, orderByComparator);
309     }
310 
311     public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last(
312         long classNameId,
313         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314         throws com.liferay.portal.SystemException,
315             com.liferay.portlet.social.NoSuchActivityException {
316         return getPersistence()
317                    .findByClassNameId_Last(classNameId, orderByComparator);
318     }
319 
320     public static com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext(
321         long activityId, long classNameId,
322         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
323         throws com.liferay.portal.SystemException,
324             com.liferay.portlet.social.NoSuchActivityException {
325         return getPersistence()
326                    .findByClassNameId_PrevAndNext(activityId, classNameId,
327             orderByComparator);
328     }
329 
330     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
331         long receiverUserId) throws com.liferay.portal.SystemException {
332         return getPersistence().findByReceiverUserId(receiverUserId);
333     }
334 
335     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
336         long receiverUserId, int start, int end)
337         throws com.liferay.portal.SystemException {
338         return getPersistence().findByReceiverUserId(receiverUserId, start, end);
339     }
340 
341     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
342         long receiverUserId, int start, int end,
343         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
344         throws com.liferay.portal.SystemException {
345         return getPersistence()
346                    .findByReceiverUserId(receiverUserId, start, end,
347             orderByComparator);
348     }
349 
350     public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First(
351         long receiverUserId,
352         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
353         throws com.liferay.portal.SystemException,
354             com.liferay.portlet.social.NoSuchActivityException {
355         return getPersistence()
356                    .findByReceiverUserId_First(receiverUserId, orderByComparator);
357     }
358 
359     public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last(
360         long receiverUserId,
361         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
362         throws com.liferay.portal.SystemException,
363             com.liferay.portlet.social.NoSuchActivityException {
364         return getPersistence()
365                    .findByReceiverUserId_Last(receiverUserId, orderByComparator);
366     }
367 
368     public static com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext(
369         long activityId, long receiverUserId,
370         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
371         throws com.liferay.portal.SystemException,
372             com.liferay.portlet.social.NoSuchActivityException {
373         return getPersistence()
374                    .findByReceiverUserId_PrevAndNext(activityId,
375             receiverUserId, orderByComparator);
376     }
377 
378     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
379         long classNameId, long classPK)
380         throws com.liferay.portal.SystemException {
381         return getPersistence().findByC_C(classNameId, classPK);
382     }
383 
384     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
385         long classNameId, long classPK, int start, int end)
386         throws com.liferay.portal.SystemException {
387         return getPersistence().findByC_C(classNameId, classPK, start, end);
388     }
389 
390     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
391         long classNameId, long classPK, int start, int end,
392         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
393         throws com.liferay.portal.SystemException {
394         return getPersistence()
395                    .findByC_C(classNameId, classPK, start, end,
396             orderByComparator);
397     }
398 
399     public static com.liferay.portlet.social.model.SocialActivity findByC_C_First(
400         long classNameId, long classPK,
401         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
402         throws com.liferay.portal.SystemException,
403             com.liferay.portlet.social.NoSuchActivityException {
404         return getPersistence()
405                    .findByC_C_First(classNameId, classPK, orderByComparator);
406     }
407 
408     public static com.liferay.portlet.social.model.SocialActivity findByC_C_Last(
409         long classNameId, long classPK,
410         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
411         throws com.liferay.portal.SystemException,
412             com.liferay.portlet.social.NoSuchActivityException {
413         return getPersistence()
414                    .findByC_C_Last(classNameId, classPK, orderByComparator);
415     }
416 
417     public static com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext(
418         long activityId, long classNameId, long classPK,
419         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
420         throws com.liferay.portal.SystemException,
421             com.liferay.portlet.social.NoSuchActivityException {
422         return getPersistence()
423                    .findByC_C_PrevAndNext(activityId, classNameId, classPK,
424             orderByComparator);
425     }
426 
427     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
428         long mirrorActivityId, long classNameId, long classPK)
429         throws com.liferay.portal.SystemException {
430         return getPersistence()
431                    .findByM_C_C(mirrorActivityId, classNameId, classPK);
432     }
433 
434     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
435         long mirrorActivityId, long classNameId, long classPK, int start,
436         int end) throws com.liferay.portal.SystemException {
437         return getPersistence()
438                    .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
439             end);
440     }
441 
442     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
443         long mirrorActivityId, long classNameId, long classPK, int start,
444         int end,
445         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
446         throws com.liferay.portal.SystemException {
447         return getPersistence()
448                    .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
449             end, orderByComparator);
450     }
451 
452     public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_First(
453         long mirrorActivityId, long classNameId, long classPK,
454         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
455         throws com.liferay.portal.SystemException,
456             com.liferay.portlet.social.NoSuchActivityException {
457         return getPersistence()
458                    .findByM_C_C_First(mirrorActivityId, classNameId, classPK,
459             orderByComparator);
460     }
461 
462     public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last(
463         long mirrorActivityId, long classNameId, long classPK,
464         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465         throws com.liferay.portal.SystemException,
466             com.liferay.portlet.social.NoSuchActivityException {
467         return getPersistence()
468                    .findByM_C_C_Last(mirrorActivityId, classNameId, classPK,
469             orderByComparator);
470     }
471 
472     public static com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext(
473         long activityId, long mirrorActivityId, long classNameId, long classPK,
474         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
475         throws com.liferay.portal.SystemException,
476             com.liferay.portlet.social.NoSuchActivityException {
477         return getPersistence()
478                    .findByM_C_C_PrevAndNext(activityId, mirrorActivityId,
479             classNameId, classPK, orderByComparator);
480     }
481 
482     public static com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(
483         long groupId, long userId, long createDate, long classNameId,
484         long classPK, int type, long receiverUserId)
485         throws com.liferay.portal.SystemException,
486             com.liferay.portlet.social.NoSuchActivityException {
487         return getPersistence()
488                    .findByG_U_CD_C_C_T_R(groupId, userId, createDate,
489             classNameId, classPK, type, receiverUserId);
490     }
491 
492     public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
493         long groupId, long userId, long createDate, long classNameId,
494         long classPK, int type, long receiverUserId)
495         throws com.liferay.portal.SystemException {
496         return getPersistence()
497                    .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate,
498             classNameId, classPK, type, receiverUserId);
499     }
500 
501     public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
502         long groupId, long userId, long createDate, long classNameId,
503         long classPK, int type, long receiverUserId, boolean retrieveFromCache)
504         throws com.liferay.portal.SystemException {
505         return getPersistence()
506                    .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate,
507             classNameId, classPK, type, receiverUserId, retrieveFromCache);
508     }
509 
510     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
511         throws com.liferay.portal.SystemException {
512         return getPersistence().findAll();
513     }
514 
515     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
516         int start, int end) throws com.liferay.portal.SystemException {
517         return getPersistence().findAll(start, end);
518     }
519 
520     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
521         int start, int end,
522         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
523         throws com.liferay.portal.SystemException {
524         return getPersistence().findAll(start, end, orderByComparator);
525     }
526 
527     public static void removeByGroupId(long groupId)
528         throws com.liferay.portal.SystemException {
529         getPersistence().removeByGroupId(groupId);
530     }
531 
532     public static void removeByCompanyId(long companyId)
533         throws com.liferay.portal.SystemException {
534         getPersistence().removeByCompanyId(companyId);
535     }
536 
537     public static void removeByUserId(long userId)
538         throws com.liferay.portal.SystemException {
539         getPersistence().removeByUserId(userId);
540     }
541 
542     public static void removeByMirrorActivityId(long mirrorActivityId)
543         throws com.liferay.portal.SystemException,
544             com.liferay.portlet.social.NoSuchActivityException {
545         getPersistence().removeByMirrorActivityId(mirrorActivityId);
546     }
547 
548     public static void removeByClassNameId(long classNameId)
549         throws com.liferay.portal.SystemException {
550         getPersistence().removeByClassNameId(classNameId);
551     }
552 
553     public static void removeByReceiverUserId(long receiverUserId)
554         throws com.liferay.portal.SystemException {
555         getPersistence().removeByReceiverUserId(receiverUserId);
556     }
557 
558     public static void removeByC_C(long classNameId, long classPK)
559         throws com.liferay.portal.SystemException {
560         getPersistence().removeByC_C(classNameId, classPK);
561     }
562 
563     public static void removeByM_C_C(long mirrorActivityId, long classNameId,
564         long classPK) throws com.liferay.portal.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.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() throws com.liferay.portal.SystemException {
579         getPersistence().removeAll();
580     }
581 
582     public static int countByGroupId(long groupId)
583         throws com.liferay.portal.SystemException {
584         return getPersistence().countByGroupId(groupId);
585     }
586 
587     public static int countByCompanyId(long companyId)
588         throws com.liferay.portal.SystemException {
589         return getPersistence().countByCompanyId(companyId);
590     }
591 
592     public static int countByUserId(long userId)
593         throws com.liferay.portal.SystemException {
594         return getPersistence().countByUserId(userId);
595     }
596 
597     public static int countByMirrorActivityId(long mirrorActivityId)
598         throws com.liferay.portal.SystemException {
599         return getPersistence().countByMirrorActivityId(mirrorActivityId);
600     }
601 
602     public static int countByClassNameId(long classNameId)
603         throws com.liferay.portal.SystemException {
604         return getPersistence().countByClassNameId(classNameId);
605     }
606 
607     public static int countByReceiverUserId(long receiverUserId)
608         throws com.liferay.portal.SystemException {
609         return getPersistence().countByReceiverUserId(receiverUserId);
610     }
611 
612     public static int countByC_C(long classNameId, long classPK)
613         throws com.liferay.portal.SystemException {
614         return getPersistence().countByC_C(classNameId, classPK);
615     }
616 
617     public static int countByM_C_C(long mirrorActivityId, long classNameId,
618         long classPK) throws com.liferay.portal.SystemException {
619         return getPersistence()
620                    .countByM_C_C(mirrorActivityId, classNameId, classPK);
621     }
622 
623     public static int countByG_U_CD_C_C_T_R(long groupId, long userId,
624         long createDate, long classNameId, long classPK, int type,
625         long receiverUserId) throws com.liferay.portal.SystemException {
626         return getPersistence()
627                    .countByG_U_CD_C_C_T_R(groupId, userId, createDate,
628             classNameId, classPK, type, receiverUserId);
629     }
630 
631     public static int countAll() throws com.liferay.portal.SystemException {
632         return getPersistence().countAll();
633     }
634 
635     public static SocialActivityPersistence getPersistence() {
636         if (_persistence == null) {
637             _persistence = (SocialActivityPersistence)PortalBeanLocatorUtil.locate(SocialActivityPersistence.class.getName());
638         }
639 
640         return _persistence;
641     }
642 
643     public void setPersistence(SocialActivityPersistence persistence) {
644         _persistence = persistence;
645     }
646 
647     private static SocialActivityPersistence _persistence;
648 }