001    /**
002     * Copyright (c) 2000-2013 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.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.social.model.SocialActivity;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the social activity service. This utility wraps {@link SocialActivityPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see SocialActivityPersistence
037     * @see SocialActivityPersistenceImpl
038     * @generated
039     */
040    public class SocialActivityUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(SocialActivity socialActivity) {
058                    getPersistence().clearCache(socialActivity);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<SocialActivity> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<SocialActivity> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<SocialActivity> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
099             */
100            public static SocialActivity update(SocialActivity socialActivity,
101                    boolean merge) throws SystemException {
102                    return getPersistence().update(socialActivity, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static SocialActivity update(SocialActivity socialActivity,
109                    boolean merge, ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(socialActivity, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the social activity in the entity cache if it is enabled.
115            *
116            * @param socialActivity the social activity
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.social.model.SocialActivity socialActivity) {
120                    getPersistence().cacheResult(socialActivity);
121            }
122    
123            /**
124            * Caches the social activities in the entity cache if it is enabled.
125            *
126            * @param socialActivities the social activities
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities) {
130                    getPersistence().cacheResult(socialActivities);
131            }
132    
133            /**
134            * Creates a new social activity with the primary key. Does not add the social activity to the database.
135            *
136            * @param activityId the primary key for the new social activity
137            * @return the new social activity
138            */
139            public static com.liferay.portlet.social.model.SocialActivity create(
140                    long activityId) {
141                    return getPersistence().create(activityId);
142            }
143    
144            /**
145            * Removes the social activity with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param activityId the primary key of the social activity
148            * @return the social activity that was removed
149            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public static com.liferay.portlet.social.model.SocialActivity remove(
153                    long activityId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.social.NoSuchActivityException {
156                    return getPersistence().remove(activityId);
157            }
158    
159            public static com.liferay.portlet.social.model.SocialActivity updateImpl(
160                    com.liferay.portlet.social.model.SocialActivity socialActivity,
161                    boolean merge)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().updateImpl(socialActivity, merge);
164            }
165    
166            /**
167            * Returns the social activity with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found.
168            *
169            * @param activityId the primary key of the social activity
170            * @return the social activity
171            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public static com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(
175                    long activityId)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.social.NoSuchActivityException {
178                    return getPersistence().findByPrimaryKey(activityId);
179            }
180    
181            /**
182            * Returns the social activity with the primary key or returns <code>null</code> if it could not be found.
183            *
184            * @param activityId the primary key of the social activity
185            * @return the social activity, or <code>null</code> if a social activity with the primary key could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public static com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(
189                    long activityId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return getPersistence().fetchByPrimaryKey(activityId);
192            }
193    
194            /**
195            * Returns all the social activities where groupId = &#63;.
196            *
197            * @param groupId the group ID
198            * @return the matching social activities
199            * @throws SystemException if a system exception occurred
200            */
201            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
202                    long groupId)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByGroupId(groupId);
205            }
206    
207            /**
208            * Returns a range of all the social activities where groupId = &#63;.
209            *
210            * <p>
211            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
212            * </p>
213            *
214            * @param groupId the group ID
215            * @param start the lower bound of the range of social activities
216            * @param end the upper bound of the range of social activities (not inclusive)
217            * @return the range of matching social activities
218            * @throws SystemException if a system exception occurred
219            */
220            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
221                    long groupId, int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return getPersistence().findByGroupId(groupId, start, end);
224            }
225    
226            /**
227            * Returns an ordered range of all the social activities where groupId = &#63;.
228            *
229            * <p>
230            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
231            * </p>
232            *
233            * @param groupId the group ID
234            * @param start the lower bound of the range of social activities
235            * @param end the upper bound of the range of social activities (not inclusive)
236            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
237            * @return the ordered range of matching social activities
238            * @throws SystemException if a system exception occurred
239            */
240            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
241                    long groupId, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence()
245                                       .findByGroupId(groupId, start, end, orderByComparator);
246            }
247    
248            /**
249            * Returns the first social activity in the ordered set where groupId = &#63;.
250            *
251            * @param groupId the group ID
252            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
253            * @return the first matching social activity
254            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
255            * @throws SystemException if a system exception occurred
256            */
257            public static com.liferay.portlet.social.model.SocialActivity findByGroupId_First(
258                    long groupId,
259                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260                    throws com.liferay.portal.kernel.exception.SystemException,
261                            com.liferay.portlet.social.NoSuchActivityException {
262                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
263            }
264    
265            /**
266            * Returns the first social activity in the ordered set where groupId = &#63;.
267            *
268            * @param groupId the group ID
269            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
270            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
271            * @throws SystemException if a system exception occurred
272            */
273            public static com.liferay.portlet.social.model.SocialActivity fetchByGroupId_First(
274                    long groupId,
275                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
278            }
279    
280            /**
281            * Returns the last social activity in the ordered set where groupId = &#63;.
282            *
283            * @param groupId the group ID
284            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
285            * @return the last matching social activity
286            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
287            * @throws SystemException if a system exception occurred
288            */
289            public static com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(
290                    long groupId,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException,
293                            com.liferay.portlet.social.NoSuchActivityException {
294                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
295            }
296    
297            /**
298            * Returns the last social activity in the ordered set where groupId = &#63;.
299            *
300            * @param groupId the group ID
301            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
302            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
303            * @throws SystemException if a system exception occurred
304            */
305            public static com.liferay.portlet.social.model.SocialActivity fetchByGroupId_Last(
306                    long groupId,
307                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
310            }
311    
312            /**
313            * Returns the social activities before and after the current social activity in the ordered set where groupId = &#63;.
314            *
315            * @param activityId the primary key of the current social activity
316            * @param groupId the group ID
317            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
318            * @return the previous, current, and next social activity
319            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
320            * @throws SystemException if a system exception occurred
321            */
322            public static com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(
323                    long activityId, long groupId,
324                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
325                    throws com.liferay.portal.kernel.exception.SystemException,
326                            com.liferay.portlet.social.NoSuchActivityException {
327                    return getPersistence()
328                                       .findByGroupId_PrevAndNext(activityId, groupId,
329                            orderByComparator);
330            }
331    
332            /**
333            * Returns all the social activities where companyId = &#63;.
334            *
335            * @param companyId the company ID
336            * @return the matching social activities
337            * @throws SystemException if a system exception occurred
338            */
339            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
340                    long companyId)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return getPersistence().findByCompanyId(companyId);
343            }
344    
345            /**
346            * Returns a range of all the social activities where companyId = &#63;.
347            *
348            * <p>
349            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
350            * </p>
351            *
352            * @param companyId the company ID
353            * @param start the lower bound of the range of social activities
354            * @param end the upper bound of the range of social activities (not inclusive)
355            * @return the range of matching social activities
356            * @throws SystemException if a system exception occurred
357            */
358            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
359                    long companyId, int start, int end)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return getPersistence().findByCompanyId(companyId, start, end);
362            }
363    
364            /**
365            * Returns an ordered range of all the social activities where companyId = &#63;.
366            *
367            * <p>
368            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
369            * </p>
370            *
371            * @param companyId the company ID
372            * @param start the lower bound of the range of social activities
373            * @param end the upper bound of the range of social activities (not inclusive)
374            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
375            * @return the ordered range of matching social activities
376            * @throws SystemException if a system exception occurred
377            */
378            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
379                    long companyId, int start, int end,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return getPersistence()
383                                       .findByCompanyId(companyId, start, end, orderByComparator);
384            }
385    
386            /**
387            * Returns the first social activity in the ordered set where companyId = &#63;.
388            *
389            * @param companyId the company ID
390            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
391            * @return the first matching social activity
392            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
393            * @throws SystemException if a system exception occurred
394            */
395            public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_First(
396                    long companyId,
397                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
398                    throws com.liferay.portal.kernel.exception.SystemException,
399                            com.liferay.portlet.social.NoSuchActivityException {
400                    return getPersistence()
401                                       .findByCompanyId_First(companyId, orderByComparator);
402            }
403    
404            /**
405            * Returns the first social activity in the ordered set where companyId = &#63;.
406            *
407            * @param companyId the company ID
408            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
409            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
410            * @throws SystemException if a system exception occurred
411            */
412            public static com.liferay.portlet.social.model.SocialActivity fetchByCompanyId_First(
413                    long companyId,
414                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
415                    throws com.liferay.portal.kernel.exception.SystemException {
416                    return getPersistence()
417                                       .fetchByCompanyId_First(companyId, orderByComparator);
418            }
419    
420            /**
421            * Returns the last social activity in the ordered set where companyId = &#63;.
422            *
423            * @param companyId the company ID
424            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
425            * @return the last matching social activity
426            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
427            * @throws SystemException if a system exception occurred
428            */
429            public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(
430                    long companyId,
431                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
432                    throws com.liferay.portal.kernel.exception.SystemException,
433                            com.liferay.portlet.social.NoSuchActivityException {
434                    return getPersistence()
435                                       .findByCompanyId_Last(companyId, orderByComparator);
436            }
437    
438            /**
439            * Returns the last social activity in the ordered set where companyId = &#63;.
440            *
441            * @param companyId the company ID
442            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
443            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
444            * @throws SystemException if a system exception occurred
445            */
446            public static com.liferay.portlet.social.model.SocialActivity fetchByCompanyId_Last(
447                    long companyId,
448                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
449                    throws com.liferay.portal.kernel.exception.SystemException {
450                    return getPersistence()
451                                       .fetchByCompanyId_Last(companyId, orderByComparator);
452            }
453    
454            /**
455            * Returns the social activities before and after the current social activity in the ordered set where companyId = &#63;.
456            *
457            * @param activityId the primary key of the current social activity
458            * @param companyId the company ID
459            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
460            * @return the previous, current, and next social activity
461            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
462            * @throws SystemException if a system exception occurred
463            */
464            public static com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(
465                    long activityId, long companyId,
466                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
467                    throws com.liferay.portal.kernel.exception.SystemException,
468                            com.liferay.portlet.social.NoSuchActivityException {
469                    return getPersistence()
470                                       .findByCompanyId_PrevAndNext(activityId, companyId,
471                            orderByComparator);
472            }
473    
474            /**
475            * Returns all the social activities where userId = &#63;.
476            *
477            * @param userId the user ID
478            * @return the matching social activities
479            * @throws SystemException if a system exception occurred
480            */
481            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
482                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
483                    return getPersistence().findByUserId(userId);
484            }
485    
486            /**
487            * Returns a range of all the social activities where userId = &#63;.
488            *
489            * <p>
490            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
491            * </p>
492            *
493            * @param userId the user ID
494            * @param start the lower bound of the range of social activities
495            * @param end the upper bound of the range of social activities (not inclusive)
496            * @return the range of matching social activities
497            * @throws SystemException if a system exception occurred
498            */
499            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
500                    long userId, int start, int end)
501                    throws com.liferay.portal.kernel.exception.SystemException {
502                    return getPersistence().findByUserId(userId, start, end);
503            }
504    
505            /**
506            * Returns an ordered range of all the social activities where userId = &#63;.
507            *
508            * <p>
509            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
510            * </p>
511            *
512            * @param userId the user ID
513            * @param start the lower bound of the range of social activities
514            * @param end the upper bound of the range of social activities (not inclusive)
515            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
516            * @return the ordered range of matching social activities
517            * @throws SystemException if a system exception occurred
518            */
519            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
520                    long userId, int start, int end,
521                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
522                    throws com.liferay.portal.kernel.exception.SystemException {
523                    return getPersistence()
524                                       .findByUserId(userId, start, end, orderByComparator);
525            }
526    
527            /**
528            * Returns the first social activity in the ordered set where userId = &#63;.
529            *
530            * @param userId the user ID
531            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
532            * @return the first matching social activity
533            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
534            * @throws SystemException if a system exception occurred
535            */
536            public static com.liferay.portlet.social.model.SocialActivity findByUserId_First(
537                    long userId,
538                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
539                    throws com.liferay.portal.kernel.exception.SystemException,
540                            com.liferay.portlet.social.NoSuchActivityException {
541                    return getPersistence().findByUserId_First(userId, orderByComparator);
542            }
543    
544            /**
545            * Returns the first social activity in the ordered set where userId = &#63;.
546            *
547            * @param userId the user ID
548            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
549            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
550            * @throws SystemException if a system exception occurred
551            */
552            public static com.liferay.portlet.social.model.SocialActivity fetchByUserId_First(
553                    long userId,
554                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
555                    throws com.liferay.portal.kernel.exception.SystemException {
556                    return getPersistence().fetchByUserId_First(userId, orderByComparator);
557            }
558    
559            /**
560            * Returns the last social activity in the ordered set where userId = &#63;.
561            *
562            * @param userId the user ID
563            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
564            * @return the last matching social activity
565            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
566            * @throws SystemException if a system exception occurred
567            */
568            public static com.liferay.portlet.social.model.SocialActivity findByUserId_Last(
569                    long userId,
570                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
571                    throws com.liferay.portal.kernel.exception.SystemException,
572                            com.liferay.portlet.social.NoSuchActivityException {
573                    return getPersistence().findByUserId_Last(userId, orderByComparator);
574            }
575    
576            /**
577            * Returns the last social activity in the ordered set where userId = &#63;.
578            *
579            * @param userId the user ID
580            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
581            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
582            * @throws SystemException if a system exception occurred
583            */
584            public static com.liferay.portlet.social.model.SocialActivity fetchByUserId_Last(
585                    long userId,
586                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
587                    throws com.liferay.portal.kernel.exception.SystemException {
588                    return getPersistence().fetchByUserId_Last(userId, orderByComparator);
589            }
590    
591            /**
592            * Returns the social activities before and after the current social activity in the ordered set where userId = &#63;.
593            *
594            * @param activityId the primary key of the current social activity
595            * @param userId the user ID
596            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
597            * @return the previous, current, and next social activity
598            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
599            * @throws SystemException if a system exception occurred
600            */
601            public static com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(
602                    long activityId, long userId,
603                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
604                    throws com.liferay.portal.kernel.exception.SystemException,
605                            com.liferay.portlet.social.NoSuchActivityException {
606                    return getPersistence()
607                                       .findByUserId_PrevAndNext(activityId, userId,
608                            orderByComparator);
609            }
610    
611            /**
612            * Returns the social activity where mirrorActivityId = &#63; or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found.
613            *
614            * @param mirrorActivityId the mirror activity ID
615            * @return the matching social activity
616            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
617            * @throws SystemException if a system exception occurred
618            */
619            public static com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(
620                    long mirrorActivityId)
621                    throws com.liferay.portal.kernel.exception.SystemException,
622                            com.liferay.portlet.social.NoSuchActivityException {
623                    return getPersistence().findByMirrorActivityId(mirrorActivityId);
624            }
625    
626            /**
627            * Returns the social activity where mirrorActivityId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
628            *
629            * @param mirrorActivityId the mirror activity ID
630            * @return the matching social activity, or <code>null</code> if a matching social activity could not be found
631            * @throws SystemException if a system exception occurred
632            */
633            public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
634                    long mirrorActivityId)
635                    throws com.liferay.portal.kernel.exception.SystemException {
636                    return getPersistence().fetchByMirrorActivityId(mirrorActivityId);
637            }
638    
639            /**
640            * Returns the social activity where mirrorActivityId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
641            *
642            * @param mirrorActivityId the mirror activity ID
643            * @param retrieveFromCache whether to use the finder cache
644            * @return the matching social activity, or <code>null</code> if a matching social activity could not be found
645            * @throws SystemException if a system exception occurred
646            */
647            public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
648                    long mirrorActivityId, boolean retrieveFromCache)
649                    throws com.liferay.portal.kernel.exception.SystemException {
650                    return getPersistence()
651                                       .fetchByMirrorActivityId(mirrorActivityId, retrieveFromCache);
652            }
653    
654            /**
655            * Returns all the social activities where classNameId = &#63;.
656            *
657            * @param classNameId the class name ID
658            * @return the matching social activities
659            * @throws SystemException if a system exception occurred
660            */
661            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
662                    long classNameId)
663                    throws com.liferay.portal.kernel.exception.SystemException {
664                    return getPersistence().findByClassNameId(classNameId);
665            }
666    
667            /**
668            * Returns a range of all the social activities where classNameId = &#63;.
669            *
670            * <p>
671            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
672            * </p>
673            *
674            * @param classNameId the class name ID
675            * @param start the lower bound of the range of social activities
676            * @param end the upper bound of the range of social activities (not inclusive)
677            * @return the range of matching social activities
678            * @throws SystemException if a system exception occurred
679            */
680            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
681                    long classNameId, int start, int end)
682                    throws com.liferay.portal.kernel.exception.SystemException {
683                    return getPersistence().findByClassNameId(classNameId, start, end);
684            }
685    
686            /**
687            * Returns an ordered range of all the social activities where classNameId = &#63;.
688            *
689            * <p>
690            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
691            * </p>
692            *
693            * @param classNameId the class name ID
694            * @param start the lower bound of the range of social activities
695            * @param end the upper bound of the range of social activities (not inclusive)
696            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
697            * @return the ordered range of matching social activities
698            * @throws SystemException if a system exception occurred
699            */
700            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
701                    long classNameId, int start, int end,
702                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
703                    throws com.liferay.portal.kernel.exception.SystemException {
704                    return getPersistence()
705                                       .findByClassNameId(classNameId, start, end, orderByComparator);
706            }
707    
708            /**
709            * Returns the first social activity in the ordered set where classNameId = &#63;.
710            *
711            * @param classNameId the class name ID
712            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
713            * @return the first matching social activity
714            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
715            * @throws SystemException if a system exception occurred
716            */
717            public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_First(
718                    long classNameId,
719                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
720                    throws com.liferay.portal.kernel.exception.SystemException,
721                            com.liferay.portlet.social.NoSuchActivityException {
722                    return getPersistence()
723                                       .findByClassNameId_First(classNameId, orderByComparator);
724            }
725    
726            /**
727            * Returns the first social activity in the ordered set where classNameId = &#63;.
728            *
729            * @param classNameId the class name ID
730            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
731            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
732            * @throws SystemException if a system exception occurred
733            */
734            public static com.liferay.portlet.social.model.SocialActivity fetchByClassNameId_First(
735                    long classNameId,
736                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
737                    throws com.liferay.portal.kernel.exception.SystemException {
738                    return getPersistence()
739                                       .fetchByClassNameId_First(classNameId, orderByComparator);
740            }
741    
742            /**
743            * Returns the last social activity in the ordered set where classNameId = &#63;.
744            *
745            * @param classNameId the class name ID
746            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
747            * @return the last matching social activity
748            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
749            * @throws SystemException if a system exception occurred
750            */
751            public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last(
752                    long classNameId,
753                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
754                    throws com.liferay.portal.kernel.exception.SystemException,
755                            com.liferay.portlet.social.NoSuchActivityException {
756                    return getPersistence()
757                                       .findByClassNameId_Last(classNameId, orderByComparator);
758            }
759    
760            /**
761            * Returns the last social activity in the ordered set where classNameId = &#63;.
762            *
763            * @param classNameId the class name ID
764            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
765            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
766            * @throws SystemException if a system exception occurred
767            */
768            public static com.liferay.portlet.social.model.SocialActivity fetchByClassNameId_Last(
769                    long classNameId,
770                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
771                    throws com.liferay.portal.kernel.exception.SystemException {
772                    return getPersistence()
773                                       .fetchByClassNameId_Last(classNameId, orderByComparator);
774            }
775    
776            /**
777            * Returns the social activities before and after the current social activity in the ordered set where classNameId = &#63;.
778            *
779            * @param activityId the primary key of the current social activity
780            * @param classNameId the class name ID
781            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
782            * @return the previous, current, and next social activity
783            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
784            * @throws SystemException if a system exception occurred
785            */
786            public static com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext(
787                    long activityId, long classNameId,
788                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
789                    throws com.liferay.portal.kernel.exception.SystemException,
790                            com.liferay.portlet.social.NoSuchActivityException {
791                    return getPersistence()
792                                       .findByClassNameId_PrevAndNext(activityId, classNameId,
793                            orderByComparator);
794            }
795    
796            /**
797            * Returns all the social activities where receiverUserId = &#63;.
798            *
799            * @param receiverUserId the receiver user ID
800            * @return the matching social activities
801            * @throws SystemException if a system exception occurred
802            */
803            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
804                    long receiverUserId)
805                    throws com.liferay.portal.kernel.exception.SystemException {
806                    return getPersistence().findByReceiverUserId(receiverUserId);
807            }
808    
809            /**
810            * Returns a range of all the social activities where receiverUserId = &#63;.
811            *
812            * <p>
813            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
814            * </p>
815            *
816            * @param receiverUserId the receiver user ID
817            * @param start the lower bound of the range of social activities
818            * @param end the upper bound of the range of social activities (not inclusive)
819            * @return the range of matching social activities
820            * @throws SystemException if a system exception occurred
821            */
822            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
823                    long receiverUserId, int start, int end)
824                    throws com.liferay.portal.kernel.exception.SystemException {
825                    return getPersistence().findByReceiverUserId(receiverUserId, start, end);
826            }
827    
828            /**
829            * Returns an ordered range of all the social activities where receiverUserId = &#63;.
830            *
831            * <p>
832            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
833            * </p>
834            *
835            * @param receiverUserId the receiver user ID
836            * @param start the lower bound of the range of social activities
837            * @param end the upper bound of the range of social activities (not inclusive)
838            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
839            * @return the ordered range of matching social activities
840            * @throws SystemException if a system exception occurred
841            */
842            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
843                    long receiverUserId, int start, int end,
844                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
845                    throws com.liferay.portal.kernel.exception.SystemException {
846                    return getPersistence()
847                                       .findByReceiverUserId(receiverUserId, start, end,
848                            orderByComparator);
849            }
850    
851            /**
852            * Returns the first social activity in the ordered set where receiverUserId = &#63;.
853            *
854            * @param receiverUserId the receiver user ID
855            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
856            * @return the first matching social activity
857            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
858            * @throws SystemException if a system exception occurred
859            */
860            public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First(
861                    long receiverUserId,
862                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
863                    throws com.liferay.portal.kernel.exception.SystemException,
864                            com.liferay.portlet.social.NoSuchActivityException {
865                    return getPersistence()
866                                       .findByReceiverUserId_First(receiverUserId, orderByComparator);
867            }
868    
869            /**
870            * Returns the first social activity in the ordered set where receiverUserId = &#63;.
871            *
872            * @param receiverUserId the receiver user ID
873            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
874            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
875            * @throws SystemException if a system exception occurred
876            */
877            public static com.liferay.portlet.social.model.SocialActivity fetchByReceiverUserId_First(
878                    long receiverUserId,
879                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
880                    throws com.liferay.portal.kernel.exception.SystemException {
881                    return getPersistence()
882                                       .fetchByReceiverUserId_First(receiverUserId,
883                            orderByComparator);
884            }
885    
886            /**
887            * Returns the last social activity in the ordered set where receiverUserId = &#63;.
888            *
889            * @param receiverUserId the receiver user ID
890            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
891            * @return the last matching social activity
892            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
893            * @throws SystemException if a system exception occurred
894            */
895            public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last(
896                    long receiverUserId,
897                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
898                    throws com.liferay.portal.kernel.exception.SystemException,
899                            com.liferay.portlet.social.NoSuchActivityException {
900                    return getPersistence()
901                                       .findByReceiverUserId_Last(receiverUserId, orderByComparator);
902            }
903    
904            /**
905            * Returns the last social activity in the ordered set where receiverUserId = &#63;.
906            *
907            * @param receiverUserId the receiver user ID
908            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
909            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
910            * @throws SystemException if a system exception occurred
911            */
912            public static com.liferay.portlet.social.model.SocialActivity fetchByReceiverUserId_Last(
913                    long receiverUserId,
914                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
915                    throws com.liferay.portal.kernel.exception.SystemException {
916                    return getPersistence()
917                                       .fetchByReceiverUserId_Last(receiverUserId, orderByComparator);
918            }
919    
920            /**
921            * Returns the social activities before and after the current social activity in the ordered set where receiverUserId = &#63;.
922            *
923            * @param activityId the primary key of the current social activity
924            * @param receiverUserId the receiver user ID
925            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
926            * @return the previous, current, and next social activity
927            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
928            * @throws SystemException if a system exception occurred
929            */
930            public static com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext(
931                    long activityId, long receiverUserId,
932                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
933                    throws com.liferay.portal.kernel.exception.SystemException,
934                            com.liferay.portlet.social.NoSuchActivityException {
935                    return getPersistence()
936                                       .findByReceiverUserId_PrevAndNext(activityId,
937                            receiverUserId, orderByComparator);
938            }
939    
940            /**
941            * Returns all the social activities where classNameId = &#63; and classPK = &#63;.
942            *
943            * @param classNameId the class name ID
944            * @param classPK the class p k
945            * @return the matching social activities
946            * @throws SystemException if a system exception occurred
947            */
948            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
949                    long classNameId, long classPK)
950                    throws com.liferay.portal.kernel.exception.SystemException {
951                    return getPersistence().findByC_C(classNameId, classPK);
952            }
953    
954            /**
955            * Returns a range of all the social activities where classNameId = &#63; and classPK = &#63;.
956            *
957            * <p>
958            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
959            * </p>
960            *
961            * @param classNameId the class name ID
962            * @param classPK the class p k
963            * @param start the lower bound of the range of social activities
964            * @param end the upper bound of the range of social activities (not inclusive)
965            * @return the range of matching social activities
966            * @throws SystemException if a system exception occurred
967            */
968            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
969                    long classNameId, long classPK, int start, int end)
970                    throws com.liferay.portal.kernel.exception.SystemException {
971                    return getPersistence().findByC_C(classNameId, classPK, start, end);
972            }
973    
974            /**
975            * Returns an ordered range of all the social activities where classNameId = &#63; and classPK = &#63;.
976            *
977            * <p>
978            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
979            * </p>
980            *
981            * @param classNameId the class name ID
982            * @param classPK the class p k
983            * @param start the lower bound of the range of social activities
984            * @param end the upper bound of the range of social activities (not inclusive)
985            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
986            * @return the ordered range of matching social activities
987            * @throws SystemException if a system exception occurred
988            */
989            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
990                    long classNameId, long classPK, int start, int end,
991                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
992                    throws com.liferay.portal.kernel.exception.SystemException {
993                    return getPersistence()
994                                       .findByC_C(classNameId, classPK, start, end,
995                            orderByComparator);
996            }
997    
998            /**
999            * Returns the first social activity in the ordered set where classNameId = &#63; and classPK = &#63;.
1000            *
1001            * @param classNameId the class name ID
1002            * @param classPK the class p k
1003            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1004            * @return the first matching social activity
1005            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1006            * @throws SystemException if a system exception occurred
1007            */
1008            public static com.liferay.portlet.social.model.SocialActivity findByC_C_First(
1009                    long classNameId, long classPK,
1010                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1011                    throws com.liferay.portal.kernel.exception.SystemException,
1012                            com.liferay.portlet.social.NoSuchActivityException {
1013                    return getPersistence()
1014                                       .findByC_C_First(classNameId, classPK, orderByComparator);
1015            }
1016    
1017            /**
1018            * Returns the first social activity in the ordered set where classNameId = &#63; and classPK = &#63;.
1019            *
1020            * @param classNameId the class name ID
1021            * @param classPK the class p k
1022            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1023            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
1024            * @throws SystemException if a system exception occurred
1025            */
1026            public static com.liferay.portlet.social.model.SocialActivity fetchByC_C_First(
1027                    long classNameId, long classPK,
1028                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1029                    throws com.liferay.portal.kernel.exception.SystemException {
1030                    return getPersistence()
1031                                       .fetchByC_C_First(classNameId, classPK, orderByComparator);
1032            }
1033    
1034            /**
1035            * Returns the last social activity in the ordered set where classNameId = &#63; and classPK = &#63;.
1036            *
1037            * @param classNameId the class name ID
1038            * @param classPK the class p k
1039            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1040            * @return the last matching social activity
1041            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1042            * @throws SystemException if a system exception occurred
1043            */
1044            public static com.liferay.portlet.social.model.SocialActivity findByC_C_Last(
1045                    long classNameId, long classPK,
1046                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1047                    throws com.liferay.portal.kernel.exception.SystemException,
1048                            com.liferay.portlet.social.NoSuchActivityException {
1049                    return getPersistence()
1050                                       .findByC_C_Last(classNameId, classPK, orderByComparator);
1051            }
1052    
1053            /**
1054            * Returns the last social activity in the ordered set where classNameId = &#63; and classPK = &#63;.
1055            *
1056            * @param classNameId the class name ID
1057            * @param classPK the class p k
1058            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1059            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
1060            * @throws SystemException if a system exception occurred
1061            */
1062            public static com.liferay.portlet.social.model.SocialActivity fetchByC_C_Last(
1063                    long classNameId, long classPK,
1064                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1065                    throws com.liferay.portal.kernel.exception.SystemException {
1066                    return getPersistence()
1067                                       .fetchByC_C_Last(classNameId, classPK, orderByComparator);
1068            }
1069    
1070            /**
1071            * Returns the social activities before and after the current social activity in the ordered set where classNameId = &#63; and classPK = &#63;.
1072            *
1073            * @param activityId the primary key of the current social activity
1074            * @param classNameId the class name ID
1075            * @param classPK the class p k
1076            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1077            * @return the previous, current, and next social activity
1078            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
1079            * @throws SystemException if a system exception occurred
1080            */
1081            public static com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext(
1082                    long activityId, long classNameId, long classPK,
1083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1084                    throws com.liferay.portal.kernel.exception.SystemException,
1085                            com.liferay.portlet.social.NoSuchActivityException {
1086                    return getPersistence()
1087                                       .findByC_C_PrevAndNext(activityId, classNameId, classPK,
1088                            orderByComparator);
1089            }
1090    
1091            /**
1092            * Returns all the social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1093            *
1094            * @param mirrorActivityId the mirror activity ID
1095            * @param classNameId the class name ID
1096            * @param classPK the class p k
1097            * @return the matching social activities
1098            * @throws SystemException if a system exception occurred
1099            */
1100            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
1101                    long mirrorActivityId, long classNameId, long classPK)
1102                    throws com.liferay.portal.kernel.exception.SystemException {
1103                    return getPersistence()
1104                                       .findByM_C_C(mirrorActivityId, classNameId, classPK);
1105            }
1106    
1107            /**
1108            * Returns a range of all the social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1109            *
1110            * <p>
1111            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1112            * </p>
1113            *
1114            * @param mirrorActivityId the mirror activity ID
1115            * @param classNameId the class name ID
1116            * @param classPK the class p k
1117            * @param start the lower bound of the range of social activities
1118            * @param end the upper bound of the range of social activities (not inclusive)
1119            * @return the range of matching social activities
1120            * @throws SystemException if a system exception occurred
1121            */
1122            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
1123                    long mirrorActivityId, long classNameId, long classPK, int start,
1124                    int end) throws com.liferay.portal.kernel.exception.SystemException {
1125                    return getPersistence()
1126                                       .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
1127                            end);
1128            }
1129    
1130            /**
1131            * Returns an ordered range of all the social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1132            *
1133            * <p>
1134            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1135            * </p>
1136            *
1137            * @param mirrorActivityId the mirror activity ID
1138            * @param classNameId the class name ID
1139            * @param classPK the class p k
1140            * @param start the lower bound of the range of social activities
1141            * @param end the upper bound of the range of social activities (not inclusive)
1142            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1143            * @return the ordered range of matching social activities
1144            * @throws SystemException if a system exception occurred
1145            */
1146            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
1147                    long mirrorActivityId, long classNameId, long classPK, int start,
1148                    int end,
1149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1150                    throws com.liferay.portal.kernel.exception.SystemException {
1151                    return getPersistence()
1152                                       .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
1153                            end, orderByComparator);
1154            }
1155    
1156            /**
1157            * Returns the first social activity in the ordered set where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1158            *
1159            * @param mirrorActivityId the mirror activity ID
1160            * @param classNameId the class name ID
1161            * @param classPK the class p k
1162            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1163            * @return the first matching social activity
1164            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1165            * @throws SystemException if a system exception occurred
1166            */
1167            public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_First(
1168                    long mirrorActivityId, long classNameId, long classPK,
1169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1170                    throws com.liferay.portal.kernel.exception.SystemException,
1171                            com.liferay.portlet.social.NoSuchActivityException {
1172                    return getPersistence()
1173                                       .findByM_C_C_First(mirrorActivityId, classNameId, classPK,
1174                            orderByComparator);
1175            }
1176    
1177            /**
1178            * Returns the first social activity in the ordered set where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1179            *
1180            * @param mirrorActivityId the mirror activity ID
1181            * @param classNameId the class name ID
1182            * @param classPK the class p k
1183            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1184            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
1185            * @throws SystemException if a system exception occurred
1186            */
1187            public static com.liferay.portlet.social.model.SocialActivity fetchByM_C_C_First(
1188                    long mirrorActivityId, long classNameId, long classPK,
1189                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1190                    throws com.liferay.portal.kernel.exception.SystemException {
1191                    return getPersistence()
1192                                       .fetchByM_C_C_First(mirrorActivityId, classNameId, classPK,
1193                            orderByComparator);
1194            }
1195    
1196            /**
1197            * Returns the last social activity in the ordered set where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1198            *
1199            * @param mirrorActivityId the mirror activity ID
1200            * @param classNameId the class name ID
1201            * @param classPK the class p k
1202            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1203            * @return the last matching social activity
1204            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1205            * @throws SystemException if a system exception occurred
1206            */
1207            public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last(
1208                    long mirrorActivityId, long classNameId, long classPK,
1209                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1210                    throws com.liferay.portal.kernel.exception.SystemException,
1211                            com.liferay.portlet.social.NoSuchActivityException {
1212                    return getPersistence()
1213                                       .findByM_C_C_Last(mirrorActivityId, classNameId, classPK,
1214                            orderByComparator);
1215            }
1216    
1217            /**
1218            * Returns the last social activity in the ordered set where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1219            *
1220            * @param mirrorActivityId the mirror activity ID
1221            * @param classNameId the class name ID
1222            * @param classPK the class p k
1223            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1224            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
1225            * @throws SystemException if a system exception occurred
1226            */
1227            public static com.liferay.portlet.social.model.SocialActivity fetchByM_C_C_Last(
1228                    long mirrorActivityId, long classNameId, long classPK,
1229                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1230                    throws com.liferay.portal.kernel.exception.SystemException {
1231                    return getPersistence()
1232                                       .fetchByM_C_C_Last(mirrorActivityId, classNameId, classPK,
1233                            orderByComparator);
1234            }
1235    
1236            /**
1237            * Returns the social activities before and after the current social activity in the ordered set where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1238            *
1239            * @param activityId the primary key of the current social activity
1240            * @param mirrorActivityId the mirror activity ID
1241            * @param classNameId the class name ID
1242            * @param classPK the class p k
1243            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1244            * @return the previous, current, and next social activity
1245            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
1246            * @throws SystemException if a system exception occurred
1247            */
1248            public static com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext(
1249                    long activityId, long mirrorActivityId, long classNameId, long classPK,
1250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1251                    throws com.liferay.portal.kernel.exception.SystemException,
1252                            com.liferay.portlet.social.NoSuchActivityException {
1253                    return getPersistence()
1254                                       .findByM_C_C_PrevAndNext(activityId, mirrorActivityId,
1255                            classNameId, classPK, orderByComparator);
1256            }
1257    
1258            /**
1259            * Returns all the social activities where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1260            *
1261            * @param groupId the group ID
1262            * @param userId the user ID
1263            * @param classNameId the class name ID
1264            * @param classPK the class p k
1265            * @param type the type
1266            * @param receiverUserId the receiver user ID
1267            * @return the matching social activities
1268            * @throws SystemException if a system exception occurred
1269            */
1270            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R(
1271                    long groupId, long userId, long classNameId, long classPK, int type,
1272                    long receiverUserId)
1273                    throws com.liferay.portal.kernel.exception.SystemException {
1274                    return getPersistence()
1275                                       .findByG_U_C_C_T_R(groupId, userId, classNameId, classPK,
1276                            type, receiverUserId);
1277            }
1278    
1279            /**
1280            * Returns a range of all the social activities where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1281            *
1282            * <p>
1283            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1284            * </p>
1285            *
1286            * @param groupId the group ID
1287            * @param userId the user ID
1288            * @param classNameId the class name ID
1289            * @param classPK the class p k
1290            * @param type the type
1291            * @param receiverUserId the receiver user ID
1292            * @param start the lower bound of the range of social activities
1293            * @param end the upper bound of the range of social activities (not inclusive)
1294            * @return the range of matching social activities
1295            * @throws SystemException if a system exception occurred
1296            */
1297            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R(
1298                    long groupId, long userId, long classNameId, long classPK, int type,
1299                    long receiverUserId, int start, int end)
1300                    throws com.liferay.portal.kernel.exception.SystemException {
1301                    return getPersistence()
1302                                       .findByG_U_C_C_T_R(groupId, userId, classNameId, classPK,
1303                            type, receiverUserId, start, end);
1304            }
1305    
1306            /**
1307            * Returns an ordered range of all the social activities where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1308            *
1309            * <p>
1310            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1311            * </p>
1312            *
1313            * @param groupId the group ID
1314            * @param userId the user ID
1315            * @param classNameId the class name ID
1316            * @param classPK the class p k
1317            * @param type the type
1318            * @param receiverUserId the receiver user ID
1319            * @param start the lower bound of the range of social activities
1320            * @param end the upper bound of the range of social activities (not inclusive)
1321            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1322            * @return the ordered range of matching social activities
1323            * @throws SystemException if a system exception occurred
1324            */
1325            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R(
1326                    long groupId, long userId, long classNameId, long classPK, int type,
1327                    long receiverUserId, int start, int end,
1328                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1329                    throws com.liferay.portal.kernel.exception.SystemException {
1330                    return getPersistence()
1331                                       .findByG_U_C_C_T_R(groupId, userId, classNameId, classPK,
1332                            type, receiverUserId, start, end, orderByComparator);
1333            }
1334    
1335            /**
1336            * Returns the first social activity in the ordered set where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1337            *
1338            * @param groupId the group ID
1339            * @param userId the user ID
1340            * @param classNameId the class name ID
1341            * @param classPK the class p k
1342            * @param type the type
1343            * @param receiverUserId the receiver user ID
1344            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1345            * @return the first matching social activity
1346            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1347            * @throws SystemException if a system exception occurred
1348            */
1349            public static com.liferay.portlet.social.model.SocialActivity findByG_U_C_C_T_R_First(
1350                    long groupId, long userId, long classNameId, long classPK, int type,
1351                    long receiverUserId,
1352                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1353                    throws com.liferay.portal.kernel.exception.SystemException,
1354                            com.liferay.portlet.social.NoSuchActivityException {
1355                    return getPersistence()
1356                                       .findByG_U_C_C_T_R_First(groupId, userId, classNameId,
1357                            classPK, type, receiverUserId, orderByComparator);
1358            }
1359    
1360            /**
1361            * Returns the first social activity in the ordered set where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1362            *
1363            * @param groupId the group ID
1364            * @param userId the user ID
1365            * @param classNameId the class name ID
1366            * @param classPK the class p k
1367            * @param type the type
1368            * @param receiverUserId the receiver user ID
1369            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1370            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
1371            * @throws SystemException if a system exception occurred
1372            */
1373            public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_C_C_T_R_First(
1374                    long groupId, long userId, long classNameId, long classPK, int type,
1375                    long receiverUserId,
1376                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1377                    throws com.liferay.portal.kernel.exception.SystemException {
1378                    return getPersistence()
1379                                       .fetchByG_U_C_C_T_R_First(groupId, userId, classNameId,
1380                            classPK, type, receiverUserId, orderByComparator);
1381            }
1382    
1383            /**
1384            * Returns the last social activity in the ordered set where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1385            *
1386            * @param groupId the group ID
1387            * @param userId the user ID
1388            * @param classNameId the class name ID
1389            * @param classPK the class p k
1390            * @param type the type
1391            * @param receiverUserId the receiver user ID
1392            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1393            * @return the last matching social activity
1394            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1395            * @throws SystemException if a system exception occurred
1396            */
1397            public static com.liferay.portlet.social.model.SocialActivity findByG_U_C_C_T_R_Last(
1398                    long groupId, long userId, long classNameId, long classPK, int type,
1399                    long receiverUserId,
1400                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1401                    throws com.liferay.portal.kernel.exception.SystemException,
1402                            com.liferay.portlet.social.NoSuchActivityException {
1403                    return getPersistence()
1404                                       .findByG_U_C_C_T_R_Last(groupId, userId, classNameId,
1405                            classPK, type, receiverUserId, orderByComparator);
1406            }
1407    
1408            /**
1409            * Returns the last social activity in the ordered set where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1410            *
1411            * @param groupId the group ID
1412            * @param userId the user ID
1413            * @param classNameId the class name ID
1414            * @param classPK the class p k
1415            * @param type the type
1416            * @param receiverUserId the receiver user ID
1417            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1418            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
1419            * @throws SystemException if a system exception occurred
1420            */
1421            public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_C_C_T_R_Last(
1422                    long groupId, long userId, long classNameId, long classPK, int type,
1423                    long receiverUserId,
1424                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1425                    throws com.liferay.portal.kernel.exception.SystemException {
1426                    return getPersistence()
1427                                       .fetchByG_U_C_C_T_R_Last(groupId, userId, classNameId,
1428                            classPK, type, receiverUserId, orderByComparator);
1429            }
1430    
1431            /**
1432            * Returns the social activities before and after the current social activity in the ordered set where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1433            *
1434            * @param activityId the primary key of the current social activity
1435            * @param groupId the group ID
1436            * @param userId the user ID
1437            * @param classNameId the class name ID
1438            * @param classPK the class p k
1439            * @param type the type
1440            * @param receiverUserId the receiver user ID
1441            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1442            * @return the previous, current, and next social activity
1443            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
1444            * @throws SystemException if a system exception occurred
1445            */
1446            public static com.liferay.portlet.social.model.SocialActivity[] findByG_U_C_C_T_R_PrevAndNext(
1447                    long activityId, long groupId, long userId, long classNameId,
1448                    long classPK, int type, long receiverUserId,
1449                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1450                    throws com.liferay.portal.kernel.exception.SystemException,
1451                            com.liferay.portlet.social.NoSuchActivityException {
1452                    return getPersistence()
1453                                       .findByG_U_C_C_T_R_PrevAndNext(activityId, groupId, userId,
1454                            classNameId, classPK, type, receiverUserId, orderByComparator);
1455            }
1456    
1457            /**
1458            * Returns the social activity where groupId = &#63; and userId = &#63; and createDate = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found.
1459            *
1460            * @param groupId the group ID
1461            * @param userId the user ID
1462            * @param createDate the create date
1463            * @param classNameId the class name ID
1464            * @param classPK the class p k
1465            * @param type the type
1466            * @param receiverUserId the receiver user ID
1467            * @return the matching social activity
1468            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1469            * @throws SystemException if a system exception occurred
1470            */
1471            public static com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(
1472                    long groupId, long userId, long createDate, long classNameId,
1473                    long classPK, int type, long receiverUserId)
1474                    throws com.liferay.portal.kernel.exception.SystemException,
1475                            com.liferay.portlet.social.NoSuchActivityException {
1476                    return getPersistence()
1477                                       .findByG_U_CD_C_C_T_R(groupId, userId, createDate,
1478                            classNameId, classPK, type, receiverUserId);
1479            }
1480    
1481            /**
1482            * Returns the social activity where groupId = &#63; and userId = &#63; and createDate = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1483            *
1484            * @param groupId the group ID
1485            * @param userId the user ID
1486            * @param createDate the create date
1487            * @param classNameId the class name ID
1488            * @param classPK the class p k
1489            * @param type the type
1490            * @param receiverUserId the receiver user ID
1491            * @return the matching social activity, or <code>null</code> if a matching social activity could not be found
1492            * @throws SystemException if a system exception occurred
1493            */
1494            public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
1495                    long groupId, long userId, long createDate, long classNameId,
1496                    long classPK, int type, long receiverUserId)
1497                    throws com.liferay.portal.kernel.exception.SystemException {
1498                    return getPersistence()
1499                                       .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate,
1500                            classNameId, classPK, type, receiverUserId);
1501            }
1502    
1503            /**
1504            * Returns the social activity where groupId = &#63; and userId = &#63; and createDate = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1505            *
1506            * @param groupId the group ID
1507            * @param userId the user ID
1508            * @param createDate the create date
1509            * @param classNameId the class name ID
1510            * @param classPK the class p k
1511            * @param type the type
1512            * @param receiverUserId the receiver user ID
1513            * @param retrieveFromCache whether to use the finder cache
1514            * @return the matching social activity, or <code>null</code> if a matching social activity could not be found
1515            * @throws SystemException if a system exception occurred
1516            */
1517            public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
1518                    long groupId, long userId, long createDate, long classNameId,
1519                    long classPK, int type, long receiverUserId, boolean retrieveFromCache)
1520                    throws com.liferay.portal.kernel.exception.SystemException {
1521                    return getPersistence()
1522                                       .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate,
1523                            classNameId, classPK, type, receiverUserId, retrieveFromCache);
1524            }
1525    
1526            /**
1527            * Returns all the social activities.
1528            *
1529            * @return the social activities
1530            * @throws SystemException if a system exception occurred
1531            */
1532            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
1533                    throws com.liferay.portal.kernel.exception.SystemException {
1534                    return getPersistence().findAll();
1535            }
1536    
1537            /**
1538            * Returns a range of all the social activities.
1539            *
1540            * <p>
1541            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1542            * </p>
1543            *
1544            * @param start the lower bound of the range of social activities
1545            * @param end the upper bound of the range of social activities (not inclusive)
1546            * @return the range of social activities
1547            * @throws SystemException if a system exception occurred
1548            */
1549            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
1550                    int start, int end)
1551                    throws com.liferay.portal.kernel.exception.SystemException {
1552                    return getPersistence().findAll(start, end);
1553            }
1554    
1555            /**
1556            * Returns an ordered range of all the social activities.
1557            *
1558            * <p>
1559            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1560            * </p>
1561            *
1562            * @param start the lower bound of the range of social activities
1563            * @param end the upper bound of the range of social activities (not inclusive)
1564            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1565            * @return the ordered range of social activities
1566            * @throws SystemException if a system exception occurred
1567            */
1568            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
1569                    int start, int end,
1570                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1571                    throws com.liferay.portal.kernel.exception.SystemException {
1572                    return getPersistence().findAll(start, end, orderByComparator);
1573            }
1574    
1575            /**
1576            * Removes all the social activities where groupId = &#63; from the database.
1577            *
1578            * @param groupId the group ID
1579            * @throws SystemException if a system exception occurred
1580            */
1581            public static void removeByGroupId(long groupId)
1582                    throws com.liferay.portal.kernel.exception.SystemException {
1583                    getPersistence().removeByGroupId(groupId);
1584            }
1585    
1586            /**
1587            * Removes all the social activities where companyId = &#63; from the database.
1588            *
1589            * @param companyId the company ID
1590            * @throws SystemException if a system exception occurred
1591            */
1592            public static void removeByCompanyId(long companyId)
1593                    throws com.liferay.portal.kernel.exception.SystemException {
1594                    getPersistence().removeByCompanyId(companyId);
1595            }
1596    
1597            /**
1598            * Removes all the social activities where userId = &#63; from the database.
1599            *
1600            * @param userId the user ID
1601            * @throws SystemException if a system exception occurred
1602            */
1603            public static void removeByUserId(long userId)
1604                    throws com.liferay.portal.kernel.exception.SystemException {
1605                    getPersistence().removeByUserId(userId);
1606            }
1607    
1608            /**
1609            * Removes the social activity where mirrorActivityId = &#63; from the database.
1610            *
1611            * @param mirrorActivityId the mirror activity ID
1612            * @return the social activity that was removed
1613            * @throws SystemException if a system exception occurred
1614            */
1615            public static com.liferay.portlet.social.model.SocialActivity removeByMirrorActivityId(
1616                    long mirrorActivityId)
1617                    throws com.liferay.portal.kernel.exception.SystemException,
1618                            com.liferay.portlet.social.NoSuchActivityException {
1619                    return getPersistence().removeByMirrorActivityId(mirrorActivityId);
1620            }
1621    
1622            /**
1623            * Removes all the social activities where classNameId = &#63; from the database.
1624            *
1625            * @param classNameId the class name ID
1626            * @throws SystemException if a system exception occurred
1627            */
1628            public static void removeByClassNameId(long classNameId)
1629                    throws com.liferay.portal.kernel.exception.SystemException {
1630                    getPersistence().removeByClassNameId(classNameId);
1631            }
1632    
1633            /**
1634            * Removes all the social activities where receiverUserId = &#63; from the database.
1635            *
1636            * @param receiverUserId the receiver user ID
1637            * @throws SystemException if a system exception occurred
1638            */
1639            public static void removeByReceiverUserId(long receiverUserId)
1640                    throws com.liferay.portal.kernel.exception.SystemException {
1641                    getPersistence().removeByReceiverUserId(receiverUserId);
1642            }
1643    
1644            /**
1645            * Removes all the social activities where classNameId = &#63; and classPK = &#63; from the database.
1646            *
1647            * @param classNameId the class name ID
1648            * @param classPK the class p k
1649            * @throws SystemException if a system exception occurred
1650            */
1651            public static void removeByC_C(long classNameId, long classPK)
1652                    throws com.liferay.portal.kernel.exception.SystemException {
1653                    getPersistence().removeByC_C(classNameId, classPK);
1654            }
1655    
1656            /**
1657            * Removes all the social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
1658            *
1659            * @param mirrorActivityId the mirror activity ID
1660            * @param classNameId the class name ID
1661            * @param classPK the class p k
1662            * @throws SystemException if a system exception occurred
1663            */
1664            public static void removeByM_C_C(long mirrorActivityId, long classNameId,
1665                    long classPK)
1666                    throws com.liferay.portal.kernel.exception.SystemException {
1667                    getPersistence().removeByM_C_C(mirrorActivityId, classNameId, classPK);
1668            }
1669    
1670            /**
1671            * Removes all the social activities where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; from the database.
1672            *
1673            * @param groupId the group ID
1674            * @param userId the user ID
1675            * @param classNameId the class name ID
1676            * @param classPK the class p k
1677            * @param type the type
1678            * @param receiverUserId the receiver user ID
1679            * @throws SystemException if a system exception occurred
1680            */
1681            public static void removeByG_U_C_C_T_R(long groupId, long userId,
1682                    long classNameId, long classPK, int type, long receiverUserId)
1683                    throws com.liferay.portal.kernel.exception.SystemException {
1684                    getPersistence()
1685                            .removeByG_U_C_C_T_R(groupId, userId, classNameId, classPK, type,
1686                            receiverUserId);
1687            }
1688    
1689            /**
1690            * Removes the social activity where groupId = &#63; and userId = &#63; and createDate = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63; from the database.
1691            *
1692            * @param groupId the group ID
1693            * @param userId the user ID
1694            * @param createDate the create date
1695            * @param classNameId the class name ID
1696            * @param classPK the class p k
1697            * @param type the type
1698            * @param receiverUserId the receiver user ID
1699            * @return the social activity that was removed
1700            * @throws SystemException if a system exception occurred
1701            */
1702            public static com.liferay.portlet.social.model.SocialActivity removeByG_U_CD_C_C_T_R(
1703                    long groupId, long userId, long createDate, long classNameId,
1704                    long classPK, int type, long receiverUserId)
1705                    throws com.liferay.portal.kernel.exception.SystemException,
1706                            com.liferay.portlet.social.NoSuchActivityException {
1707                    return getPersistence()
1708                                       .removeByG_U_CD_C_C_T_R(groupId, userId, createDate,
1709                            classNameId, classPK, type, receiverUserId);
1710            }
1711    
1712            /**
1713            * Removes all the social activities from the database.
1714            *
1715            * @throws SystemException if a system exception occurred
1716            */
1717            public static void removeAll()
1718                    throws com.liferay.portal.kernel.exception.SystemException {
1719                    getPersistence().removeAll();
1720            }
1721    
1722            /**
1723            * Returns the number of social activities where groupId = &#63;.
1724            *
1725            * @param groupId the group ID
1726            * @return the number of matching social activities
1727            * @throws SystemException if a system exception occurred
1728            */
1729            public static int countByGroupId(long groupId)
1730                    throws com.liferay.portal.kernel.exception.SystemException {
1731                    return getPersistence().countByGroupId(groupId);
1732            }
1733    
1734            /**
1735            * Returns the number of social activities where companyId = &#63;.
1736            *
1737            * @param companyId the company ID
1738            * @return the number of matching social activities
1739            * @throws SystemException if a system exception occurred
1740            */
1741            public static int countByCompanyId(long companyId)
1742                    throws com.liferay.portal.kernel.exception.SystemException {
1743                    return getPersistence().countByCompanyId(companyId);
1744            }
1745    
1746            /**
1747            * Returns the number of social activities where userId = &#63;.
1748            *
1749            * @param userId the user ID
1750            * @return the number of matching social activities
1751            * @throws SystemException if a system exception occurred
1752            */
1753            public static int countByUserId(long userId)
1754                    throws com.liferay.portal.kernel.exception.SystemException {
1755                    return getPersistence().countByUserId(userId);
1756            }
1757    
1758            /**
1759            * Returns the number of social activities where mirrorActivityId = &#63;.
1760            *
1761            * @param mirrorActivityId the mirror activity ID
1762            * @return the number of matching social activities
1763            * @throws SystemException if a system exception occurred
1764            */
1765            public static int countByMirrorActivityId(long mirrorActivityId)
1766                    throws com.liferay.portal.kernel.exception.SystemException {
1767                    return getPersistence().countByMirrorActivityId(mirrorActivityId);
1768            }
1769    
1770            /**
1771            * Returns the number of social activities where classNameId = &#63;.
1772            *
1773            * @param classNameId the class name ID
1774            * @return the number of matching social activities
1775            * @throws SystemException if a system exception occurred
1776            */
1777            public static int countByClassNameId(long classNameId)
1778                    throws com.liferay.portal.kernel.exception.SystemException {
1779                    return getPersistence().countByClassNameId(classNameId);
1780            }
1781    
1782            /**
1783            * Returns the number of social activities where receiverUserId = &#63;.
1784            *
1785            * @param receiverUserId the receiver user ID
1786            * @return the number of matching social activities
1787            * @throws SystemException if a system exception occurred
1788            */
1789            public static int countByReceiverUserId(long receiverUserId)
1790                    throws com.liferay.portal.kernel.exception.SystemException {
1791                    return getPersistence().countByReceiverUserId(receiverUserId);
1792            }
1793    
1794            /**
1795            * Returns the number of social activities where classNameId = &#63; and classPK = &#63;.
1796            *
1797            * @param classNameId the class name ID
1798            * @param classPK the class p k
1799            * @return the number of matching social activities
1800            * @throws SystemException if a system exception occurred
1801            */
1802            public static int countByC_C(long classNameId, long classPK)
1803                    throws com.liferay.portal.kernel.exception.SystemException {
1804                    return getPersistence().countByC_C(classNameId, classPK);
1805            }
1806    
1807            /**
1808            * Returns the number of social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1809            *
1810            * @param mirrorActivityId the mirror activity ID
1811            * @param classNameId the class name ID
1812            * @param classPK the class p k
1813            * @return the number of matching social activities
1814            * @throws SystemException if a system exception occurred
1815            */
1816            public static int countByM_C_C(long mirrorActivityId, long classNameId,
1817                    long classPK)
1818                    throws com.liferay.portal.kernel.exception.SystemException {
1819                    return getPersistence()
1820                                       .countByM_C_C(mirrorActivityId, classNameId, classPK);
1821            }
1822    
1823            /**
1824            * Returns the number of social activities where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1825            *
1826            * @param groupId the group ID
1827            * @param userId the user ID
1828            * @param classNameId the class name ID
1829            * @param classPK the class p k
1830            * @param type the type
1831            * @param receiverUserId the receiver user ID
1832            * @return the number of matching social activities
1833            * @throws SystemException if a system exception occurred
1834            */
1835            public static int countByG_U_C_C_T_R(long groupId, long userId,
1836                    long classNameId, long classPK, int type, long receiverUserId)
1837                    throws com.liferay.portal.kernel.exception.SystemException {
1838                    return getPersistence()
1839                                       .countByG_U_C_C_T_R(groupId, userId, classNameId, classPK,
1840                            type, receiverUserId);
1841            }
1842    
1843            /**
1844            * Returns the number of social activities where groupId = &#63; and userId = &#63; and createDate = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1845            *
1846            * @param groupId the group ID
1847            * @param userId the user ID
1848            * @param createDate the create date
1849            * @param classNameId the class name ID
1850            * @param classPK the class p k
1851            * @param type the type
1852            * @param receiverUserId the receiver user ID
1853            * @return the number of matching social activities
1854            * @throws SystemException if a system exception occurred
1855            */
1856            public static int countByG_U_CD_C_C_T_R(long groupId, long userId,
1857                    long createDate, long classNameId, long classPK, int type,
1858                    long receiverUserId)
1859                    throws com.liferay.portal.kernel.exception.SystemException {
1860                    return getPersistence()
1861                                       .countByG_U_CD_C_C_T_R(groupId, userId, createDate,
1862                            classNameId, classPK, type, receiverUserId);
1863            }
1864    
1865            /**
1866            * Returns the number of social activities.
1867            *
1868            * @return the number of social activities
1869            * @throws SystemException if a system exception occurred
1870            */
1871            public static int countAll()
1872                    throws com.liferay.portal.kernel.exception.SystemException {
1873                    return getPersistence().countAll();
1874            }
1875    
1876            public static SocialActivityPersistence getPersistence() {
1877                    if (_persistence == null) {
1878                            _persistence = (SocialActivityPersistence)PortalBeanLocatorUtil.locate(SocialActivityPersistence.class.getName());
1879    
1880                            ReferenceRegistry.registerReference(SocialActivityUtil.class,
1881                                    "_persistence");
1882                    }
1883    
1884                    return _persistence;
1885            }
1886    
1887            /**
1888             * @deprecated
1889             */
1890            public void setPersistence(SocialActivityPersistence persistence) {
1891            }
1892    
1893            private static SocialActivityPersistence _persistence;
1894    }