001    /**
002     * Copyright (c) 2000-2012 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)
099             */
100            public static SocialActivity update(SocialActivity socialActivity)
101                    throws SystemException {
102                    return getPersistence().update(socialActivity);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static SocialActivity update(SocialActivity socialActivity,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(socialActivity, serviceContext);
111            }
112    
113            /**
114            * Returns all the social activities where groupId = &#63;.
115            *
116            * @param groupId the group ID
117            * @return the matching social activities
118            * @throws SystemException if a system exception occurred
119            */
120            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
121                    long groupId)
122                    throws com.liferay.portal.kernel.exception.SystemException {
123                    return getPersistence().findByGroupId(groupId);
124            }
125    
126            /**
127            * Returns a range of all the social activities where groupId = &#63;.
128            *
129            * <p>
130            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
131            * </p>
132            *
133            * @param groupId the group ID
134            * @param start the lower bound of the range of social activities
135            * @param end the upper bound of the range of social activities (not inclusive)
136            * @return the range of matching social activities
137            * @throws SystemException if a system exception occurred
138            */
139            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
140                    long groupId, int start, int end)
141                    throws com.liferay.portal.kernel.exception.SystemException {
142                    return getPersistence().findByGroupId(groupId, start, end);
143            }
144    
145            /**
146            * Returns an ordered range of all the social activities where groupId = &#63;.
147            *
148            * <p>
149            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
150            * </p>
151            *
152            * @param groupId the group ID
153            * @param start the lower bound of the range of social activities
154            * @param end the upper bound of the range of social activities (not inclusive)
155            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
156            * @return the ordered range of matching social activities
157            * @throws SystemException if a system exception occurred
158            */
159            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
160                    long groupId, int start, int end,
161                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence()
164                                       .findByGroupId(groupId, start, end, orderByComparator);
165            }
166    
167            /**
168            * Returns the first social activity in the ordered set where groupId = &#63;.
169            *
170            * @param groupId the group ID
171            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
172            * @return the first matching social activity
173            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public static com.liferay.portlet.social.model.SocialActivity findByGroupId_First(
177                    long groupId,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.kernel.exception.SystemException,
180                            com.liferay.portlet.social.NoSuchActivityException {
181                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
182            }
183    
184            /**
185            * Returns the first social activity in the ordered set where groupId = &#63;.
186            *
187            * @param groupId the group ID
188            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
189            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
190            * @throws SystemException if a system exception occurred
191            */
192            public static com.liferay.portlet.social.model.SocialActivity fetchByGroupId_First(
193                    long groupId,
194                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
197            }
198    
199            /**
200            * Returns the last social activity in the ordered set where groupId = &#63;.
201            *
202            * @param groupId the group ID
203            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
204            * @return the last matching social activity
205            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
206            * @throws SystemException if a system exception occurred
207            */
208            public static com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(
209                    long groupId,
210                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211                    throws com.liferay.portal.kernel.exception.SystemException,
212                            com.liferay.portlet.social.NoSuchActivityException {
213                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
214            }
215    
216            /**
217            * Returns the last social activity in the ordered set where groupId = &#63;.
218            *
219            * @param groupId the group ID
220            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
221            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
222            * @throws SystemException if a system exception occurred
223            */
224            public static com.liferay.portlet.social.model.SocialActivity fetchByGroupId_Last(
225                    long groupId,
226                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
229            }
230    
231            /**
232            * Returns the social activities before and after the current social activity in the ordered set where groupId = &#63;.
233            *
234            * @param activityId the primary key of the current social activity
235            * @param groupId the group ID
236            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
237            * @return the previous, current, and next social activity
238            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
239            * @throws SystemException if a system exception occurred
240            */
241            public static com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(
242                    long activityId, long groupId,
243                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244                    throws com.liferay.portal.kernel.exception.SystemException,
245                            com.liferay.portlet.social.NoSuchActivityException {
246                    return getPersistence()
247                                       .findByGroupId_PrevAndNext(activityId, groupId,
248                            orderByComparator);
249            }
250    
251            /**
252            * Removes all the social activities where groupId = &#63; from the database.
253            *
254            * @param groupId the group ID
255            * @throws SystemException if a system exception occurred
256            */
257            public static void removeByGroupId(long groupId)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    getPersistence().removeByGroupId(groupId);
260            }
261    
262            /**
263            * Returns the number of social activities where groupId = &#63;.
264            *
265            * @param groupId the group ID
266            * @return the number of matching social activities
267            * @throws SystemException if a system exception occurred
268            */
269            public static int countByGroupId(long groupId)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    return getPersistence().countByGroupId(groupId);
272            }
273    
274            /**
275            * Returns all the social activities where companyId = &#63;.
276            *
277            * @param companyId the company ID
278            * @return the matching social activities
279            * @throws SystemException if a system exception occurred
280            */
281            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
282                    long companyId)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return getPersistence().findByCompanyId(companyId);
285            }
286    
287            /**
288            * Returns a range of all the social activities where companyId = &#63;.
289            *
290            * <p>
291            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
292            * </p>
293            *
294            * @param companyId the company ID
295            * @param start the lower bound of the range of social activities
296            * @param end the upper bound of the range of social activities (not inclusive)
297            * @return the range of matching social activities
298            * @throws SystemException if a system exception occurred
299            */
300            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
301                    long companyId, int start, int end)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    return getPersistence().findByCompanyId(companyId, start, end);
304            }
305    
306            /**
307            * Returns an ordered range of all the social activities where companyId = &#63;.
308            *
309            * <p>
310            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
311            * </p>
312            *
313            * @param companyId the company ID
314            * @param start the lower bound of the range of social activities
315            * @param end the upper bound of the range of social activities (not inclusive)
316            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
317            * @return the ordered range of matching social activities
318            * @throws SystemException if a system exception occurred
319            */
320            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
321                    long companyId, int start, int end,
322                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    return getPersistence()
325                                       .findByCompanyId(companyId, start, end, orderByComparator);
326            }
327    
328            /**
329            * Returns the first social activity in the ordered set where companyId = &#63;.
330            *
331            * @param companyId the company ID
332            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
333            * @return the first matching social activity
334            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
335            * @throws SystemException if a system exception occurred
336            */
337            public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_First(
338                    long companyId,
339                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340                    throws com.liferay.portal.kernel.exception.SystemException,
341                            com.liferay.portlet.social.NoSuchActivityException {
342                    return getPersistence()
343                                       .findByCompanyId_First(companyId, orderByComparator);
344            }
345    
346            /**
347            * Returns the first social activity in the ordered set where companyId = &#63;.
348            *
349            * @param companyId the company ID
350            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
351            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
352            * @throws SystemException if a system exception occurred
353            */
354            public static com.liferay.portlet.social.model.SocialActivity fetchByCompanyId_First(
355                    long companyId,
356                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return getPersistence()
359                                       .fetchByCompanyId_First(companyId, orderByComparator);
360            }
361    
362            /**
363            * Returns the last social activity in the ordered set where companyId = &#63;.
364            *
365            * @param companyId the company ID
366            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
367            * @return the last matching social activity
368            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
369            * @throws SystemException if a system exception occurred
370            */
371            public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(
372                    long companyId,
373                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
374                    throws com.liferay.portal.kernel.exception.SystemException,
375                            com.liferay.portlet.social.NoSuchActivityException {
376                    return getPersistence()
377                                       .findByCompanyId_Last(companyId, orderByComparator);
378            }
379    
380            /**
381            * Returns the last social activity in the ordered set where companyId = &#63;.
382            *
383            * @param companyId the company ID
384            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
385            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
386            * @throws SystemException if a system exception occurred
387            */
388            public static com.liferay.portlet.social.model.SocialActivity fetchByCompanyId_Last(
389                    long companyId,
390                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
391                    throws com.liferay.portal.kernel.exception.SystemException {
392                    return getPersistence()
393                                       .fetchByCompanyId_Last(companyId, orderByComparator);
394            }
395    
396            /**
397            * Returns the social activities before and after the current social activity in the ordered set where companyId = &#63;.
398            *
399            * @param activityId the primary key of the current social activity
400            * @param companyId the company ID
401            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
402            * @return the previous, current, and next social activity
403            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
404            * @throws SystemException if a system exception occurred
405            */
406            public static com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(
407                    long activityId, long companyId,
408                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
409                    throws com.liferay.portal.kernel.exception.SystemException,
410                            com.liferay.portlet.social.NoSuchActivityException {
411                    return getPersistence()
412                                       .findByCompanyId_PrevAndNext(activityId, companyId,
413                            orderByComparator);
414            }
415    
416            /**
417            * Removes all the social activities where companyId = &#63; from the database.
418            *
419            * @param companyId the company ID
420            * @throws SystemException if a system exception occurred
421            */
422            public static void removeByCompanyId(long companyId)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    getPersistence().removeByCompanyId(companyId);
425            }
426    
427            /**
428            * Returns the number of social activities where companyId = &#63;.
429            *
430            * @param companyId the company ID
431            * @return the number of matching social activities
432            * @throws SystemException if a system exception occurred
433            */
434            public static int countByCompanyId(long companyId)
435                    throws com.liferay.portal.kernel.exception.SystemException {
436                    return getPersistence().countByCompanyId(companyId);
437            }
438    
439            /**
440            * Returns all the social activities where userId = &#63;.
441            *
442            * @param userId the user ID
443            * @return the matching social activities
444            * @throws SystemException if a system exception occurred
445            */
446            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
447                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
448                    return getPersistence().findByUserId(userId);
449            }
450    
451            /**
452            * Returns a range of all the social activities where userId = &#63;.
453            *
454            * <p>
455            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
456            * </p>
457            *
458            * @param userId the user ID
459            * @param start the lower bound of the range of social activities
460            * @param end the upper bound of the range of social activities (not inclusive)
461            * @return the range of matching social activities
462            * @throws SystemException if a system exception occurred
463            */
464            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
465                    long userId, int start, int end)
466                    throws com.liferay.portal.kernel.exception.SystemException {
467                    return getPersistence().findByUserId(userId, start, end);
468            }
469    
470            /**
471            * Returns an ordered range of all the social activities where userId = &#63;.
472            *
473            * <p>
474            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
475            * </p>
476            *
477            * @param userId the user ID
478            * @param start the lower bound of the range of social activities
479            * @param end the upper bound of the range of social activities (not inclusive)
480            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
481            * @return the ordered range of matching social activities
482            * @throws SystemException if a system exception occurred
483            */
484            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
485                    long userId, int start, int end,
486                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
487                    throws com.liferay.portal.kernel.exception.SystemException {
488                    return getPersistence()
489                                       .findByUserId(userId, start, end, orderByComparator);
490            }
491    
492            /**
493            * Returns the first social activity in the ordered set where userId = &#63;.
494            *
495            * @param userId the user ID
496            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
497            * @return the first matching social activity
498            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
499            * @throws SystemException if a system exception occurred
500            */
501            public static com.liferay.portlet.social.model.SocialActivity findByUserId_First(
502                    long userId,
503                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
504                    throws com.liferay.portal.kernel.exception.SystemException,
505                            com.liferay.portlet.social.NoSuchActivityException {
506                    return getPersistence().findByUserId_First(userId, orderByComparator);
507            }
508    
509            /**
510            * Returns the first social activity in the ordered set where userId = &#63;.
511            *
512            * @param userId the user ID
513            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
514            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
515            * @throws SystemException if a system exception occurred
516            */
517            public static com.liferay.portlet.social.model.SocialActivity fetchByUserId_First(
518                    long userId,
519                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
520                    throws com.liferay.portal.kernel.exception.SystemException {
521                    return getPersistence().fetchByUserId_First(userId, orderByComparator);
522            }
523    
524            /**
525            * Returns the last social activity in the ordered set where userId = &#63;.
526            *
527            * @param userId the user ID
528            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
529            * @return the last matching social activity
530            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
531            * @throws SystemException if a system exception occurred
532            */
533            public static com.liferay.portlet.social.model.SocialActivity findByUserId_Last(
534                    long userId,
535                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
536                    throws com.liferay.portal.kernel.exception.SystemException,
537                            com.liferay.portlet.social.NoSuchActivityException {
538                    return getPersistence().findByUserId_Last(userId, orderByComparator);
539            }
540    
541            /**
542            * Returns the last social activity in the ordered set where userId = &#63;.
543            *
544            * @param userId the user ID
545            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
546            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
547            * @throws SystemException if a system exception occurred
548            */
549            public static com.liferay.portlet.social.model.SocialActivity fetchByUserId_Last(
550                    long userId,
551                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
552                    throws com.liferay.portal.kernel.exception.SystemException {
553                    return getPersistence().fetchByUserId_Last(userId, orderByComparator);
554            }
555    
556            /**
557            * Returns the social activities before and after the current social activity in the ordered set where userId = &#63;.
558            *
559            * @param activityId the primary key of the current social activity
560            * @param userId the user ID
561            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
562            * @return the previous, current, and next social activity
563            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
564            * @throws SystemException if a system exception occurred
565            */
566            public static com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(
567                    long activityId, long userId,
568                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
569                    throws com.liferay.portal.kernel.exception.SystemException,
570                            com.liferay.portlet.social.NoSuchActivityException {
571                    return getPersistence()
572                                       .findByUserId_PrevAndNext(activityId, userId,
573                            orderByComparator);
574            }
575    
576            /**
577            * Removes all the social activities where userId = &#63; from the database.
578            *
579            * @param userId the user ID
580            * @throws SystemException if a system exception occurred
581            */
582            public static void removeByUserId(long userId)
583                    throws com.liferay.portal.kernel.exception.SystemException {
584                    getPersistence().removeByUserId(userId);
585            }
586    
587            /**
588            * Returns the number of social activities where userId = &#63;.
589            *
590            * @param userId the user ID
591            * @return the number of matching social activities
592            * @throws SystemException if a system exception occurred
593            */
594            public static int countByUserId(long userId)
595                    throws com.liferay.portal.kernel.exception.SystemException {
596                    return getPersistence().countByUserId(userId);
597            }
598    
599            /**
600            * Returns all the social activities where activitySetId = &#63;.
601            *
602            * @param activitySetId the activity set ID
603            * @return the matching social activities
604            * @throws SystemException if a system exception occurred
605            */
606            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByActivitySetId(
607                    long activitySetId)
608                    throws com.liferay.portal.kernel.exception.SystemException {
609                    return getPersistence().findByActivitySetId(activitySetId);
610            }
611    
612            /**
613            * Returns a range of all the social activities where activitySetId = &#63;.
614            *
615            * <p>
616            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
617            * </p>
618            *
619            * @param activitySetId the activity set ID
620            * @param start the lower bound of the range of social activities
621            * @param end the upper bound of the range of social activities (not inclusive)
622            * @return the range of matching social activities
623            * @throws SystemException if a system exception occurred
624            */
625            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByActivitySetId(
626                    long activitySetId, int start, int end)
627                    throws com.liferay.portal.kernel.exception.SystemException {
628                    return getPersistence().findByActivitySetId(activitySetId, start, end);
629            }
630    
631            /**
632            * Returns an ordered range of all the social activities where activitySetId = &#63;.
633            *
634            * <p>
635            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
636            * </p>
637            *
638            * @param activitySetId the activity set ID
639            * @param start the lower bound of the range of social activities
640            * @param end the upper bound of the range of social activities (not inclusive)
641            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
642            * @return the ordered range of matching social activities
643            * @throws SystemException if a system exception occurred
644            */
645            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByActivitySetId(
646                    long activitySetId, int start, int end,
647                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
648                    throws com.liferay.portal.kernel.exception.SystemException {
649                    return getPersistence()
650                                       .findByActivitySetId(activitySetId, start, end,
651                            orderByComparator);
652            }
653    
654            /**
655            * Returns the first social activity in the ordered set where activitySetId = &#63;.
656            *
657            * @param activitySetId the activity set ID
658            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
659            * @return the first matching social activity
660            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
661            * @throws SystemException if a system exception occurred
662            */
663            public static com.liferay.portlet.social.model.SocialActivity findByActivitySetId_First(
664                    long activitySetId,
665                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
666                    throws com.liferay.portal.kernel.exception.SystemException,
667                            com.liferay.portlet.social.NoSuchActivityException {
668                    return getPersistence()
669                                       .findByActivitySetId_First(activitySetId, orderByComparator);
670            }
671    
672            /**
673            * Returns the first social activity in the ordered set where activitySetId = &#63;.
674            *
675            * @param activitySetId the activity set ID
676            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
677            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
678            * @throws SystemException if a system exception occurred
679            */
680            public static com.liferay.portlet.social.model.SocialActivity fetchByActivitySetId_First(
681                    long activitySetId,
682                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
683                    throws com.liferay.portal.kernel.exception.SystemException {
684                    return getPersistence()
685                                       .fetchByActivitySetId_First(activitySetId, orderByComparator);
686            }
687    
688            /**
689            * Returns the last social activity in the ordered set where activitySetId = &#63;.
690            *
691            * @param activitySetId the activity set ID
692            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
693            * @return the last matching social activity
694            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
695            * @throws SystemException if a system exception occurred
696            */
697            public static com.liferay.portlet.social.model.SocialActivity findByActivitySetId_Last(
698                    long activitySetId,
699                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
700                    throws com.liferay.portal.kernel.exception.SystemException,
701                            com.liferay.portlet.social.NoSuchActivityException {
702                    return getPersistence()
703                                       .findByActivitySetId_Last(activitySetId, orderByComparator);
704            }
705    
706            /**
707            * Returns the last social activity in the ordered set where activitySetId = &#63;.
708            *
709            * @param activitySetId the activity set ID
710            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
711            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
712            * @throws SystemException if a system exception occurred
713            */
714            public static com.liferay.portlet.social.model.SocialActivity fetchByActivitySetId_Last(
715                    long activitySetId,
716                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
717                    throws com.liferay.portal.kernel.exception.SystemException {
718                    return getPersistence()
719                                       .fetchByActivitySetId_Last(activitySetId, orderByComparator);
720            }
721    
722            /**
723            * Returns the social activities before and after the current social activity in the ordered set where activitySetId = &#63;.
724            *
725            * @param activityId the primary key of the current social activity
726            * @param activitySetId the activity set ID
727            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
728            * @return the previous, current, and next social activity
729            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
730            * @throws SystemException if a system exception occurred
731            */
732            public static com.liferay.portlet.social.model.SocialActivity[] findByActivitySetId_PrevAndNext(
733                    long activityId, long activitySetId,
734                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
735                    throws com.liferay.portal.kernel.exception.SystemException,
736                            com.liferay.portlet.social.NoSuchActivityException {
737                    return getPersistence()
738                                       .findByActivitySetId_PrevAndNext(activityId, activitySetId,
739                            orderByComparator);
740            }
741    
742            /**
743            * Removes all the social activities where activitySetId = &#63; from the database.
744            *
745            * @param activitySetId the activity set ID
746            * @throws SystemException if a system exception occurred
747            */
748            public static void removeByActivitySetId(long activitySetId)
749                    throws com.liferay.portal.kernel.exception.SystemException {
750                    getPersistence().removeByActivitySetId(activitySetId);
751            }
752    
753            /**
754            * Returns the number of social activities where activitySetId = &#63;.
755            *
756            * @param activitySetId the activity set ID
757            * @return the number of matching social activities
758            * @throws SystemException if a system exception occurred
759            */
760            public static int countByActivitySetId(long activitySetId)
761                    throws com.liferay.portal.kernel.exception.SystemException {
762                    return getPersistence().countByActivitySetId(activitySetId);
763            }
764    
765            /**
766            * Returns the social activity where mirrorActivityId = &#63; or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found.
767            *
768            * @param mirrorActivityId the mirror activity ID
769            * @return the matching social activity
770            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
771            * @throws SystemException if a system exception occurred
772            */
773            public static com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(
774                    long mirrorActivityId)
775                    throws com.liferay.portal.kernel.exception.SystemException,
776                            com.liferay.portlet.social.NoSuchActivityException {
777                    return getPersistence().findByMirrorActivityId(mirrorActivityId);
778            }
779    
780            /**
781            * Returns the social activity where mirrorActivityId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
782            *
783            * @param mirrorActivityId the mirror activity ID
784            * @return the matching social activity, or <code>null</code> if a matching social activity could not be found
785            * @throws SystemException if a system exception occurred
786            */
787            public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
788                    long mirrorActivityId)
789                    throws com.liferay.portal.kernel.exception.SystemException {
790                    return getPersistence().fetchByMirrorActivityId(mirrorActivityId);
791            }
792    
793            /**
794            * Returns the social activity where mirrorActivityId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
795            *
796            * @param mirrorActivityId the mirror activity ID
797            * @param retrieveFromCache whether to use the finder cache
798            * @return the matching social activity, or <code>null</code> if a matching social activity could not be found
799            * @throws SystemException if a system exception occurred
800            */
801            public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
802                    long mirrorActivityId, boolean retrieveFromCache)
803                    throws com.liferay.portal.kernel.exception.SystemException {
804                    return getPersistence()
805                                       .fetchByMirrorActivityId(mirrorActivityId, retrieveFromCache);
806            }
807    
808            /**
809            * Removes the social activity where mirrorActivityId = &#63; from the database.
810            *
811            * @param mirrorActivityId the mirror activity ID
812            * @return the social activity that was removed
813            * @throws SystemException if a system exception occurred
814            */
815            public static com.liferay.portlet.social.model.SocialActivity removeByMirrorActivityId(
816                    long mirrorActivityId)
817                    throws com.liferay.portal.kernel.exception.SystemException,
818                            com.liferay.portlet.social.NoSuchActivityException {
819                    return getPersistence().removeByMirrorActivityId(mirrorActivityId);
820            }
821    
822            /**
823            * Returns the number of social activities where mirrorActivityId = &#63;.
824            *
825            * @param mirrorActivityId the mirror activity ID
826            * @return the number of matching social activities
827            * @throws SystemException if a system exception occurred
828            */
829            public static int countByMirrorActivityId(long mirrorActivityId)
830                    throws com.liferay.portal.kernel.exception.SystemException {
831                    return getPersistence().countByMirrorActivityId(mirrorActivityId);
832            }
833    
834            /**
835            * Returns all the social activities where classNameId = &#63;.
836            *
837            * @param classNameId the class name ID
838            * @return the matching social activities
839            * @throws SystemException if a system exception occurred
840            */
841            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
842                    long classNameId)
843                    throws com.liferay.portal.kernel.exception.SystemException {
844                    return getPersistence().findByClassNameId(classNameId);
845            }
846    
847            /**
848            * Returns a range of all the social activities where classNameId = &#63;.
849            *
850            * <p>
851            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
852            * </p>
853            *
854            * @param classNameId the class name ID
855            * @param start the lower bound of the range of social activities
856            * @param end the upper bound of the range of social activities (not inclusive)
857            * @return the range of matching social activities
858            * @throws SystemException if a system exception occurred
859            */
860            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
861                    long classNameId, int start, int end)
862                    throws com.liferay.portal.kernel.exception.SystemException {
863                    return getPersistence().findByClassNameId(classNameId, start, end);
864            }
865    
866            /**
867            * Returns an ordered range of all the social activities where classNameId = &#63;.
868            *
869            * <p>
870            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
871            * </p>
872            *
873            * @param classNameId the class name ID
874            * @param start the lower bound of the range of social activities
875            * @param end the upper bound of the range of social activities (not inclusive)
876            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
877            * @return the ordered range of matching social activities
878            * @throws SystemException if a system exception occurred
879            */
880            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
881                    long classNameId, int start, int end,
882                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
883                    throws com.liferay.portal.kernel.exception.SystemException {
884                    return getPersistence()
885                                       .findByClassNameId(classNameId, start, end, orderByComparator);
886            }
887    
888            /**
889            * Returns the first social activity in the ordered set where classNameId = &#63;.
890            *
891            * @param classNameId the class name ID
892            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
893            * @return the first matching social activity
894            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
895            * @throws SystemException if a system exception occurred
896            */
897            public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_First(
898                    long classNameId,
899                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
900                    throws com.liferay.portal.kernel.exception.SystemException,
901                            com.liferay.portlet.social.NoSuchActivityException {
902                    return getPersistence()
903                                       .findByClassNameId_First(classNameId, orderByComparator);
904            }
905    
906            /**
907            * Returns the first social activity in the ordered set where classNameId = &#63;.
908            *
909            * @param classNameId the class name ID
910            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
911            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
912            * @throws SystemException if a system exception occurred
913            */
914            public static com.liferay.portlet.social.model.SocialActivity fetchByClassNameId_First(
915                    long classNameId,
916                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
917                    throws com.liferay.portal.kernel.exception.SystemException {
918                    return getPersistence()
919                                       .fetchByClassNameId_First(classNameId, orderByComparator);
920            }
921    
922            /**
923            * Returns the last social activity in the ordered set where classNameId = &#63;.
924            *
925            * @param classNameId the class name ID
926            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
927            * @return the last matching social activity
928            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
929            * @throws SystemException if a system exception occurred
930            */
931            public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last(
932                    long classNameId,
933                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
934                    throws com.liferay.portal.kernel.exception.SystemException,
935                            com.liferay.portlet.social.NoSuchActivityException {
936                    return getPersistence()
937                                       .findByClassNameId_Last(classNameId, orderByComparator);
938            }
939    
940            /**
941            * Returns the last social activity in the ordered set where classNameId = &#63;.
942            *
943            * @param classNameId the class name ID
944            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
945            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
946            * @throws SystemException if a system exception occurred
947            */
948            public static com.liferay.portlet.social.model.SocialActivity fetchByClassNameId_Last(
949                    long classNameId,
950                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
951                    throws com.liferay.portal.kernel.exception.SystemException {
952                    return getPersistence()
953                                       .fetchByClassNameId_Last(classNameId, orderByComparator);
954            }
955    
956            /**
957            * Returns the social activities before and after the current social activity in the ordered set where classNameId = &#63;.
958            *
959            * @param activityId the primary key of the current social activity
960            * @param classNameId the class name ID
961            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
962            * @return the previous, current, and next social activity
963            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
964            * @throws SystemException if a system exception occurred
965            */
966            public static com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext(
967                    long activityId, long classNameId,
968                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
969                    throws com.liferay.portal.kernel.exception.SystemException,
970                            com.liferay.portlet.social.NoSuchActivityException {
971                    return getPersistence()
972                                       .findByClassNameId_PrevAndNext(activityId, classNameId,
973                            orderByComparator);
974            }
975    
976            /**
977            * Removes all the social activities where classNameId = &#63; from the database.
978            *
979            * @param classNameId the class name ID
980            * @throws SystemException if a system exception occurred
981            */
982            public static void removeByClassNameId(long classNameId)
983                    throws com.liferay.portal.kernel.exception.SystemException {
984                    getPersistence().removeByClassNameId(classNameId);
985            }
986    
987            /**
988            * Returns the number of social activities where classNameId = &#63;.
989            *
990            * @param classNameId the class name ID
991            * @return the number of matching social activities
992            * @throws SystemException if a system exception occurred
993            */
994            public static int countByClassNameId(long classNameId)
995                    throws com.liferay.portal.kernel.exception.SystemException {
996                    return getPersistence().countByClassNameId(classNameId);
997            }
998    
999            /**
1000            * Returns all the social activities where receiverUserId = &#63;.
1001            *
1002            * @param receiverUserId the receiver user ID
1003            * @return the matching social activities
1004            * @throws SystemException if a system exception occurred
1005            */
1006            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
1007                    long receiverUserId)
1008                    throws com.liferay.portal.kernel.exception.SystemException {
1009                    return getPersistence().findByReceiverUserId(receiverUserId);
1010            }
1011    
1012            /**
1013            * Returns a range of all the social activities where receiverUserId = &#63;.
1014            *
1015            * <p>
1016            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1017            * </p>
1018            *
1019            * @param receiverUserId the receiver user ID
1020            * @param start the lower bound of the range of social activities
1021            * @param end the upper bound of the range of social activities (not inclusive)
1022            * @return the range of matching social activities
1023            * @throws SystemException if a system exception occurred
1024            */
1025            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
1026                    long receiverUserId, int start, int end)
1027                    throws com.liferay.portal.kernel.exception.SystemException {
1028                    return getPersistence().findByReceiverUserId(receiverUserId, start, end);
1029            }
1030    
1031            /**
1032            * Returns an ordered range of all the social activities where receiverUserId = &#63;.
1033            *
1034            * <p>
1035            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1036            * </p>
1037            *
1038            * @param receiverUserId the receiver user ID
1039            * @param start the lower bound of the range of social activities
1040            * @param end the upper bound of the range of social activities (not inclusive)
1041            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1042            * @return the ordered range of matching social activities
1043            * @throws SystemException if a system exception occurred
1044            */
1045            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
1046                    long receiverUserId, int start, int end,
1047                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1048                    throws com.liferay.portal.kernel.exception.SystemException {
1049                    return getPersistence()
1050                                       .findByReceiverUserId(receiverUserId, start, end,
1051                            orderByComparator);
1052            }
1053    
1054            /**
1055            * Returns the first social activity in the ordered set where receiverUserId = &#63;.
1056            *
1057            * @param receiverUserId the receiver user ID
1058            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1059            * @return the first matching social activity
1060            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1061            * @throws SystemException if a system exception occurred
1062            */
1063            public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First(
1064                    long receiverUserId,
1065                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1066                    throws com.liferay.portal.kernel.exception.SystemException,
1067                            com.liferay.portlet.social.NoSuchActivityException {
1068                    return getPersistence()
1069                                       .findByReceiverUserId_First(receiverUserId, orderByComparator);
1070            }
1071    
1072            /**
1073            * Returns the first social activity in the ordered set where receiverUserId = &#63;.
1074            *
1075            * @param receiverUserId the receiver user ID
1076            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1077            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
1078            * @throws SystemException if a system exception occurred
1079            */
1080            public static com.liferay.portlet.social.model.SocialActivity fetchByReceiverUserId_First(
1081                    long receiverUserId,
1082                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1083                    throws com.liferay.portal.kernel.exception.SystemException {
1084                    return getPersistence()
1085                                       .fetchByReceiverUserId_First(receiverUserId,
1086                            orderByComparator);
1087            }
1088    
1089            /**
1090            * Returns the last social activity in the ordered set where receiverUserId = &#63;.
1091            *
1092            * @param receiverUserId the receiver user ID
1093            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1094            * @return the last matching social activity
1095            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1096            * @throws SystemException if a system exception occurred
1097            */
1098            public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last(
1099                    long receiverUserId,
1100                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1101                    throws com.liferay.portal.kernel.exception.SystemException,
1102                            com.liferay.portlet.social.NoSuchActivityException {
1103                    return getPersistence()
1104                                       .findByReceiverUserId_Last(receiverUserId, orderByComparator);
1105            }
1106    
1107            /**
1108            * Returns the last social activity in the ordered set where receiverUserId = &#63;.
1109            *
1110            * @param receiverUserId the receiver user ID
1111            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1112            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
1113            * @throws SystemException if a system exception occurred
1114            */
1115            public static com.liferay.portlet.social.model.SocialActivity fetchByReceiverUserId_Last(
1116                    long receiverUserId,
1117                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1118                    throws com.liferay.portal.kernel.exception.SystemException {
1119                    return getPersistence()
1120                                       .fetchByReceiverUserId_Last(receiverUserId, orderByComparator);
1121            }
1122    
1123            /**
1124            * Returns the social activities before and after the current social activity in the ordered set where receiverUserId = &#63;.
1125            *
1126            * @param activityId the primary key of the current social activity
1127            * @param receiverUserId the receiver user ID
1128            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1129            * @return the previous, current, and next social activity
1130            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
1131            * @throws SystemException if a system exception occurred
1132            */
1133            public static com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext(
1134                    long activityId, long receiverUserId,
1135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1136                    throws com.liferay.portal.kernel.exception.SystemException,
1137                            com.liferay.portlet.social.NoSuchActivityException {
1138                    return getPersistence()
1139                                       .findByReceiverUserId_PrevAndNext(activityId,
1140                            receiverUserId, orderByComparator);
1141            }
1142    
1143            /**
1144            * Removes all the social activities where receiverUserId = &#63; from the database.
1145            *
1146            * @param receiverUserId the receiver user ID
1147            * @throws SystemException if a system exception occurred
1148            */
1149            public static void removeByReceiverUserId(long receiverUserId)
1150                    throws com.liferay.portal.kernel.exception.SystemException {
1151                    getPersistence().removeByReceiverUserId(receiverUserId);
1152            }
1153    
1154            /**
1155            * Returns the number of social activities where receiverUserId = &#63;.
1156            *
1157            * @param receiverUserId the receiver user ID
1158            * @return the number of matching social activities
1159            * @throws SystemException if a system exception occurred
1160            */
1161            public static int countByReceiverUserId(long receiverUserId)
1162                    throws com.liferay.portal.kernel.exception.SystemException {
1163                    return getPersistence().countByReceiverUserId(receiverUserId);
1164            }
1165    
1166            /**
1167            * Returns all the social activities where classNameId = &#63; and classPK = &#63;.
1168            *
1169            * @param classNameId the class name ID
1170            * @param classPK the class p k
1171            * @return the matching social activities
1172            * @throws SystemException if a system exception occurred
1173            */
1174            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
1175                    long classNameId, long classPK)
1176                    throws com.liferay.portal.kernel.exception.SystemException {
1177                    return getPersistence().findByC_C(classNameId, classPK);
1178            }
1179    
1180            /**
1181            * Returns a range of all the social activities where classNameId = &#63; and classPK = &#63;.
1182            *
1183            * <p>
1184            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1185            * </p>
1186            *
1187            * @param classNameId the class name ID
1188            * @param classPK the class p k
1189            * @param start the lower bound of the range of social activities
1190            * @param end the upper bound of the range of social activities (not inclusive)
1191            * @return the range of matching social activities
1192            * @throws SystemException if a system exception occurred
1193            */
1194            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
1195                    long classNameId, long classPK, int start, int end)
1196                    throws com.liferay.portal.kernel.exception.SystemException {
1197                    return getPersistence().findByC_C(classNameId, classPK, start, end);
1198            }
1199    
1200            /**
1201            * Returns an ordered range of all the social activities where classNameId = &#63; and classPK = &#63;.
1202            *
1203            * <p>
1204            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1205            * </p>
1206            *
1207            * @param classNameId the class name ID
1208            * @param classPK the class p k
1209            * @param start the lower bound of the range of social activities
1210            * @param end the upper bound of the range of social activities (not inclusive)
1211            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1212            * @return the ordered range of matching social activities
1213            * @throws SystemException if a system exception occurred
1214            */
1215            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
1216                    long classNameId, long classPK, int start, int end,
1217                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1218                    throws com.liferay.portal.kernel.exception.SystemException {
1219                    return getPersistence()
1220                                       .findByC_C(classNameId, classPK, start, end,
1221                            orderByComparator);
1222            }
1223    
1224            /**
1225            * Returns the first social activity in the ordered set where classNameId = &#63; and classPK = &#63;.
1226            *
1227            * @param classNameId the class name ID
1228            * @param classPK the class p k
1229            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1230            * @return the first matching social activity
1231            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1232            * @throws SystemException if a system exception occurred
1233            */
1234            public static com.liferay.portlet.social.model.SocialActivity findByC_C_First(
1235                    long classNameId, long classPK,
1236                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1237                    throws com.liferay.portal.kernel.exception.SystemException,
1238                            com.liferay.portlet.social.NoSuchActivityException {
1239                    return getPersistence()
1240                                       .findByC_C_First(classNameId, classPK, orderByComparator);
1241            }
1242    
1243            /**
1244            * Returns the first social activity in the ordered set where classNameId = &#63; and classPK = &#63;.
1245            *
1246            * @param classNameId the class name ID
1247            * @param classPK the class p k
1248            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1249            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
1250            * @throws SystemException if a system exception occurred
1251            */
1252            public static com.liferay.portlet.social.model.SocialActivity fetchByC_C_First(
1253                    long classNameId, long classPK,
1254                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1255                    throws com.liferay.portal.kernel.exception.SystemException {
1256                    return getPersistence()
1257                                       .fetchByC_C_First(classNameId, classPK, orderByComparator);
1258            }
1259    
1260            /**
1261            * Returns the last social activity in the ordered set where classNameId = &#63; and classPK = &#63;.
1262            *
1263            * @param classNameId the class name ID
1264            * @param classPK the class p k
1265            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1266            * @return the last matching social activity
1267            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1268            * @throws SystemException if a system exception occurred
1269            */
1270            public static com.liferay.portlet.social.model.SocialActivity findByC_C_Last(
1271                    long classNameId, long classPK,
1272                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1273                    throws com.liferay.portal.kernel.exception.SystemException,
1274                            com.liferay.portlet.social.NoSuchActivityException {
1275                    return getPersistence()
1276                                       .findByC_C_Last(classNameId, classPK, orderByComparator);
1277            }
1278    
1279            /**
1280            * Returns the last social activity in the ordered set where classNameId = &#63; and classPK = &#63;.
1281            *
1282            * @param classNameId the class name ID
1283            * @param classPK the class p k
1284            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1285            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
1286            * @throws SystemException if a system exception occurred
1287            */
1288            public static com.liferay.portlet.social.model.SocialActivity fetchByC_C_Last(
1289                    long classNameId, long classPK,
1290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1291                    throws com.liferay.portal.kernel.exception.SystemException {
1292                    return getPersistence()
1293                                       .fetchByC_C_Last(classNameId, classPK, orderByComparator);
1294            }
1295    
1296            /**
1297            * Returns the social activities before and after the current social activity in the ordered set where classNameId = &#63; and classPK = &#63;.
1298            *
1299            * @param activityId the primary key of the current social activity
1300            * @param classNameId the class name ID
1301            * @param classPK the class p k
1302            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1303            * @return the previous, current, and next social activity
1304            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
1305            * @throws SystemException if a system exception occurred
1306            */
1307            public static com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext(
1308                    long activityId, long classNameId, long classPK,
1309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1310                    throws com.liferay.portal.kernel.exception.SystemException,
1311                            com.liferay.portlet.social.NoSuchActivityException {
1312                    return getPersistence()
1313                                       .findByC_C_PrevAndNext(activityId, classNameId, classPK,
1314                            orderByComparator);
1315            }
1316    
1317            /**
1318            * Removes all the social activities where classNameId = &#63; and classPK = &#63; from the database.
1319            *
1320            * @param classNameId the class name ID
1321            * @param classPK the class p k
1322            * @throws SystemException if a system exception occurred
1323            */
1324            public static void removeByC_C(long classNameId, long classPK)
1325                    throws com.liferay.portal.kernel.exception.SystemException {
1326                    getPersistence().removeByC_C(classNameId, classPK);
1327            }
1328    
1329            /**
1330            * Returns the number of social activities where classNameId = &#63; and classPK = &#63;.
1331            *
1332            * @param classNameId the class name ID
1333            * @param classPK the class p k
1334            * @return the number of matching social activities
1335            * @throws SystemException if a system exception occurred
1336            */
1337            public static int countByC_C(long classNameId, long classPK)
1338                    throws com.liferay.portal.kernel.exception.SystemException {
1339                    return getPersistence().countByC_C(classNameId, classPK);
1340            }
1341    
1342            /**
1343            * Returns all the social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1344            *
1345            * @param mirrorActivityId the mirror activity ID
1346            * @param classNameId the class name ID
1347            * @param classPK the class p k
1348            * @return the matching social activities
1349            * @throws SystemException if a system exception occurred
1350            */
1351            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
1352                    long mirrorActivityId, long classNameId, long classPK)
1353                    throws com.liferay.portal.kernel.exception.SystemException {
1354                    return getPersistence()
1355                                       .findByM_C_C(mirrorActivityId, classNameId, classPK);
1356            }
1357    
1358            /**
1359            * Returns a range of all the social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1360            *
1361            * <p>
1362            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1363            * </p>
1364            *
1365            * @param mirrorActivityId the mirror activity ID
1366            * @param classNameId the class name ID
1367            * @param classPK the class p k
1368            * @param start the lower bound of the range of social activities
1369            * @param end the upper bound of the range of social activities (not inclusive)
1370            * @return the range of matching social activities
1371            * @throws SystemException if a system exception occurred
1372            */
1373            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
1374                    long mirrorActivityId, long classNameId, long classPK, int start,
1375                    int end) throws com.liferay.portal.kernel.exception.SystemException {
1376                    return getPersistence()
1377                                       .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
1378                            end);
1379            }
1380    
1381            /**
1382            * Returns an ordered range of all the social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1383            *
1384            * <p>
1385            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1386            * </p>
1387            *
1388            * @param mirrorActivityId the mirror activity ID
1389            * @param classNameId the class name ID
1390            * @param classPK the class p k
1391            * @param start the lower bound of the range of social activities
1392            * @param end the upper bound of the range of social activities (not inclusive)
1393            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1394            * @return the ordered range of matching social activities
1395            * @throws SystemException if a system exception occurred
1396            */
1397            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
1398                    long mirrorActivityId, long classNameId, long classPK, int start,
1399                    int end,
1400                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1401                    throws com.liferay.portal.kernel.exception.SystemException {
1402                    return getPersistence()
1403                                       .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
1404                            end, orderByComparator);
1405            }
1406    
1407            /**
1408            * Returns the first social activity in the ordered set where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1409            *
1410            * @param mirrorActivityId the mirror activity ID
1411            * @param classNameId the class name ID
1412            * @param classPK the class p k
1413            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1414            * @return the first matching social activity
1415            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1416            * @throws SystemException if a system exception occurred
1417            */
1418            public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_First(
1419                    long mirrorActivityId, long classNameId, long classPK,
1420                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1421                    throws com.liferay.portal.kernel.exception.SystemException,
1422                            com.liferay.portlet.social.NoSuchActivityException {
1423                    return getPersistence()
1424                                       .findByM_C_C_First(mirrorActivityId, classNameId, classPK,
1425                            orderByComparator);
1426            }
1427    
1428            /**
1429            * Returns the first social activity in the ordered set where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1430            *
1431            * @param mirrorActivityId the mirror activity ID
1432            * @param classNameId the class name ID
1433            * @param classPK the class p k
1434            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1435            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
1436            * @throws SystemException if a system exception occurred
1437            */
1438            public static com.liferay.portlet.social.model.SocialActivity fetchByM_C_C_First(
1439                    long mirrorActivityId, long classNameId, long classPK,
1440                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1441                    throws com.liferay.portal.kernel.exception.SystemException {
1442                    return getPersistence()
1443                                       .fetchByM_C_C_First(mirrorActivityId, classNameId, classPK,
1444                            orderByComparator);
1445            }
1446    
1447            /**
1448            * Returns the last social activity in the ordered set where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1449            *
1450            * @param mirrorActivityId the mirror activity ID
1451            * @param classNameId the class name ID
1452            * @param classPK the class p k
1453            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1454            * @return the last matching social activity
1455            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1456            * @throws SystemException if a system exception occurred
1457            */
1458            public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last(
1459                    long mirrorActivityId, long classNameId, long classPK,
1460                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1461                    throws com.liferay.portal.kernel.exception.SystemException,
1462                            com.liferay.portlet.social.NoSuchActivityException {
1463                    return getPersistence()
1464                                       .findByM_C_C_Last(mirrorActivityId, classNameId, classPK,
1465                            orderByComparator);
1466            }
1467    
1468            /**
1469            * Returns the last social activity in the ordered set where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1470            *
1471            * @param mirrorActivityId the mirror activity ID
1472            * @param classNameId the class name ID
1473            * @param classPK the class p k
1474            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1475            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
1476            * @throws SystemException if a system exception occurred
1477            */
1478            public static com.liferay.portlet.social.model.SocialActivity fetchByM_C_C_Last(
1479                    long mirrorActivityId, long classNameId, long classPK,
1480                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1481                    throws com.liferay.portal.kernel.exception.SystemException {
1482                    return getPersistence()
1483                                       .fetchByM_C_C_Last(mirrorActivityId, classNameId, classPK,
1484                            orderByComparator);
1485            }
1486    
1487            /**
1488            * Returns the social activities before and after the current social activity in the ordered set where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1489            *
1490            * @param activityId the primary key of the current social activity
1491            * @param mirrorActivityId the mirror activity ID
1492            * @param classNameId the class name ID
1493            * @param classPK the class p k
1494            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1495            * @return the previous, current, and next social activity
1496            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
1497            * @throws SystemException if a system exception occurred
1498            */
1499            public static com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext(
1500                    long activityId, long mirrorActivityId, long classNameId, long classPK,
1501                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1502                    throws com.liferay.portal.kernel.exception.SystemException,
1503                            com.liferay.portlet.social.NoSuchActivityException {
1504                    return getPersistence()
1505                                       .findByM_C_C_PrevAndNext(activityId, mirrorActivityId,
1506                            classNameId, classPK, orderByComparator);
1507            }
1508    
1509            /**
1510            * Removes all the social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
1511            *
1512            * @param mirrorActivityId the mirror activity ID
1513            * @param classNameId the class name ID
1514            * @param classPK the class p k
1515            * @throws SystemException if a system exception occurred
1516            */
1517            public static void removeByM_C_C(long mirrorActivityId, long classNameId,
1518                    long classPK)
1519                    throws com.liferay.portal.kernel.exception.SystemException {
1520                    getPersistence().removeByM_C_C(mirrorActivityId, classNameId, classPK);
1521            }
1522    
1523            /**
1524            * Returns the number of social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1525            *
1526            * @param mirrorActivityId the mirror activity ID
1527            * @param classNameId the class name ID
1528            * @param classPK the class p k
1529            * @return the number of matching social activities
1530            * @throws SystemException if a system exception occurred
1531            */
1532            public static int countByM_C_C(long mirrorActivityId, long classNameId,
1533                    long classPK)
1534                    throws com.liferay.portal.kernel.exception.SystemException {
1535                    return getPersistence()
1536                                       .countByM_C_C(mirrorActivityId, classNameId, classPK);
1537            }
1538    
1539            /**
1540            * Returns all the social activities where classNameId = &#63; and classPK = &#63; and type = &#63;.
1541            *
1542            * @param classNameId the class name ID
1543            * @param classPK the class p k
1544            * @param type the type
1545            * @return the matching social activities
1546            * @throws SystemException if a system exception occurred
1547            */
1548            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C_T(
1549                    long classNameId, long classPK, int type)
1550                    throws com.liferay.portal.kernel.exception.SystemException {
1551                    return getPersistence().findByC_C_T(classNameId, classPK, type);
1552            }
1553    
1554            /**
1555            * Returns a range of all the social activities where classNameId = &#63; and classPK = &#63; and type = &#63;.
1556            *
1557            * <p>
1558            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1559            * </p>
1560            *
1561            * @param classNameId the class name ID
1562            * @param classPK the class p k
1563            * @param type the type
1564            * @param start the lower bound of the range of social activities
1565            * @param end the upper bound of the range of social activities (not inclusive)
1566            * @return the range of matching social activities
1567            * @throws SystemException if a system exception occurred
1568            */
1569            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C_T(
1570                    long classNameId, long classPK, int type, int start, int end)
1571                    throws com.liferay.portal.kernel.exception.SystemException {
1572                    return getPersistence()
1573                                       .findByC_C_T(classNameId, classPK, type, start, end);
1574            }
1575    
1576            /**
1577            * Returns an ordered range of all the social activities where classNameId = &#63; and classPK = &#63; and type = &#63;.
1578            *
1579            * <p>
1580            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1581            * </p>
1582            *
1583            * @param classNameId the class name ID
1584            * @param classPK the class p k
1585            * @param type the type
1586            * @param start the lower bound of the range of social activities
1587            * @param end the upper bound of the range of social activities (not inclusive)
1588            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1589            * @return the ordered range of matching social activities
1590            * @throws SystemException if a system exception occurred
1591            */
1592            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C_T(
1593                    long classNameId, long classPK, int type, int start, int end,
1594                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1595                    throws com.liferay.portal.kernel.exception.SystemException {
1596                    return getPersistence()
1597                                       .findByC_C_T(classNameId, classPK, type, start, end,
1598                            orderByComparator);
1599            }
1600    
1601            /**
1602            * Returns the first social activity in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1603            *
1604            * @param classNameId the class name ID
1605            * @param classPK the class p k
1606            * @param type the type
1607            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1608            * @return the first matching social activity
1609            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1610            * @throws SystemException if a system exception occurred
1611            */
1612            public static com.liferay.portlet.social.model.SocialActivity findByC_C_T_First(
1613                    long classNameId, long classPK, int type,
1614                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1615                    throws com.liferay.portal.kernel.exception.SystemException,
1616                            com.liferay.portlet.social.NoSuchActivityException {
1617                    return getPersistence()
1618                                       .findByC_C_T_First(classNameId, classPK, type,
1619                            orderByComparator);
1620            }
1621    
1622            /**
1623            * Returns the first social activity in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1624            *
1625            * @param classNameId the class name ID
1626            * @param classPK the class p k
1627            * @param type the type
1628            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1629            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
1630            * @throws SystemException if a system exception occurred
1631            */
1632            public static com.liferay.portlet.social.model.SocialActivity fetchByC_C_T_First(
1633                    long classNameId, long classPK, int type,
1634                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1635                    throws com.liferay.portal.kernel.exception.SystemException {
1636                    return getPersistence()
1637                                       .fetchByC_C_T_First(classNameId, classPK, type,
1638                            orderByComparator);
1639            }
1640    
1641            /**
1642            * Returns the last social activity in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1643            *
1644            * @param classNameId the class name ID
1645            * @param classPK the class p k
1646            * @param type the type
1647            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1648            * @return the last matching social activity
1649            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1650            * @throws SystemException if a system exception occurred
1651            */
1652            public static com.liferay.portlet.social.model.SocialActivity findByC_C_T_Last(
1653                    long classNameId, long classPK, int type,
1654                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1655                    throws com.liferay.portal.kernel.exception.SystemException,
1656                            com.liferay.portlet.social.NoSuchActivityException {
1657                    return getPersistence()
1658                                       .findByC_C_T_Last(classNameId, classPK, type,
1659                            orderByComparator);
1660            }
1661    
1662            /**
1663            * Returns the last social activity in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1664            *
1665            * @param classNameId the class name ID
1666            * @param classPK the class p k
1667            * @param type the type
1668            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1669            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
1670            * @throws SystemException if a system exception occurred
1671            */
1672            public static com.liferay.portlet.social.model.SocialActivity fetchByC_C_T_Last(
1673                    long classNameId, long classPK, int type,
1674                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1675                    throws com.liferay.portal.kernel.exception.SystemException {
1676                    return getPersistence()
1677                                       .fetchByC_C_T_Last(classNameId, classPK, type,
1678                            orderByComparator);
1679            }
1680    
1681            /**
1682            * Returns the social activities before and after the current social activity in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1683            *
1684            * @param activityId the primary key of the current social activity
1685            * @param classNameId the class name ID
1686            * @param classPK the class p k
1687            * @param type the type
1688            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1689            * @return the previous, current, and next social activity
1690            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
1691            * @throws SystemException if a system exception occurred
1692            */
1693            public static com.liferay.portlet.social.model.SocialActivity[] findByC_C_T_PrevAndNext(
1694                    long activityId, long classNameId, long classPK, int type,
1695                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1696                    throws com.liferay.portal.kernel.exception.SystemException,
1697                            com.liferay.portlet.social.NoSuchActivityException {
1698                    return getPersistence()
1699                                       .findByC_C_T_PrevAndNext(activityId, classNameId, classPK,
1700                            type, orderByComparator);
1701            }
1702    
1703            /**
1704            * Removes all the social activities where classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
1705            *
1706            * @param classNameId the class name ID
1707            * @param classPK the class p k
1708            * @param type the type
1709            * @throws SystemException if a system exception occurred
1710            */
1711            public static void removeByC_C_T(long classNameId, long classPK, int type)
1712                    throws com.liferay.portal.kernel.exception.SystemException {
1713                    getPersistence().removeByC_C_T(classNameId, classPK, type);
1714            }
1715    
1716            /**
1717            * Returns the number of social activities where classNameId = &#63; and classPK = &#63; and type = &#63;.
1718            *
1719            * @param classNameId the class name ID
1720            * @param classPK the class p k
1721            * @param type the type
1722            * @return the number of matching social activities
1723            * @throws SystemException if a system exception occurred
1724            */
1725            public static int countByC_C_T(long classNameId, long classPK, int type)
1726                    throws com.liferay.portal.kernel.exception.SystemException {
1727                    return getPersistence().countByC_C_T(classNameId, classPK, type);
1728            }
1729    
1730            /**
1731            * Returns all the social activities where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1732            *
1733            * @param groupId the group ID
1734            * @param userId the user ID
1735            * @param classNameId the class name ID
1736            * @param classPK the class p k
1737            * @param type the type
1738            * @param receiverUserId the receiver user ID
1739            * @return the matching social activities
1740            * @throws SystemException if a system exception occurred
1741            */
1742            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R(
1743                    long groupId, long userId, long classNameId, long classPK, int type,
1744                    long receiverUserId)
1745                    throws com.liferay.portal.kernel.exception.SystemException {
1746                    return getPersistence()
1747                                       .findByG_U_C_C_T_R(groupId, userId, classNameId, classPK,
1748                            type, receiverUserId);
1749            }
1750    
1751            /**
1752            * 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;.
1753            *
1754            * <p>
1755            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1756            * </p>
1757            *
1758            * @param groupId the group ID
1759            * @param userId the user ID
1760            * @param classNameId the class name ID
1761            * @param classPK the class p k
1762            * @param type the type
1763            * @param receiverUserId the receiver user ID
1764            * @param start the lower bound of the range of social activities
1765            * @param end the upper bound of the range of social activities (not inclusive)
1766            * @return the range of matching social activities
1767            * @throws SystemException if a system exception occurred
1768            */
1769            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R(
1770                    long groupId, long userId, long classNameId, long classPK, int type,
1771                    long receiverUserId, int start, int end)
1772                    throws com.liferay.portal.kernel.exception.SystemException {
1773                    return getPersistence()
1774                                       .findByG_U_C_C_T_R(groupId, userId, classNameId, classPK,
1775                            type, receiverUserId, start, end);
1776            }
1777    
1778            /**
1779            * 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;.
1780            *
1781            * <p>
1782            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1783            * </p>
1784            *
1785            * @param groupId the group ID
1786            * @param userId the user ID
1787            * @param classNameId the class name ID
1788            * @param classPK the class p k
1789            * @param type the type
1790            * @param receiverUserId the receiver user ID
1791            * @param start the lower bound of the range of social activities
1792            * @param end the upper bound of the range of social activities (not inclusive)
1793            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1794            * @return the ordered range of matching social activities
1795            * @throws SystemException if a system exception occurred
1796            */
1797            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R(
1798                    long groupId, long userId, long classNameId, long classPK, int type,
1799                    long receiverUserId, int start, int end,
1800                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1801                    throws com.liferay.portal.kernel.exception.SystemException {
1802                    return getPersistence()
1803                                       .findByG_U_C_C_T_R(groupId, userId, classNameId, classPK,
1804                            type, receiverUserId, start, end, orderByComparator);
1805            }
1806    
1807            /**
1808            * 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;.
1809            *
1810            * @param groupId the group ID
1811            * @param userId the user ID
1812            * @param classNameId the class name ID
1813            * @param classPK the class p k
1814            * @param type the type
1815            * @param receiverUserId the receiver user ID
1816            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1817            * @return the first matching social activity
1818            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1819            * @throws SystemException if a system exception occurred
1820            */
1821            public static com.liferay.portlet.social.model.SocialActivity findByG_U_C_C_T_R_First(
1822                    long groupId, long userId, long classNameId, long classPK, int type,
1823                    long receiverUserId,
1824                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1825                    throws com.liferay.portal.kernel.exception.SystemException,
1826                            com.liferay.portlet.social.NoSuchActivityException {
1827                    return getPersistence()
1828                                       .findByG_U_C_C_T_R_First(groupId, userId, classNameId,
1829                            classPK, type, receiverUserId, orderByComparator);
1830            }
1831    
1832            /**
1833            * 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;.
1834            *
1835            * @param groupId the group ID
1836            * @param userId the user ID
1837            * @param classNameId the class name ID
1838            * @param classPK the class p k
1839            * @param type the type
1840            * @param receiverUserId the receiver user ID
1841            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1842            * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found
1843            * @throws SystemException if a system exception occurred
1844            */
1845            public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_C_C_T_R_First(
1846                    long groupId, long userId, long classNameId, long classPK, int type,
1847                    long receiverUserId,
1848                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1849                    throws com.liferay.portal.kernel.exception.SystemException {
1850                    return getPersistence()
1851                                       .fetchByG_U_C_C_T_R_First(groupId, userId, classNameId,
1852                            classPK, type, receiverUserId, orderByComparator);
1853            }
1854    
1855            /**
1856            * 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;.
1857            *
1858            * @param groupId the group ID
1859            * @param userId the user ID
1860            * @param classNameId the class name ID
1861            * @param classPK the class p k
1862            * @param type the type
1863            * @param receiverUserId the receiver user ID
1864            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1865            * @return the last matching social activity
1866            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1867            * @throws SystemException if a system exception occurred
1868            */
1869            public static com.liferay.portlet.social.model.SocialActivity findByG_U_C_C_T_R_Last(
1870                    long groupId, long userId, long classNameId, long classPK, int type,
1871                    long receiverUserId,
1872                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1873                    throws com.liferay.portal.kernel.exception.SystemException,
1874                            com.liferay.portlet.social.NoSuchActivityException {
1875                    return getPersistence()
1876                                       .findByG_U_C_C_T_R_Last(groupId, userId, classNameId,
1877                            classPK, type, receiverUserId, orderByComparator);
1878            }
1879    
1880            /**
1881            * 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;.
1882            *
1883            * @param groupId the group ID
1884            * @param userId the user ID
1885            * @param classNameId the class name ID
1886            * @param classPK the class p k
1887            * @param type the type
1888            * @param receiverUserId the receiver user ID
1889            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1890            * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found
1891            * @throws SystemException if a system exception occurred
1892            */
1893            public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_C_C_T_R_Last(
1894                    long groupId, long userId, long classNameId, long classPK, int type,
1895                    long receiverUserId,
1896                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1897                    throws com.liferay.portal.kernel.exception.SystemException {
1898                    return getPersistence()
1899                                       .fetchByG_U_C_C_T_R_Last(groupId, userId, classNameId,
1900                            classPK, type, receiverUserId, orderByComparator);
1901            }
1902    
1903            /**
1904            * 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;.
1905            *
1906            * @param activityId the primary key of the current social activity
1907            * @param groupId the group ID
1908            * @param userId the user ID
1909            * @param classNameId the class name ID
1910            * @param classPK the class p k
1911            * @param type the type
1912            * @param receiverUserId the receiver user ID
1913            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1914            * @return the previous, current, and next social activity
1915            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
1916            * @throws SystemException if a system exception occurred
1917            */
1918            public static com.liferay.portlet.social.model.SocialActivity[] findByG_U_C_C_T_R_PrevAndNext(
1919                    long activityId, long groupId, long userId, long classNameId,
1920                    long classPK, int type, long receiverUserId,
1921                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1922                    throws com.liferay.portal.kernel.exception.SystemException,
1923                            com.liferay.portlet.social.NoSuchActivityException {
1924                    return getPersistence()
1925                                       .findByG_U_C_C_T_R_PrevAndNext(activityId, groupId, userId,
1926                            classNameId, classPK, type, receiverUserId, orderByComparator);
1927            }
1928    
1929            /**
1930            * 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.
1931            *
1932            * @param groupId the group ID
1933            * @param userId the user ID
1934            * @param classNameId the class name ID
1935            * @param classPK the class p k
1936            * @param type the type
1937            * @param receiverUserId the receiver user ID
1938            * @throws SystemException if a system exception occurred
1939            */
1940            public static void removeByG_U_C_C_T_R(long groupId, long userId,
1941                    long classNameId, long classPK, int type, long receiverUserId)
1942                    throws com.liferay.portal.kernel.exception.SystemException {
1943                    getPersistence()
1944                            .removeByG_U_C_C_T_R(groupId, userId, classNameId, classPK, type,
1945                            receiverUserId);
1946            }
1947    
1948            /**
1949            * Returns the number of social activities where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1950            *
1951            * @param groupId the group ID
1952            * @param userId the user ID
1953            * @param classNameId the class name ID
1954            * @param classPK the class p k
1955            * @param type the type
1956            * @param receiverUserId the receiver user ID
1957            * @return the number of matching social activities
1958            * @throws SystemException if a system exception occurred
1959            */
1960            public static int countByG_U_C_C_T_R(long groupId, long userId,
1961                    long classNameId, long classPK, int type, long receiverUserId)
1962                    throws com.liferay.portal.kernel.exception.SystemException {
1963                    return getPersistence()
1964                                       .countByG_U_C_C_T_R(groupId, userId, classNameId, classPK,
1965                            type, receiverUserId);
1966            }
1967    
1968            /**
1969            * 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.
1970            *
1971            * @param groupId the group ID
1972            * @param userId the user ID
1973            * @param createDate the create date
1974            * @param classNameId the class name ID
1975            * @param classPK the class p k
1976            * @param type the type
1977            * @param receiverUserId the receiver user ID
1978            * @return the matching social activity
1979            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1980            * @throws SystemException if a system exception occurred
1981            */
1982            public static com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(
1983                    long groupId, long userId, long createDate, long classNameId,
1984                    long classPK, int type, long receiverUserId)
1985                    throws com.liferay.portal.kernel.exception.SystemException,
1986                            com.liferay.portlet.social.NoSuchActivityException {
1987                    return getPersistence()
1988                                       .findByG_U_CD_C_C_T_R(groupId, userId, createDate,
1989                            classNameId, classPK, type, receiverUserId);
1990            }
1991    
1992            /**
1993            * 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.
1994            *
1995            * @param groupId the group ID
1996            * @param userId the user ID
1997            * @param createDate the create date
1998            * @param classNameId the class name ID
1999            * @param classPK the class p k
2000            * @param type the type
2001            * @param receiverUserId the receiver user ID
2002            * @return the matching social activity, or <code>null</code> if a matching social activity could not be found
2003            * @throws SystemException if a system exception occurred
2004            */
2005            public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
2006                    long groupId, long userId, long createDate, long classNameId,
2007                    long classPK, int type, long receiverUserId)
2008                    throws com.liferay.portal.kernel.exception.SystemException {
2009                    return getPersistence()
2010                                       .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate,
2011                            classNameId, classPK, type, receiverUserId);
2012            }
2013    
2014            /**
2015            * 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.
2016            *
2017            * @param groupId the group ID
2018            * @param userId the user ID
2019            * @param createDate the create date
2020            * @param classNameId the class name ID
2021            * @param classPK the class p k
2022            * @param type the type
2023            * @param receiverUserId the receiver user ID
2024            * @param retrieveFromCache whether to use the finder cache
2025            * @return the matching social activity, or <code>null</code> if a matching social activity could not be found
2026            * @throws SystemException if a system exception occurred
2027            */
2028            public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
2029                    long groupId, long userId, long createDate, long classNameId,
2030                    long classPK, int type, long receiverUserId, boolean retrieveFromCache)
2031                    throws com.liferay.portal.kernel.exception.SystemException {
2032                    return getPersistence()
2033                                       .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate,
2034                            classNameId, classPK, type, receiverUserId, retrieveFromCache);
2035            }
2036    
2037            /**
2038            * 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.
2039            *
2040            * @param groupId the group ID
2041            * @param userId the user ID
2042            * @param createDate the create date
2043            * @param classNameId the class name ID
2044            * @param classPK the class p k
2045            * @param type the type
2046            * @param receiverUserId the receiver user ID
2047            * @return the social activity that was removed
2048            * @throws SystemException if a system exception occurred
2049            */
2050            public static com.liferay.portlet.social.model.SocialActivity removeByG_U_CD_C_C_T_R(
2051                    long groupId, long userId, long createDate, long classNameId,
2052                    long classPK, int type, long receiverUserId)
2053                    throws com.liferay.portal.kernel.exception.SystemException,
2054                            com.liferay.portlet.social.NoSuchActivityException {
2055                    return getPersistence()
2056                                       .removeByG_U_CD_C_C_T_R(groupId, userId, createDate,
2057                            classNameId, classPK, type, receiverUserId);
2058            }
2059    
2060            /**
2061            * 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;.
2062            *
2063            * @param groupId the group ID
2064            * @param userId the user ID
2065            * @param createDate the create date
2066            * @param classNameId the class name ID
2067            * @param classPK the class p k
2068            * @param type the type
2069            * @param receiverUserId the receiver user ID
2070            * @return the number of matching social activities
2071            * @throws SystemException if a system exception occurred
2072            */
2073            public static int countByG_U_CD_C_C_T_R(long groupId, long userId,
2074                    long createDate, long classNameId, long classPK, int type,
2075                    long receiverUserId)
2076                    throws com.liferay.portal.kernel.exception.SystemException {
2077                    return getPersistence()
2078                                       .countByG_U_CD_C_C_T_R(groupId, userId, createDate,
2079                            classNameId, classPK, type, receiverUserId);
2080            }
2081    
2082            /**
2083            * Caches the social activity in the entity cache if it is enabled.
2084            *
2085            * @param socialActivity the social activity
2086            */
2087            public static void cacheResult(
2088                    com.liferay.portlet.social.model.SocialActivity socialActivity) {
2089                    getPersistence().cacheResult(socialActivity);
2090            }
2091    
2092            /**
2093            * Caches the social activities in the entity cache if it is enabled.
2094            *
2095            * @param socialActivities the social activities
2096            */
2097            public static void cacheResult(
2098                    java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities) {
2099                    getPersistence().cacheResult(socialActivities);
2100            }
2101    
2102            /**
2103            * Creates a new social activity with the primary key. Does not add the social activity to the database.
2104            *
2105            * @param activityId the primary key for the new social activity
2106            * @return the new social activity
2107            */
2108            public static com.liferay.portlet.social.model.SocialActivity create(
2109                    long activityId) {
2110                    return getPersistence().create(activityId);
2111            }
2112    
2113            /**
2114            * Removes the social activity with the primary key from the database. Also notifies the appropriate model listeners.
2115            *
2116            * @param activityId the primary key of the social activity
2117            * @return the social activity that was removed
2118            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
2119            * @throws SystemException if a system exception occurred
2120            */
2121            public static com.liferay.portlet.social.model.SocialActivity remove(
2122                    long activityId)
2123                    throws com.liferay.portal.kernel.exception.SystemException,
2124                            com.liferay.portlet.social.NoSuchActivityException {
2125                    return getPersistence().remove(activityId);
2126            }
2127    
2128            public static com.liferay.portlet.social.model.SocialActivity updateImpl(
2129                    com.liferay.portlet.social.model.SocialActivity socialActivity)
2130                    throws com.liferay.portal.kernel.exception.SystemException {
2131                    return getPersistence().updateImpl(socialActivity);
2132            }
2133    
2134            /**
2135            * Returns the social activity with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found.
2136            *
2137            * @param activityId the primary key of the social activity
2138            * @return the social activity
2139            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
2140            * @throws SystemException if a system exception occurred
2141            */
2142            public static com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(
2143                    long activityId)
2144                    throws com.liferay.portal.kernel.exception.SystemException,
2145                            com.liferay.portlet.social.NoSuchActivityException {
2146                    return getPersistence().findByPrimaryKey(activityId);
2147            }
2148    
2149            /**
2150            * Returns the social activity with the primary key or returns <code>null</code> if it could not be found.
2151            *
2152            * @param activityId the primary key of the social activity
2153            * @return the social activity, or <code>null</code> if a social activity with the primary key could not be found
2154            * @throws SystemException if a system exception occurred
2155            */
2156            public static com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(
2157                    long activityId)
2158                    throws com.liferay.portal.kernel.exception.SystemException {
2159                    return getPersistence().fetchByPrimaryKey(activityId);
2160            }
2161    
2162            /**
2163            * Returns all the social activities.
2164            *
2165            * @return the social activities
2166            * @throws SystemException if a system exception occurred
2167            */
2168            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
2169                    throws com.liferay.portal.kernel.exception.SystemException {
2170                    return getPersistence().findAll();
2171            }
2172    
2173            /**
2174            * Returns a range of all the social activities.
2175            *
2176            * <p>
2177            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2178            * </p>
2179            *
2180            * @param start the lower bound of the range of social activities
2181            * @param end the upper bound of the range of social activities (not inclusive)
2182            * @return the range of social activities
2183            * @throws SystemException if a system exception occurred
2184            */
2185            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
2186                    int start, int end)
2187                    throws com.liferay.portal.kernel.exception.SystemException {
2188                    return getPersistence().findAll(start, end);
2189            }
2190    
2191            /**
2192            * Returns an ordered range of all the social activities.
2193            *
2194            * <p>
2195            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2196            * </p>
2197            *
2198            * @param start the lower bound of the range of social activities
2199            * @param end the upper bound of the range of social activities (not inclusive)
2200            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2201            * @return the ordered range of social activities
2202            * @throws SystemException if a system exception occurred
2203            */
2204            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
2205                    int start, int end,
2206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2207                    throws com.liferay.portal.kernel.exception.SystemException {
2208                    return getPersistence().findAll(start, end, orderByComparator);
2209            }
2210    
2211            /**
2212            * Removes all the social activities from the database.
2213            *
2214            * @throws SystemException if a system exception occurred
2215            */
2216            public static void removeAll()
2217                    throws com.liferay.portal.kernel.exception.SystemException {
2218                    getPersistence().removeAll();
2219            }
2220    
2221            /**
2222            * Returns the number of social activities.
2223            *
2224            * @return the number of social activities
2225            * @throws SystemException if a system exception occurred
2226            */
2227            public static int countAll()
2228                    throws com.liferay.portal.kernel.exception.SystemException {
2229                    return getPersistence().countAll();
2230            }
2231    
2232            public static SocialActivityPersistence getPersistence() {
2233                    if (_persistence == null) {
2234                            _persistence = (SocialActivityPersistence)PortalBeanLocatorUtil.locate(SocialActivityPersistence.class.getName());
2235    
2236                            ReferenceRegistry.registerReference(SocialActivityUtil.class,
2237                                    "_persistence");
2238                    }
2239    
2240                    return _persistence;
2241            }
2242    
2243            /**
2244             * @deprecated
2245             */
2246            public void setPersistence(SocialActivityPersistence persistence) {
2247            }
2248    
2249            private static SocialActivityPersistence _persistence;
2250    }