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