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