001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.social.model.SocialActivity;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       SocialActivityPersistence
030     * @see       SocialActivityPersistenceImpl
031     * @generated
032     */
033    public class SocialActivityUtil {
034            /**
035             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
036             */
037            public static void clearCache() {
038                    getPersistence().clearCache();
039            }
040    
041            /**
042             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
043             */
044            public static void clearCache(SocialActivity socialActivity) {
045                    getPersistence().clearCache(socialActivity);
046            }
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
050             */
051            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052                    throws SystemException {
053                    return getPersistence().countWithDynamicQuery(dynamicQuery);
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
058             */
059            public static List<SocialActivity> findWithDynamicQuery(
060                    DynamicQuery dynamicQuery) throws SystemException {
061                    return getPersistence().findWithDynamicQuery(dynamicQuery);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
066             */
067            public static List<SocialActivity> findWithDynamicQuery(
068                    DynamicQuery dynamicQuery, int start, int end)
069                    throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
075             */
076            public static List<SocialActivity> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end,
078                    OrderByComparator orderByComparator) throws SystemException {
079                    return getPersistence()
080                                       .findWithDynamicQuery(dynamicQuery, start, end,
081                            orderByComparator);
082            }
083    
084            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static SocialActivity remove(SocialActivity socialActivity)
088                    throws SystemException {
089                    return getPersistence().remove(socialActivity);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static SocialActivity update(SocialActivity socialActivity,
096                    boolean merge) throws SystemException {
097                    return getPersistence().update(socialActivity, merge);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
102             */
103            public static SocialActivity update(SocialActivity socialActivity,
104                    boolean merge, ServiceContext serviceContext) throws SystemException {
105                    return getPersistence().update(socialActivity, merge, serviceContext);
106            }
107    
108            public static void cacheResult(
109                    com.liferay.portlet.social.model.SocialActivity socialActivity) {
110                    getPersistence().cacheResult(socialActivity);
111            }
112    
113            public static void cacheResult(
114                    java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities) {
115                    getPersistence().cacheResult(socialActivities);
116            }
117    
118            public static com.liferay.portlet.social.model.SocialActivity create(
119                    long activityId) {
120                    return getPersistence().create(activityId);
121            }
122    
123            public static com.liferay.portlet.social.model.SocialActivity remove(
124                    long activityId)
125                    throws com.liferay.portal.kernel.exception.SystemException,
126                            com.liferay.portlet.social.NoSuchActivityException {
127                    return getPersistence().remove(activityId);
128            }
129    
130            public static com.liferay.portlet.social.model.SocialActivity updateImpl(
131                    com.liferay.portlet.social.model.SocialActivity socialActivity,
132                    boolean merge)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return getPersistence().updateImpl(socialActivity, merge);
135            }
136    
137            public static com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(
138                    long activityId)
139                    throws com.liferay.portal.kernel.exception.SystemException,
140                            com.liferay.portlet.social.NoSuchActivityException {
141                    return getPersistence().findByPrimaryKey(activityId);
142            }
143    
144            public static com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(
145                    long activityId)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return getPersistence().fetchByPrimaryKey(activityId);
148            }
149    
150            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
151                    long groupId)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return getPersistence().findByGroupId(groupId);
154            }
155    
156            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
157                    long groupId, int start, int end)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return getPersistence().findByGroupId(groupId, start, end);
160            }
161    
162            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
163                    long groupId, int start, int end,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence()
167                                       .findByGroupId(groupId, start, end, orderByComparator);
168            }
169    
170            public static com.liferay.portlet.social.model.SocialActivity findByGroupId_First(
171                    long groupId,
172                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173                    throws com.liferay.portal.kernel.exception.SystemException,
174                            com.liferay.portlet.social.NoSuchActivityException {
175                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
176            }
177    
178            public static com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(
179                    long groupId,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.kernel.exception.SystemException,
182                            com.liferay.portlet.social.NoSuchActivityException {
183                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
184            }
185    
186            public static com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(
187                    long activityId, long groupId,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.social.NoSuchActivityException {
191                    return getPersistence()
192                                       .findByGroupId_PrevAndNext(activityId, groupId,
193                            orderByComparator);
194            }
195    
196            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
197                    long companyId)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return getPersistence().findByCompanyId(companyId);
200            }
201    
202            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
203                    long companyId, int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getPersistence().findByCompanyId(companyId, start, end);
206            }
207    
208            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
209                    long companyId, int start, int end,
210                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence()
213                                       .findByCompanyId(companyId, start, end, orderByComparator);
214            }
215    
216            public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_First(
217                    long companyId,
218                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219                    throws com.liferay.portal.kernel.exception.SystemException,
220                            com.liferay.portlet.social.NoSuchActivityException {
221                    return getPersistence()
222                                       .findByCompanyId_First(companyId, orderByComparator);
223            }
224    
225            public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(
226                    long companyId,
227                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228                    throws com.liferay.portal.kernel.exception.SystemException,
229                            com.liferay.portlet.social.NoSuchActivityException {
230                    return getPersistence()
231                                       .findByCompanyId_Last(companyId, orderByComparator);
232            }
233    
234            public static com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(
235                    long activityId, long companyId,
236                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
237                    throws com.liferay.portal.kernel.exception.SystemException,
238                            com.liferay.portlet.social.NoSuchActivityException {
239                    return getPersistence()
240                                       .findByCompanyId_PrevAndNext(activityId, companyId,
241                            orderByComparator);
242            }
243    
244            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
245                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
246                    return getPersistence().findByUserId(userId);
247            }
248    
249            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
250                    long userId, int start, int end)
251                    throws com.liferay.portal.kernel.exception.SystemException {
252                    return getPersistence().findByUserId(userId, start, end);
253            }
254    
255            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
256                    long userId, int start, int end,
257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    return getPersistence()
260                                       .findByUserId(userId, start, end, orderByComparator);
261            }
262    
263            public static com.liferay.portlet.social.model.SocialActivity findByUserId_First(
264                    long userId,
265                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266                    throws com.liferay.portal.kernel.exception.SystemException,
267                            com.liferay.portlet.social.NoSuchActivityException {
268                    return getPersistence().findByUserId_First(userId, orderByComparator);
269            }
270    
271            public static com.liferay.portlet.social.model.SocialActivity findByUserId_Last(
272                    long userId,
273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274                    throws com.liferay.portal.kernel.exception.SystemException,
275                            com.liferay.portlet.social.NoSuchActivityException {
276                    return getPersistence().findByUserId_Last(userId, orderByComparator);
277            }
278    
279            public static com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(
280                    long activityId, long userId,
281                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282                    throws com.liferay.portal.kernel.exception.SystemException,
283                            com.liferay.portlet.social.NoSuchActivityException {
284                    return getPersistence()
285                                       .findByUserId_PrevAndNext(activityId, userId,
286                            orderByComparator);
287            }
288    
289            public static com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(
290                    long mirrorActivityId)
291                    throws com.liferay.portal.kernel.exception.SystemException,
292                            com.liferay.portlet.social.NoSuchActivityException {
293                    return getPersistence().findByMirrorActivityId(mirrorActivityId);
294            }
295    
296            public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
297                    long mirrorActivityId)
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    return getPersistence().fetchByMirrorActivityId(mirrorActivityId);
300            }
301    
302            public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
303                    long mirrorActivityId, boolean retrieveFromCache)
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    return getPersistence()
306                                       .fetchByMirrorActivityId(mirrorActivityId, retrieveFromCache);
307            }
308    
309            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
310                    long classNameId)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return getPersistence().findByClassNameId(classNameId);
313            }
314    
315            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
316                    long classNameId, int start, int end)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return getPersistence().findByClassNameId(classNameId, start, end);
319            }
320    
321            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
322                    long classNameId, int start, int end,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return getPersistence()
326                                       .findByClassNameId(classNameId, start, end, orderByComparator);
327            }
328    
329            public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_First(
330                    long classNameId,
331                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
332                    throws com.liferay.portal.kernel.exception.SystemException,
333                            com.liferay.portlet.social.NoSuchActivityException {
334                    return getPersistence()
335                                       .findByClassNameId_First(classNameId, orderByComparator);
336            }
337    
338            public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last(
339                    long classNameId,
340                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
341                    throws com.liferay.portal.kernel.exception.SystemException,
342                            com.liferay.portlet.social.NoSuchActivityException {
343                    return getPersistence()
344                                       .findByClassNameId_Last(classNameId, orderByComparator);
345            }
346    
347            public static com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext(
348                    long activityId, long classNameId,
349                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
350                    throws com.liferay.portal.kernel.exception.SystemException,
351                            com.liferay.portlet.social.NoSuchActivityException {
352                    return getPersistence()
353                                       .findByClassNameId_PrevAndNext(activityId, classNameId,
354                            orderByComparator);
355            }
356    
357            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
358                    long receiverUserId)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return getPersistence().findByReceiverUserId(receiverUserId);
361            }
362    
363            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
364                    long receiverUserId, int start, int end)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return getPersistence().findByReceiverUserId(receiverUserId, start, end);
367            }
368    
369            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
370                    long receiverUserId, int start, int end,
371                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return getPersistence()
374                                       .findByReceiverUserId(receiverUserId, start, end,
375                            orderByComparator);
376            }
377    
378            public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First(
379                    long receiverUserId,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException,
382                            com.liferay.portlet.social.NoSuchActivityException {
383                    return getPersistence()
384                                       .findByReceiverUserId_First(receiverUserId, orderByComparator);
385            }
386    
387            public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last(
388                    long receiverUserId,
389                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
390                    throws com.liferay.portal.kernel.exception.SystemException,
391                            com.liferay.portlet.social.NoSuchActivityException {
392                    return getPersistence()
393                                       .findByReceiverUserId_Last(receiverUserId, orderByComparator);
394            }
395    
396            public static com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext(
397                    long activityId, long receiverUserId,
398                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
399                    throws com.liferay.portal.kernel.exception.SystemException,
400                            com.liferay.portlet.social.NoSuchActivityException {
401                    return getPersistence()
402                                       .findByReceiverUserId_PrevAndNext(activityId,
403                            receiverUserId, orderByComparator);
404            }
405    
406            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
407                    long classNameId, long classPK)
408                    throws com.liferay.portal.kernel.exception.SystemException {
409                    return getPersistence().findByC_C(classNameId, classPK);
410            }
411    
412            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
413                    long classNameId, long classPK, int start, int end)
414                    throws com.liferay.portal.kernel.exception.SystemException {
415                    return getPersistence().findByC_C(classNameId, classPK, start, end);
416            }
417    
418            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
419                    long classNameId, long classPK, int start, int end,
420                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return getPersistence()
423                                       .findByC_C(classNameId, classPK, start, end,
424                            orderByComparator);
425            }
426    
427            public static com.liferay.portlet.social.model.SocialActivity findByC_C_First(
428                    long classNameId, long classPK,
429                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
430                    throws com.liferay.portal.kernel.exception.SystemException,
431                            com.liferay.portlet.social.NoSuchActivityException {
432                    return getPersistence()
433                                       .findByC_C_First(classNameId, classPK, orderByComparator);
434            }
435    
436            public static com.liferay.portlet.social.model.SocialActivity findByC_C_Last(
437                    long classNameId, long classPK,
438                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
439                    throws com.liferay.portal.kernel.exception.SystemException,
440                            com.liferay.portlet.social.NoSuchActivityException {
441                    return getPersistence()
442                                       .findByC_C_Last(classNameId, classPK, orderByComparator);
443            }
444    
445            public static com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext(
446                    long activityId, long classNameId, long classPK,
447                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
448                    throws com.liferay.portal.kernel.exception.SystemException,
449                            com.liferay.portlet.social.NoSuchActivityException {
450                    return getPersistence()
451                                       .findByC_C_PrevAndNext(activityId, classNameId, classPK,
452                            orderByComparator);
453            }
454    
455            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
456                    long mirrorActivityId, long classNameId, long classPK)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    return getPersistence()
459                                       .findByM_C_C(mirrorActivityId, classNameId, classPK);
460            }
461    
462            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
463                    long mirrorActivityId, long classNameId, long classPK, int start,
464                    int end) throws com.liferay.portal.kernel.exception.SystemException {
465                    return getPersistence()
466                                       .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
467                            end);
468            }
469    
470            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
471                    long mirrorActivityId, long classNameId, long classPK, int start,
472                    int end,
473                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
474                    throws com.liferay.portal.kernel.exception.SystemException {
475                    return getPersistence()
476                                       .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
477                            end, orderByComparator);
478            }
479    
480            public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_First(
481                    long mirrorActivityId, long classNameId, long classPK,
482                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
483                    throws com.liferay.portal.kernel.exception.SystemException,
484                            com.liferay.portlet.social.NoSuchActivityException {
485                    return getPersistence()
486                                       .findByM_C_C_First(mirrorActivityId, classNameId, classPK,
487                            orderByComparator);
488            }
489    
490            public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last(
491                    long mirrorActivityId, long classNameId, long classPK,
492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493                    throws com.liferay.portal.kernel.exception.SystemException,
494                            com.liferay.portlet.social.NoSuchActivityException {
495                    return getPersistence()
496                                       .findByM_C_C_Last(mirrorActivityId, classNameId, classPK,
497                            orderByComparator);
498            }
499    
500            public static com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext(
501                    long activityId, long mirrorActivityId, long classNameId, long classPK,
502                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
503                    throws com.liferay.portal.kernel.exception.SystemException,
504                            com.liferay.portlet.social.NoSuchActivityException {
505                    return getPersistence()
506                                       .findByM_C_C_PrevAndNext(activityId, mirrorActivityId,
507                            classNameId, classPK, orderByComparator);
508            }
509    
510            public static com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(
511                    long groupId, long userId, long createDate, long classNameId,
512                    long classPK, int type, long receiverUserId)
513                    throws com.liferay.portal.kernel.exception.SystemException,
514                            com.liferay.portlet.social.NoSuchActivityException {
515                    return getPersistence()
516                                       .findByG_U_CD_C_C_T_R(groupId, userId, createDate,
517                            classNameId, classPK, type, receiverUserId);
518            }
519    
520            public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
521                    long groupId, long userId, long createDate, long classNameId,
522                    long classPK, int type, long receiverUserId)
523                    throws com.liferay.portal.kernel.exception.SystemException {
524                    return getPersistence()
525                                       .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate,
526                            classNameId, classPK, type, receiverUserId);
527            }
528    
529            public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
530                    long groupId, long userId, long createDate, long classNameId,
531                    long classPK, int type, long receiverUserId, boolean retrieveFromCache)
532                    throws com.liferay.portal.kernel.exception.SystemException {
533                    return getPersistence()
534                                       .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate,
535                            classNameId, classPK, type, receiverUserId, retrieveFromCache);
536            }
537    
538            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
539                    throws com.liferay.portal.kernel.exception.SystemException {
540                    return getPersistence().findAll();
541            }
542    
543            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
544                    int start, int end)
545                    throws com.liferay.portal.kernel.exception.SystemException {
546                    return getPersistence().findAll(start, end);
547            }
548    
549            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
550                    int start, int end,
551                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
552                    throws com.liferay.portal.kernel.exception.SystemException {
553                    return getPersistence().findAll(start, end, orderByComparator);
554            }
555    
556            public static void removeByGroupId(long groupId)
557                    throws com.liferay.portal.kernel.exception.SystemException {
558                    getPersistence().removeByGroupId(groupId);
559            }
560    
561            public static void removeByCompanyId(long companyId)
562                    throws com.liferay.portal.kernel.exception.SystemException {
563                    getPersistence().removeByCompanyId(companyId);
564            }
565    
566            public static void removeByUserId(long userId)
567                    throws com.liferay.portal.kernel.exception.SystemException {
568                    getPersistence().removeByUserId(userId);
569            }
570    
571            public static void removeByMirrorActivityId(long mirrorActivityId)
572                    throws com.liferay.portal.kernel.exception.SystemException,
573                            com.liferay.portlet.social.NoSuchActivityException {
574                    getPersistence().removeByMirrorActivityId(mirrorActivityId);
575            }
576    
577            public static void removeByClassNameId(long classNameId)
578                    throws com.liferay.portal.kernel.exception.SystemException {
579                    getPersistence().removeByClassNameId(classNameId);
580            }
581    
582            public static void removeByReceiverUserId(long receiverUserId)
583                    throws com.liferay.portal.kernel.exception.SystemException {
584                    getPersistence().removeByReceiverUserId(receiverUserId);
585            }
586    
587            public static void removeByC_C(long classNameId, long classPK)
588                    throws com.liferay.portal.kernel.exception.SystemException {
589                    getPersistence().removeByC_C(classNameId, classPK);
590            }
591    
592            public static void removeByM_C_C(long mirrorActivityId, long classNameId,
593                    long classPK)
594                    throws com.liferay.portal.kernel.exception.SystemException {
595                    getPersistence().removeByM_C_C(mirrorActivityId, classNameId, classPK);
596            }
597    
598            public static void removeByG_U_CD_C_C_T_R(long groupId, long userId,
599                    long createDate, long classNameId, long classPK, int type,
600                    long receiverUserId)
601                    throws com.liferay.portal.kernel.exception.SystemException,
602                            com.liferay.portlet.social.NoSuchActivityException {
603                    getPersistence()
604                            .removeByG_U_CD_C_C_T_R(groupId, userId, createDate, classNameId,
605                            classPK, type, receiverUserId);
606            }
607    
608            public static void removeAll()
609                    throws com.liferay.portal.kernel.exception.SystemException {
610                    getPersistence().removeAll();
611            }
612    
613            public static int countByGroupId(long groupId)
614                    throws com.liferay.portal.kernel.exception.SystemException {
615                    return getPersistence().countByGroupId(groupId);
616            }
617    
618            public static int countByCompanyId(long companyId)
619                    throws com.liferay.portal.kernel.exception.SystemException {
620                    return getPersistence().countByCompanyId(companyId);
621            }
622    
623            public static int countByUserId(long userId)
624                    throws com.liferay.portal.kernel.exception.SystemException {
625                    return getPersistence().countByUserId(userId);
626            }
627    
628            public static int countByMirrorActivityId(long mirrorActivityId)
629                    throws com.liferay.portal.kernel.exception.SystemException {
630                    return getPersistence().countByMirrorActivityId(mirrorActivityId);
631            }
632    
633            public static int countByClassNameId(long classNameId)
634                    throws com.liferay.portal.kernel.exception.SystemException {
635                    return getPersistence().countByClassNameId(classNameId);
636            }
637    
638            public static int countByReceiverUserId(long receiverUserId)
639                    throws com.liferay.portal.kernel.exception.SystemException {
640                    return getPersistence().countByReceiverUserId(receiverUserId);
641            }
642    
643            public static int countByC_C(long classNameId, long classPK)
644                    throws com.liferay.portal.kernel.exception.SystemException {
645                    return getPersistence().countByC_C(classNameId, classPK);
646            }
647    
648            public static int countByM_C_C(long mirrorActivityId, long classNameId,
649                    long classPK)
650                    throws com.liferay.portal.kernel.exception.SystemException {
651                    return getPersistence()
652                                       .countByM_C_C(mirrorActivityId, classNameId, classPK);
653            }
654    
655            public static int countByG_U_CD_C_C_T_R(long groupId, long userId,
656                    long createDate, long classNameId, long classPK, int type,
657                    long receiverUserId)
658                    throws com.liferay.portal.kernel.exception.SystemException {
659                    return getPersistence()
660                                       .countByG_U_CD_C_C_T_R(groupId, userId, createDate,
661                            classNameId, classPK, type, receiverUserId);
662            }
663    
664            public static int countAll()
665                    throws com.liferay.portal.kernel.exception.SystemException {
666                    return getPersistence().countAll();
667            }
668    
669            public static SocialActivityPersistence getPersistence() {
670                    if (_persistence == null) {
671                            _persistence = (SocialActivityPersistence)PortalBeanLocatorUtil.locate(SocialActivityPersistence.class.getName());
672                    }
673    
674                    return _persistence;
675            }
676    
677            public void setPersistence(SocialActivityPersistence persistence) {
678                    _persistence = persistence;
679            }
680    
681            private static SocialActivityPersistence _persistence;
682    }