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