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