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