1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
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  /**
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#clearCache(SocialActivity)
48       */
49      public static void clearCache(SocialActivity socialActivity) {
50          getPersistence().clearCache(socialActivity);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<SocialActivity> findWithDynamicQuery(
65          DynamicQuery dynamicQuery) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<SocialActivity> findWithDynamicQuery(
73          DynamicQuery dynamicQuery, int start, int end)
74          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.kernel.exception.SystemException,
112             com.liferay.portlet.social.NoSuchActivityException {
113         return getPersistence().remove(activityId);
114     }
115 
116     public static com.liferay.portlet.social.model.SocialActivity updateImpl(
117         com.liferay.portlet.social.model.SocialActivity socialActivity,
118         boolean merge)
119         throws com.liferay.portal.kernel.exception.SystemException {
120         return getPersistence().updateImpl(socialActivity, merge);
121     }
122 
123     public static com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(
124         long activityId)
125         throws com.liferay.portal.kernel.exception.SystemException,
126             com.liferay.portlet.social.NoSuchActivityException {
127         return getPersistence().findByPrimaryKey(activityId);
128     }
129 
130     public static com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(
131         long activityId)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().fetchByPrimaryKey(activityId);
134     }
135 
136     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
137         long groupId)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence().findByGroupId(groupId);
140     }
141 
142     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
143         long groupId, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence().findByGroupId(groupId, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
149         long groupId, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence()
153                    .findByGroupId(groupId, start, end, orderByComparator);
154     }
155 
156     public static com.liferay.portlet.social.model.SocialActivity findByGroupId_First(
157         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().findByGroupId_First(groupId, orderByComparator);
162     }
163 
164     public static com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(
165         long groupId,
166         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167         throws com.liferay.portal.kernel.exception.SystemException,
168             com.liferay.portlet.social.NoSuchActivityException {
169         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
170     }
171 
172     public static com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(
173         long activityId, long groupId,
174         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175         throws com.liferay.portal.kernel.exception.SystemException,
176             com.liferay.portlet.social.NoSuchActivityException {
177         return getPersistence()
178                    .findByGroupId_PrevAndNext(activityId, groupId,
179             orderByComparator);
180     }
181 
182     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
183         long companyId)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence().findByCompanyId(companyId);
186     }
187 
188     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
189         long companyId, int start, int end)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().findByCompanyId(companyId, start, end);
192     }
193 
194     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
195         long companyId, int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence()
199                    .findByCompanyId(companyId, start, end, orderByComparator);
200     }
201 
202     public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_First(
203         long companyId,
204         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205         throws com.liferay.portal.kernel.exception.SystemException,
206             com.liferay.portlet.social.NoSuchActivityException {
207         return getPersistence()
208                    .findByCompanyId_First(companyId, orderByComparator);
209     }
210 
211     public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(
212         long companyId,
213         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214         throws com.liferay.portal.kernel.exception.SystemException,
215             com.liferay.portlet.social.NoSuchActivityException {
216         return getPersistence()
217                    .findByCompanyId_Last(companyId, orderByComparator);
218     }
219 
220     public static com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(
221         long activityId, long companyId,
222         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223         throws com.liferay.portal.kernel.exception.SystemException,
224             com.liferay.portlet.social.NoSuchActivityException {
225         return getPersistence()
226                    .findByCompanyId_PrevAndNext(activityId, companyId,
227             orderByComparator);
228     }
229 
230     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
231         long userId) throws com.liferay.portal.kernel.exception.SystemException {
232         return getPersistence().findByUserId(userId);
233     }
234 
235     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
236         long userId, int start, int end)
237         throws com.liferay.portal.kernel.exception.SystemException {
238         return getPersistence().findByUserId(userId, start, end);
239     }
240 
241     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
242         long userId, int start, int end,
243         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244         throws com.liferay.portal.kernel.exception.SystemException {
245         return getPersistence()
246                    .findByUserId(userId, start, end, orderByComparator);
247     }
248 
249     public static com.liferay.portlet.social.model.SocialActivity findByUserId_First(
250         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().findByUserId_First(userId, orderByComparator);
255     }
256 
257     public static com.liferay.portlet.social.model.SocialActivity findByUserId_Last(
258         long userId,
259         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260         throws com.liferay.portal.kernel.exception.SystemException,
261             com.liferay.portlet.social.NoSuchActivityException {
262         return getPersistence().findByUserId_Last(userId, orderByComparator);
263     }
264 
265     public static com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(
266         long activityId, long userId,
267         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268         throws com.liferay.portal.kernel.exception.SystemException,
269             com.liferay.portlet.social.NoSuchActivityException {
270         return getPersistence()
271                    .findByUserId_PrevAndNext(activityId, userId,
272             orderByComparator);
273     }
274 
275     public static com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(
276         long mirrorActivityId)
277         throws com.liferay.portal.kernel.exception.SystemException,
278             com.liferay.portlet.social.NoSuchActivityException {
279         return getPersistence().findByMirrorActivityId(mirrorActivityId);
280     }
281 
282     public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
283         long mirrorActivityId)
284         throws com.liferay.portal.kernel.exception.SystemException {
285         return getPersistence().fetchByMirrorActivityId(mirrorActivityId);
286     }
287 
288     public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
289         long mirrorActivityId, boolean retrieveFromCache)
290         throws com.liferay.portal.kernel.exception.SystemException {
291         return getPersistence()
292                    .fetchByMirrorActivityId(mirrorActivityId, retrieveFromCache);
293     }
294 
295     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
296         long classNameId)
297         throws com.liferay.portal.kernel.exception.SystemException {
298         return getPersistence().findByClassNameId(classNameId);
299     }
300 
301     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
302         long classNameId, int start, int end)
303         throws com.liferay.portal.kernel.exception.SystemException {
304         return getPersistence().findByClassNameId(classNameId, start, end);
305     }
306 
307     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
308         long classNameId, int start, int end,
309         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310         throws com.liferay.portal.kernel.exception.SystemException {
311         return getPersistence()
312                    .findByClassNameId(classNameId, start, end, orderByComparator);
313     }
314 
315     public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_First(
316         long classNameId,
317         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318         throws com.liferay.portal.kernel.exception.SystemException,
319             com.liferay.portlet.social.NoSuchActivityException {
320         return getPersistence()
321                    .findByClassNameId_First(classNameId, orderByComparator);
322     }
323 
324     public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last(
325         long classNameId,
326         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327         throws com.liferay.portal.kernel.exception.SystemException,
328             com.liferay.portlet.social.NoSuchActivityException {
329         return getPersistence()
330                    .findByClassNameId_Last(classNameId, orderByComparator);
331     }
332 
333     public static com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext(
334         long activityId, long classNameId,
335         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
336         throws com.liferay.portal.kernel.exception.SystemException,
337             com.liferay.portlet.social.NoSuchActivityException {
338         return getPersistence()
339                    .findByClassNameId_PrevAndNext(activityId, classNameId,
340             orderByComparator);
341     }
342 
343     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
344         long receiverUserId)
345         throws com.liferay.portal.kernel.exception.SystemException {
346         return getPersistence().findByReceiverUserId(receiverUserId);
347     }
348 
349     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
350         long receiverUserId, int start, int end)
351         throws com.liferay.portal.kernel.exception.SystemException {
352         return getPersistence().findByReceiverUserId(receiverUserId, start, end);
353     }
354 
355     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
356         long receiverUserId, int start, int end,
357         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358         throws com.liferay.portal.kernel.exception.SystemException {
359         return getPersistence()
360                    .findByReceiverUserId(receiverUserId, start, end,
361             orderByComparator);
362     }
363 
364     public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First(
365         long receiverUserId,
366         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
367         throws com.liferay.portal.kernel.exception.SystemException,
368             com.liferay.portlet.social.NoSuchActivityException {
369         return getPersistence()
370                    .findByReceiverUserId_First(receiverUserId, orderByComparator);
371     }
372 
373     public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last(
374         long receiverUserId,
375         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
376         throws com.liferay.portal.kernel.exception.SystemException,
377             com.liferay.portlet.social.NoSuchActivityException {
378         return getPersistence()
379                    .findByReceiverUserId_Last(receiverUserId, orderByComparator);
380     }
381 
382     public static com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext(
383         long activityId, long receiverUserId,
384         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
385         throws com.liferay.portal.kernel.exception.SystemException,
386             com.liferay.portlet.social.NoSuchActivityException {
387         return getPersistence()
388                    .findByReceiverUserId_PrevAndNext(activityId,
389             receiverUserId, orderByComparator);
390     }
391 
392     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
393         long classNameId, long classPK)
394         throws com.liferay.portal.kernel.exception.SystemException {
395         return getPersistence().findByC_C(classNameId, classPK);
396     }
397 
398     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
399         long classNameId, long classPK, int start, int end)
400         throws com.liferay.portal.kernel.exception.SystemException {
401         return getPersistence().findByC_C(classNameId, classPK, start, end);
402     }
403 
404     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
405         long classNameId, long classPK, int start, int end,
406         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
407         throws com.liferay.portal.kernel.exception.SystemException {
408         return getPersistence()
409                    .findByC_C(classNameId, classPK, start, end,
410             orderByComparator);
411     }
412 
413     public static com.liferay.portlet.social.model.SocialActivity findByC_C_First(
414         long classNameId, long classPK,
415         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
416         throws com.liferay.portal.kernel.exception.SystemException,
417             com.liferay.portlet.social.NoSuchActivityException {
418         return getPersistence()
419                    .findByC_C_First(classNameId, classPK, orderByComparator);
420     }
421 
422     public static com.liferay.portlet.social.model.SocialActivity findByC_C_Last(
423         long classNameId, long classPK,
424         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
425         throws com.liferay.portal.kernel.exception.SystemException,
426             com.liferay.portlet.social.NoSuchActivityException {
427         return getPersistence()
428                    .findByC_C_Last(classNameId, classPK, orderByComparator);
429     }
430 
431     public static com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext(
432         long activityId, long classNameId, long classPK,
433         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
434         throws com.liferay.portal.kernel.exception.SystemException,
435             com.liferay.portlet.social.NoSuchActivityException {
436         return getPersistence()
437                    .findByC_C_PrevAndNext(activityId, classNameId, classPK,
438             orderByComparator);
439     }
440 
441     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
442         long mirrorActivityId, long classNameId, long classPK)
443         throws com.liferay.portal.kernel.exception.SystemException {
444         return getPersistence()
445                    .findByM_C_C(mirrorActivityId, classNameId, classPK);
446     }
447 
448     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
449         long mirrorActivityId, long classNameId, long classPK, int start,
450         int end) throws com.liferay.portal.kernel.exception.SystemException {
451         return getPersistence()
452                    .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
453             end);
454     }
455 
456     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
457         long mirrorActivityId, long classNameId, long classPK, int start,
458         int end,
459         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
460         throws com.liferay.portal.kernel.exception.SystemException {
461         return getPersistence()
462                    .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
463             end, orderByComparator);
464     }
465 
466     public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_First(
467         long mirrorActivityId, long classNameId, long classPK,
468         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
469         throws com.liferay.portal.kernel.exception.SystemException,
470             com.liferay.portlet.social.NoSuchActivityException {
471         return getPersistence()
472                    .findByM_C_C_First(mirrorActivityId, classNameId, classPK,
473             orderByComparator);
474     }
475 
476     public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last(
477         long mirrorActivityId, long classNameId, long classPK,
478         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479         throws com.liferay.portal.kernel.exception.SystemException,
480             com.liferay.portlet.social.NoSuchActivityException {
481         return getPersistence()
482                    .findByM_C_C_Last(mirrorActivityId, classNameId, classPK,
483             orderByComparator);
484     }
485 
486     public static com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext(
487         long activityId, long mirrorActivityId, long classNameId, long classPK,
488         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
489         throws com.liferay.portal.kernel.exception.SystemException,
490             com.liferay.portlet.social.NoSuchActivityException {
491         return getPersistence()
492                    .findByM_C_C_PrevAndNext(activityId, mirrorActivityId,
493             classNameId, classPK, orderByComparator);
494     }
495 
496     public static com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(
497         long groupId, long userId, long createDate, long classNameId,
498         long classPK, int type, long receiverUserId)
499         throws com.liferay.portal.kernel.exception.SystemException,
500             com.liferay.portlet.social.NoSuchActivityException {
501         return getPersistence()
502                    .findByG_U_CD_C_C_T_R(groupId, userId, createDate,
503             classNameId, classPK, type, receiverUserId);
504     }
505 
506     public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
507         long groupId, long userId, long createDate, long classNameId,
508         long classPK, int type, long receiverUserId)
509         throws com.liferay.portal.kernel.exception.SystemException {
510         return getPersistence()
511                    .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate,
512             classNameId, classPK, type, receiverUserId);
513     }
514 
515     public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
516         long groupId, long userId, long createDate, long classNameId,
517         long classPK, int type, long receiverUserId, boolean retrieveFromCache)
518         throws com.liferay.portal.kernel.exception.SystemException {
519         return getPersistence()
520                    .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate,
521             classNameId, classPK, type, receiverUserId, retrieveFromCache);
522     }
523 
524     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
525         throws com.liferay.portal.kernel.exception.SystemException {
526         return getPersistence().findAll();
527     }
528 
529     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
530         int start, int end)
531         throws com.liferay.portal.kernel.exception.SystemException {
532         return getPersistence().findAll(start, end);
533     }
534 
535     public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
536         int start, int end,
537         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
538         throws com.liferay.portal.kernel.exception.SystemException {
539         return getPersistence().findAll(start, end, orderByComparator);
540     }
541 
542     public static void removeByGroupId(long groupId)
543         throws com.liferay.portal.kernel.exception.SystemException {
544         getPersistence().removeByGroupId(groupId);
545     }
546 
547     public static void removeByCompanyId(long companyId)
548         throws com.liferay.portal.kernel.exception.SystemException {
549         getPersistence().removeByCompanyId(companyId);
550     }
551 
552     public static void removeByUserId(long userId)
553         throws com.liferay.portal.kernel.exception.SystemException {
554         getPersistence().removeByUserId(userId);
555     }
556 
557     public static void removeByMirrorActivityId(long mirrorActivityId)
558         throws com.liferay.portal.kernel.exception.SystemException,
559             com.liferay.portlet.social.NoSuchActivityException {
560         getPersistence().removeByMirrorActivityId(mirrorActivityId);
561     }
562 
563     public static void removeByClassNameId(long classNameId)
564         throws com.liferay.portal.kernel.exception.SystemException {
565         getPersistence().removeByClassNameId(classNameId);
566     }
567 
568     public static void removeByReceiverUserId(long receiverUserId)
569         throws com.liferay.portal.kernel.exception.SystemException {
570         getPersistence().removeByReceiverUserId(receiverUserId);
571     }
572 
573     public static void removeByC_C(long classNameId, long classPK)
574         throws com.liferay.portal.kernel.exception.SystemException {
575         getPersistence().removeByC_C(classNameId, classPK);
576     }
577 
578     public static void removeByM_C_C(long mirrorActivityId, long classNameId,
579         long classPK)
580         throws com.liferay.portal.kernel.exception.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.kernel.exception.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()
595         throws com.liferay.portal.kernel.exception.SystemException {
596         getPersistence().removeAll();
597     }
598 
599     public static int countByGroupId(long groupId)
600         throws com.liferay.portal.kernel.exception.SystemException {
601         return getPersistence().countByGroupId(groupId);
602     }
603 
604     public static int countByCompanyId(long companyId)
605         throws com.liferay.portal.kernel.exception.SystemException {
606         return getPersistence().countByCompanyId(companyId);
607     }
608 
609     public static int countByUserId(long userId)
610         throws com.liferay.portal.kernel.exception.SystemException {
611         return getPersistence().countByUserId(userId);
612     }
613 
614     public static int countByMirrorActivityId(long mirrorActivityId)
615         throws com.liferay.portal.kernel.exception.SystemException {
616         return getPersistence().countByMirrorActivityId(mirrorActivityId);
617     }
618 
619     public static int countByClassNameId(long classNameId)
620         throws com.liferay.portal.kernel.exception.SystemException {
621         return getPersistence().countByClassNameId(classNameId);
622     }
623 
624     public static int countByReceiverUserId(long receiverUserId)
625         throws com.liferay.portal.kernel.exception.SystemException {
626         return getPersistence().countByReceiverUserId(receiverUserId);
627     }
628 
629     public static int countByC_C(long classNameId, long classPK)
630         throws com.liferay.portal.kernel.exception.SystemException {
631         return getPersistence().countByC_C(classNameId, classPK);
632     }
633 
634     public static int countByM_C_C(long mirrorActivityId, long classNameId,
635         long classPK)
636         throws com.liferay.portal.kernel.exception.SystemException {
637         return getPersistence()
638                    .countByM_C_C(mirrorActivityId, classNameId, classPK);
639     }
640 
641     public static int countByG_U_CD_C_C_T_R(long groupId, long userId,
642         long createDate, long classNameId, long classPK, int type,
643         long receiverUserId)
644         throws com.liferay.portal.kernel.exception.SystemException {
645         return getPersistence()
646                    .countByG_U_CD_C_C_T_R(groupId, userId, createDate,
647             classNameId, classPK, type, receiverUserId);
648     }
649 
650     public static int countAll()
651         throws com.liferay.portal.kernel.exception.SystemException {
652         return getPersistence().countAll();
653     }
654 
655     public static SocialActivityPersistence getPersistence() {
656         if (_persistence == null) {
657             _persistence = (SocialActivityPersistence)PortalBeanLocatorUtil.locate(SocialActivityPersistence.class.getName());
658         }
659 
660         return _persistence;
661     }
662 
663     public void setPersistence(SocialActivityPersistence persistence) {
664         _persistence = persistence;
665     }
666 
667     private static SocialActivityPersistence _persistence;
668 }