001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.service.persistence;
016    
017    import com.liferay.portal.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            * Caches the social activity in the entity cache if it is enabled.
042            *
043            * @param socialActivity the social activity
044            */
045            public void cacheResult(
046                    com.liferay.portlet.social.model.SocialActivity socialActivity);
047    
048            /**
049            * Caches the social activities in the entity cache if it is enabled.
050            *
051            * @param socialActivities the social activities
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities);
055    
056            /**
057            * Creates a new social activity with the primary key. Does not add the social activity to the database.
058            *
059            * @param activityId the primary key for the new social activity
060            * @return the new social activity
061            */
062            public com.liferay.portlet.social.model.SocialActivity create(
063                    long activityId);
064    
065            /**
066            * Removes the social activity with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param activityId the primary key of the social activity
069            * @return the social activity that was removed
070            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.social.model.SocialActivity remove(
074                    long activityId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.social.NoSuchActivityException;
077    
078            public com.liferay.portlet.social.model.SocialActivity updateImpl(
079                    com.liferay.portlet.social.model.SocialActivity socialActivity,
080                    boolean merge)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * Returns the social activity with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found.
085            *
086            * @param activityId the primary key of the social activity
087            * @return the social activity
088            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
089            * @throws SystemException if a system exception occurred
090            */
091            public com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(
092                    long activityId)
093                    throws com.liferay.portal.kernel.exception.SystemException,
094                            com.liferay.portlet.social.NoSuchActivityException;
095    
096            /**
097            * Returns the social activity with the primary key or returns <code>null</code> if it could not be found.
098            *
099            * @param activityId the primary key of the social activity
100            * @return the social activity, or <code>null</code> if a social activity with the primary key could not be found
101            * @throws SystemException if a system exception occurred
102            */
103            public com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(
104                    long activityId)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            /**
108            * Returns all the social activities where groupId = &#63;.
109            *
110            * @param groupId the group ID
111            * @return the matching social activities
112            * @throws SystemException if a system exception occurred
113            */
114            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
115                    long groupId)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns a range of all the social activities where groupId = &#63;.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param groupId the group ID
126            * @param start the lower bound of the range of social activities
127            * @param end the upper bound of the range of social activities (not inclusive)
128            * @return the range of matching social activities
129            * @throws SystemException if a system exception occurred
130            */
131            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
132                    long groupId, int start, int end)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            /**
136            * Returns an ordered range of all the social activities where groupId = &#63;.
137            *
138            * <p>
139            * 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.
140            * </p>
141            *
142            * @param groupId the group ID
143            * @param start the lower bound of the range of social activities
144            * @param end the upper bound of the range of social activities (not inclusive)
145            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
146            * @return the ordered range of matching social activities
147            * @throws SystemException if a system exception occurred
148            */
149            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
150                    long groupId, int start, int end,
151                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            /**
155            * Returns the first social activity in the ordered set where groupId = &#63;.
156            *
157            * <p>
158            * 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.
159            * </p>
160            *
161            * @param groupId the group ID
162            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
163            * @return the first matching social activity
164            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
165            * @throws SystemException if a system exception occurred
166            */
167            public com.liferay.portlet.social.model.SocialActivity findByGroupId_First(
168                    long groupId,
169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170                    throws com.liferay.portal.kernel.exception.SystemException,
171                            com.liferay.portlet.social.NoSuchActivityException;
172    
173            /**
174            * Returns the last social activity in the ordered set where groupId = &#63;.
175            *
176            * <p>
177            * 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.
178            * </p>
179            *
180            * @param groupId the group ID
181            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
182            * @return the last matching social activity
183            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(
187                    long groupId,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.social.NoSuchActivityException;
191    
192            /**
193            * Returns the social activities before and after the current social activity in the ordered set where groupId = &#63;.
194            *
195            * <p>
196            * 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.
197            * </p>
198            *
199            * @param activityId the primary key of the current social activity
200            * @param groupId the group ID
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the previous, current, and next social activity
203            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
204            * @throws SystemException if a system exception occurred
205            */
206            public com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(
207                    long activityId, long groupId,
208                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209                    throws com.liferay.portal.kernel.exception.SystemException,
210                            com.liferay.portlet.social.NoSuchActivityException;
211    
212            /**
213            * Returns all the social activities where companyId = &#63;.
214            *
215            * @param companyId the company ID
216            * @return the matching social activities
217            * @throws SystemException if a system exception occurred
218            */
219            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
220                    long companyId)
221                    throws com.liferay.portal.kernel.exception.SystemException;
222    
223            /**
224            * Returns a range of all the social activities where companyId = &#63;.
225            *
226            * <p>
227            * 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.
228            * </p>
229            *
230            * @param companyId the company ID
231            * @param start the lower bound of the range of social activities
232            * @param end the upper bound of the range of social activities (not inclusive)
233            * @return the range of matching social activities
234            * @throws SystemException if a system exception occurred
235            */
236            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
237                    long companyId, int start, int end)
238                    throws com.liferay.portal.kernel.exception.SystemException;
239    
240            /**
241            * Returns an ordered range of all the social activities where companyId = &#63;.
242            *
243            * <p>
244            * 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.
245            * </p>
246            *
247            * @param companyId the company ID
248            * @param start the lower bound of the range of social activities
249            * @param end the upper bound of the range of social activities (not inclusive)
250            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
251            * @return the ordered range of matching social activities
252            * @throws SystemException if a system exception occurred
253            */
254            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
255                    long companyId, int start, int end,
256                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            /**
260            * Returns the first social activity in the ordered set where companyId = &#63;.
261            *
262            * <p>
263            * 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.
264            * </p>
265            *
266            * @param companyId the company ID
267            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
268            * @return the first matching social activity
269            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
270            * @throws SystemException if a system exception occurred
271            */
272            public com.liferay.portlet.social.model.SocialActivity findByCompanyId_First(
273                    long companyId,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.kernel.exception.SystemException,
276                            com.liferay.portlet.social.NoSuchActivityException;
277    
278            /**
279            * Returns the last social activity in the ordered set where companyId = &#63;.
280            *
281            * <p>
282            * 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.
283            * </p>
284            *
285            * @param companyId the company ID
286            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
287            * @return the last matching social activity
288            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
289            * @throws SystemException if a system exception occurred
290            */
291            public com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(
292                    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            * Returns the social activities before and after the current social activity in the ordered set where companyId = &#63;.
299            *
300            * <p>
301            * 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.
302            * </p>
303            *
304            * @param activityId the primary key of the current social activity
305            * @param companyId the company ID
306            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
307            * @return the previous, current, and next social activity
308            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
309            * @throws SystemException if a system exception occurred
310            */
311            public com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(
312                    long activityId, long companyId,
313                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314                    throws com.liferay.portal.kernel.exception.SystemException,
315                            com.liferay.portlet.social.NoSuchActivityException;
316    
317            /**
318            * Returns all the social activities where userId = &#63;.
319            *
320            * @param userId the user ID
321            * @return the matching social activities
322            * @throws SystemException if a system exception occurred
323            */
324            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
325                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
326    
327            /**
328            * Returns a range of all the social activities where userId = &#63;.
329            *
330            * <p>
331            * 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.
332            * </p>
333            *
334            * @param userId the user ID
335            * @param start the lower bound of the range of social activities
336            * @param end the upper bound of the range of social activities (not inclusive)
337            * @return the range of matching social activities
338            * @throws SystemException if a system exception occurred
339            */
340            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
341                    long userId, int start, int end)
342                    throws com.liferay.portal.kernel.exception.SystemException;
343    
344            /**
345            * Returns an ordered range of all the social activities where userId = &#63;.
346            *
347            * <p>
348            * 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.
349            * </p>
350            *
351            * @param userId the user ID
352            * @param start the lower bound of the range of social activities
353            * @param end the upper bound of the range of social activities (not inclusive)
354            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
355            * @return the ordered range of matching social activities
356            * @throws SystemException if a system exception occurred
357            */
358            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
359                    long userId, int start, int end,
360                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
361                    throws com.liferay.portal.kernel.exception.SystemException;
362    
363            /**
364            * Returns the first social activity in the ordered set where userId = &#63;.
365            *
366            * <p>
367            * 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.
368            * </p>
369            *
370            * @param userId the user ID
371            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
372            * @return the first matching social activity
373            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
374            * @throws SystemException if a system exception occurred
375            */
376            public com.liferay.portlet.social.model.SocialActivity findByUserId_First(
377                    long userId,
378                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379                    throws com.liferay.portal.kernel.exception.SystemException,
380                            com.liferay.portlet.social.NoSuchActivityException;
381    
382            /**
383            * Returns the last social activity in the ordered set where userId = &#63;.
384            *
385            * <p>
386            * 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.
387            * </p>
388            *
389            * @param userId the user ID
390            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
391            * @return the last matching social activity
392            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
393            * @throws SystemException if a system exception occurred
394            */
395            public com.liferay.portlet.social.model.SocialActivity findByUserId_Last(
396                    long userId,
397                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
398                    throws com.liferay.portal.kernel.exception.SystemException,
399                            com.liferay.portlet.social.NoSuchActivityException;
400    
401            /**
402            * Returns the social activities before and after the current social activity in the ordered set where userId = &#63;.
403            *
404            * <p>
405            * 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.
406            * </p>
407            *
408            * @param activityId the primary key of the current social activity
409            * @param userId the user ID
410            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
411            * @return the previous, current, and next social activity
412            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
413            * @throws SystemException if a system exception occurred
414            */
415            public com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(
416                    long activityId, long userId,
417                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418                    throws com.liferay.portal.kernel.exception.SystemException,
419                            com.liferay.portlet.social.NoSuchActivityException;
420    
421            /**
422            * Returns the social activity where mirrorActivityId = &#63; or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found.
423            *
424            * @param mirrorActivityId the mirror activity ID
425            * @return the matching social activity
426            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
427            * @throws SystemException if a system exception occurred
428            */
429            public com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(
430                    long mirrorActivityId)
431                    throws com.liferay.portal.kernel.exception.SystemException,
432                            com.liferay.portlet.social.NoSuchActivityException;
433    
434            /**
435            * Returns the social activity where mirrorActivityId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
436            *
437            * @param mirrorActivityId the mirror activity ID
438            * @return the matching social activity, or <code>null</code> if a matching social activity could not be found
439            * @throws SystemException if a system exception occurred
440            */
441            public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
442                    long mirrorActivityId)
443                    throws com.liferay.portal.kernel.exception.SystemException;
444    
445            /**
446            * Returns the social activity where mirrorActivityId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
447            *
448            * @param mirrorActivityId the mirror activity ID
449            * @param retrieveFromCache whether to use the finder cache
450            * @return the matching social activity, or <code>null</code> if a matching social activity could not be found
451            * @throws SystemException if a system exception occurred
452            */
453            public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
454                    long mirrorActivityId, boolean retrieveFromCache)
455                    throws com.liferay.portal.kernel.exception.SystemException;
456    
457            /**
458            * Returns all the social activities where classNameId = &#63;.
459            *
460            * @param classNameId the class name ID
461            * @return the matching social activities
462            * @throws SystemException if a system exception occurred
463            */
464            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
465                    long classNameId)
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            /**
469            * Returns a range of all the social activities where classNameId = &#63;.
470            *
471            * <p>
472            * 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.
473            * </p>
474            *
475            * @param classNameId the class name ID
476            * @param start the lower bound of the range of social activities
477            * @param end the upper bound of the range of social activities (not inclusive)
478            * @return the range of matching social activities
479            * @throws SystemException if a system exception occurred
480            */
481            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
482                    long classNameId, int start, int end)
483                    throws com.liferay.portal.kernel.exception.SystemException;
484    
485            /**
486            * Returns an ordered range of all the social activities where classNameId = &#63;.
487            *
488            * <p>
489            * 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.
490            * </p>
491            *
492            * @param classNameId the class name ID
493            * @param start the lower bound of the range of social activities
494            * @param end the upper bound of the range of social activities (not inclusive)
495            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
496            * @return the ordered range of matching social activities
497            * @throws SystemException if a system exception occurred
498            */
499            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
500                    long classNameId, int start, int end,
501                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
502                    throws com.liferay.portal.kernel.exception.SystemException;
503    
504            /**
505            * Returns the first social activity in the ordered set where classNameId = &#63;.
506            *
507            * <p>
508            * 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.
509            * </p>
510            *
511            * @param classNameId the class name ID
512            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
513            * @return the first matching social activity
514            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
515            * @throws SystemException if a system exception occurred
516            */
517            public com.liferay.portlet.social.model.SocialActivity findByClassNameId_First(
518                    long classNameId,
519                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
520                    throws com.liferay.portal.kernel.exception.SystemException,
521                            com.liferay.portlet.social.NoSuchActivityException;
522    
523            /**
524            * Returns the last social activity in the ordered set where classNameId = &#63;.
525            *
526            * <p>
527            * 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.
528            * </p>
529            *
530            * @param classNameId the class name ID
531            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
532            * @return the last matching social activity
533            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
534            * @throws SystemException if a system exception occurred
535            */
536            public com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last(
537                    long classNameId,
538                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
539                    throws com.liferay.portal.kernel.exception.SystemException,
540                            com.liferay.portlet.social.NoSuchActivityException;
541    
542            /**
543            * Returns the social activities before and after the current social activity in the ordered set where classNameId = &#63;.
544            *
545            * <p>
546            * 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.
547            * </p>
548            *
549            * @param activityId the primary key of the current social activity
550            * @param classNameId the class name ID
551            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
552            * @return the previous, current, and next social activity
553            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
554            * @throws SystemException if a system exception occurred
555            */
556            public com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext(
557                    long activityId, long classNameId,
558                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
559                    throws com.liferay.portal.kernel.exception.SystemException,
560                            com.liferay.portlet.social.NoSuchActivityException;
561    
562            /**
563            * Returns all the social activities where receiverUserId = &#63;.
564            *
565            * @param receiverUserId the receiver user ID
566            * @return the matching social activities
567            * @throws SystemException if a system exception occurred
568            */
569            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
570                    long receiverUserId)
571                    throws com.liferay.portal.kernel.exception.SystemException;
572    
573            /**
574            * Returns a range of all the social activities where receiverUserId = &#63;.
575            *
576            * <p>
577            * 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.
578            * </p>
579            *
580            * @param receiverUserId the receiver user ID
581            * @param start the lower bound of the range of social activities
582            * @param end the upper bound of the range of social activities (not inclusive)
583            * @return the range of matching social activities
584            * @throws SystemException if a system exception occurred
585            */
586            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
587                    long receiverUserId, int start, int end)
588                    throws com.liferay.portal.kernel.exception.SystemException;
589    
590            /**
591            * Returns an ordered range of all the social activities where receiverUserId = &#63;.
592            *
593            * <p>
594            * 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.
595            * </p>
596            *
597            * @param receiverUserId the receiver user ID
598            * @param start the lower bound of the range of social activities
599            * @param end the upper bound of the range of social activities (not inclusive)
600            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
601            * @return the ordered range of matching social activities
602            * @throws SystemException if a system exception occurred
603            */
604            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
605                    long receiverUserId, int start, int end,
606                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
607                    throws com.liferay.portal.kernel.exception.SystemException;
608    
609            /**
610            * Returns the first social activity in the ordered set where receiverUserId = &#63;.
611            *
612            * <p>
613            * 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.
614            * </p>
615            *
616            * @param receiverUserId the receiver user ID
617            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
618            * @return the first matching social activity
619            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
620            * @throws SystemException if a system exception occurred
621            */
622            public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First(
623                    long receiverUserId,
624                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
625                    throws com.liferay.portal.kernel.exception.SystemException,
626                            com.liferay.portlet.social.NoSuchActivityException;
627    
628            /**
629            * Returns the last social activity in the ordered set where receiverUserId = &#63;.
630            *
631            * <p>
632            * 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.
633            * </p>
634            *
635            * @param receiverUserId the receiver user ID
636            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
637            * @return the last matching social activity
638            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
639            * @throws SystemException if a system exception occurred
640            */
641            public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last(
642                    long receiverUserId,
643                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
644                    throws com.liferay.portal.kernel.exception.SystemException,
645                            com.liferay.portlet.social.NoSuchActivityException;
646    
647            /**
648            * Returns the social activities before and after the current social activity in the ordered set where receiverUserId = &#63;.
649            *
650            * <p>
651            * 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.
652            * </p>
653            *
654            * @param activityId the primary key of the current social activity
655            * @param receiverUserId the receiver user ID
656            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
657            * @return the previous, current, and next social activity
658            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
659            * @throws SystemException if a system exception occurred
660            */
661            public com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext(
662                    long activityId, long receiverUserId,
663                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
664                    throws com.liferay.portal.kernel.exception.SystemException,
665                            com.liferay.portlet.social.NoSuchActivityException;
666    
667            /**
668            * Returns all the social activities where classNameId = &#63; and classPK = &#63;.
669            *
670            * @param classNameId the class name ID
671            * @param classPK the class p k
672            * @return the matching social activities
673            * @throws SystemException if a system exception occurred
674            */
675            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
676                    long classNameId, long classPK)
677                    throws com.liferay.portal.kernel.exception.SystemException;
678    
679            /**
680            * Returns a range of all the social activities where classNameId = &#63; and classPK = &#63;.
681            *
682            * <p>
683            * 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.
684            * </p>
685            *
686            * @param classNameId the class name ID
687            * @param classPK the class p k
688            * @param start the lower bound of the range of social activities
689            * @param end the upper bound of the range of social activities (not inclusive)
690            * @return the range of matching social activities
691            * @throws SystemException if a system exception occurred
692            */
693            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
694                    long classNameId, long classPK, int start, int end)
695                    throws com.liferay.portal.kernel.exception.SystemException;
696    
697            /**
698            * Returns an ordered range of all the social activities where classNameId = &#63; and classPK = &#63;.
699            *
700            * <p>
701            * 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.
702            * </p>
703            *
704            * @param classNameId the class name ID
705            * @param classPK the class p k
706            * @param start the lower bound of the range of social activities
707            * @param end the upper bound of the range of social activities (not inclusive)
708            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
709            * @return the ordered range of matching social activities
710            * @throws SystemException if a system exception occurred
711            */
712            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
713                    long classNameId, long classPK, int start, int end,
714                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
715                    throws com.liferay.portal.kernel.exception.SystemException;
716    
717            /**
718            * Returns the first social activity in the ordered set where classNameId = &#63; and classPK = &#63;.
719            *
720            * <p>
721            * 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.
722            * </p>
723            *
724            * @param classNameId the class name ID
725            * @param classPK the class p k
726            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
727            * @return the first matching social activity
728            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
729            * @throws SystemException if a system exception occurred
730            */
731            public com.liferay.portlet.social.model.SocialActivity findByC_C_First(
732                    long classNameId, long classPK,
733                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
734                    throws com.liferay.portal.kernel.exception.SystemException,
735                            com.liferay.portlet.social.NoSuchActivityException;
736    
737            /**
738            * Returns the last social activity in the ordered set where classNameId = &#63; and classPK = &#63;.
739            *
740            * <p>
741            * 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.
742            * </p>
743            *
744            * @param classNameId the class name ID
745            * @param classPK the class p k
746            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
747            * @return the last matching social activity
748            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
749            * @throws SystemException if a system exception occurred
750            */
751            public com.liferay.portlet.social.model.SocialActivity findByC_C_Last(
752                    long classNameId, long classPK,
753                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
754                    throws com.liferay.portal.kernel.exception.SystemException,
755                            com.liferay.portlet.social.NoSuchActivityException;
756    
757            /**
758            * Returns the social activities before and after the current social activity in the ordered set where classNameId = &#63; and classPK = &#63;.
759            *
760            * <p>
761            * 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.
762            * </p>
763            *
764            * @param activityId the primary key of the current social activity
765            * @param classNameId the class name ID
766            * @param classPK the class p k
767            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
768            * @return the previous, current, and next social activity
769            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
770            * @throws SystemException if a system exception occurred
771            */
772            public com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext(
773                    long activityId, long classNameId, long classPK,
774                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
775                    throws com.liferay.portal.kernel.exception.SystemException,
776                            com.liferay.portlet.social.NoSuchActivityException;
777    
778            /**
779            * Returns all the social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
780            *
781            * @param mirrorActivityId the mirror activity ID
782            * @param classNameId the class name ID
783            * @param classPK the class p k
784            * @return the matching social activities
785            * @throws SystemException if a system exception occurred
786            */
787            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
788                    long mirrorActivityId, long classNameId, long classPK)
789                    throws com.liferay.portal.kernel.exception.SystemException;
790    
791            /**
792            * Returns a range of all the social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
793            *
794            * <p>
795            * 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.
796            * </p>
797            *
798            * @param mirrorActivityId the mirror activity ID
799            * @param classNameId the class name ID
800            * @param classPK the class p k
801            * @param start the lower bound of the range of social activities
802            * @param end the upper bound of the range of social activities (not inclusive)
803            * @return the range of matching social activities
804            * @throws SystemException if a system exception occurred
805            */
806            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
807                    long mirrorActivityId, long classNameId, long classPK, int start,
808                    int end) throws com.liferay.portal.kernel.exception.SystemException;
809    
810            /**
811            * Returns an ordered range of all the social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
812            *
813            * <p>
814            * 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.
815            * </p>
816            *
817            * @param mirrorActivityId the mirror activity ID
818            * @param classNameId the class name ID
819            * @param classPK the class p k
820            * @param start the lower bound of the range of social activities
821            * @param end the upper bound of the range of social activities (not inclusive)
822            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
823            * @return the ordered range of matching social activities
824            * @throws SystemException if a system exception occurred
825            */
826            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
827                    long mirrorActivityId, long classNameId, long classPK, int start,
828                    int end,
829                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
830                    throws com.liferay.portal.kernel.exception.SystemException;
831    
832            /**
833            * Returns the first social activity in the ordered set where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
834            *
835            * <p>
836            * 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.
837            * </p>
838            *
839            * @param mirrorActivityId the mirror activity ID
840            * @param classNameId the class name ID
841            * @param classPK the class p k
842            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
843            * @return the first matching social activity
844            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
845            * @throws SystemException if a system exception occurred
846            */
847            public com.liferay.portlet.social.model.SocialActivity findByM_C_C_First(
848                    long mirrorActivityId, long classNameId, long classPK,
849                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
850                    throws com.liferay.portal.kernel.exception.SystemException,
851                            com.liferay.portlet.social.NoSuchActivityException;
852    
853            /**
854            * Returns the last social activity in the ordered set where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
855            *
856            * <p>
857            * 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.
858            * </p>
859            *
860            * @param mirrorActivityId the mirror activity ID
861            * @param classNameId the class name ID
862            * @param classPK the class p k
863            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
864            * @return the last matching social activity
865            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
866            * @throws SystemException if a system exception occurred
867            */
868            public com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last(
869                    long mirrorActivityId, long classNameId, long classPK,
870                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
871                    throws com.liferay.portal.kernel.exception.SystemException,
872                            com.liferay.portlet.social.NoSuchActivityException;
873    
874            /**
875            * Returns the social activities before and after the current social activity in the ordered set where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
876            *
877            * <p>
878            * 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.
879            * </p>
880            *
881            * @param activityId the primary key of the current social activity
882            * @param mirrorActivityId the mirror activity ID
883            * @param classNameId the class name ID
884            * @param classPK the class p k
885            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
886            * @return the previous, current, and next social activity
887            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
888            * @throws SystemException if a system exception occurred
889            */
890            public com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext(
891                    long activityId, long mirrorActivityId, long classNameId, long classPK,
892                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
893                    throws com.liferay.portal.kernel.exception.SystemException,
894                            com.liferay.portlet.social.NoSuchActivityException;
895    
896            /**
897            * Returns all the social activities where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
898            *
899            * @param groupId the group ID
900            * @param userId the user ID
901            * @param classNameId the class name ID
902            * @param classPK the class p k
903            * @param type the type
904            * @param receiverUserId the receiver user ID
905            * @return the matching social activities
906            * @throws SystemException if a system exception occurred
907            */
908            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R(
909                    long groupId, long userId, long classNameId, long classPK, int type,
910                    long receiverUserId)
911                    throws com.liferay.portal.kernel.exception.SystemException;
912    
913            /**
914            * 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;.
915            *
916            * <p>
917            * 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.
918            * </p>
919            *
920            * @param groupId the group ID
921            * @param userId the user ID
922            * @param classNameId the class name ID
923            * @param classPK the class p k
924            * @param type the type
925            * @param receiverUserId the receiver user ID
926            * @param start the lower bound of the range of social activities
927            * @param end the upper bound of the range of social activities (not inclusive)
928            * @return the range of matching social activities
929            * @throws SystemException if a system exception occurred
930            */
931            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R(
932                    long groupId, long userId, long classNameId, long classPK, int type,
933                    long receiverUserId, int start, int end)
934                    throws com.liferay.portal.kernel.exception.SystemException;
935    
936            /**
937            * 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;.
938            *
939            * <p>
940            * 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.
941            * </p>
942            *
943            * @param groupId the group ID
944            * @param userId the user ID
945            * @param classNameId the class name ID
946            * @param classPK the class p k
947            * @param type the type
948            * @param receiverUserId the receiver user ID
949            * @param start the lower bound of the range of social activities
950            * @param end the upper bound of the range of social activities (not inclusive)
951            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
952            * @return the ordered range of matching social activities
953            * @throws SystemException if a system exception occurred
954            */
955            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R(
956                    long groupId, long userId, long classNameId, long classPK, int type,
957                    long receiverUserId, int start, int end,
958                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
959                    throws com.liferay.portal.kernel.exception.SystemException;
960    
961            /**
962            * 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;.
963            *
964            * <p>
965            * 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.
966            * </p>
967            *
968            * @param groupId the group ID
969            * @param userId the user ID
970            * @param classNameId the class name ID
971            * @param classPK the class p k
972            * @param type the type
973            * @param receiverUserId the receiver user ID
974            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
975            * @return the first matching social activity
976            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
977            * @throws SystemException if a system exception occurred
978            */
979            public com.liferay.portlet.social.model.SocialActivity findByG_U_C_C_T_R_First(
980                    long groupId, long userId, long classNameId, long classPK, int type,
981                    long receiverUserId,
982                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
983                    throws com.liferay.portal.kernel.exception.SystemException,
984                            com.liferay.portlet.social.NoSuchActivityException;
985    
986            /**
987            * 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;.
988            *
989            * <p>
990            * 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.
991            * </p>
992            *
993            * @param groupId the group ID
994            * @param userId the user ID
995            * @param classNameId the class name ID
996            * @param classPK the class p k
997            * @param type the type
998            * @param receiverUserId the receiver user ID
999            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1000            * @return the last matching social activity
1001            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1002            * @throws SystemException if a system exception occurred
1003            */
1004            public com.liferay.portlet.social.model.SocialActivity findByG_U_C_C_T_R_Last(
1005                    long groupId, long userId, long classNameId, long classPK, int type,
1006                    long receiverUserId,
1007                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1008                    throws com.liferay.portal.kernel.exception.SystemException,
1009                            com.liferay.portlet.social.NoSuchActivityException;
1010    
1011            /**
1012            * 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;.
1013            *
1014            * <p>
1015            * 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.
1016            * </p>
1017            *
1018            * @param activityId the primary key of the current social activity
1019            * @param groupId the group ID
1020            * @param userId the user ID
1021            * @param classNameId the class name ID
1022            * @param classPK the class p k
1023            * @param type the type
1024            * @param receiverUserId the receiver user ID
1025            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1026            * @return the previous, current, and next social activity
1027            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
1028            * @throws SystemException if a system exception occurred
1029            */
1030            public com.liferay.portlet.social.model.SocialActivity[] findByG_U_C_C_T_R_PrevAndNext(
1031                    long activityId, long groupId, long userId, long classNameId,
1032                    long classPK, int type, long receiverUserId,
1033                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1034                    throws com.liferay.portal.kernel.exception.SystemException,
1035                            com.liferay.portlet.social.NoSuchActivityException;
1036    
1037            /**
1038            * 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.
1039            *
1040            * @param groupId the group ID
1041            * @param userId the user ID
1042            * @param createDate the create date
1043            * @param classNameId the class name ID
1044            * @param classPK the class p k
1045            * @param type the type
1046            * @param receiverUserId the receiver user ID
1047            * @return the matching social activity
1048            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
1049            * @throws SystemException if a system exception occurred
1050            */
1051            public com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(
1052                    long groupId, long userId, long createDate, long classNameId,
1053                    long classPK, int type, long receiverUserId)
1054                    throws com.liferay.portal.kernel.exception.SystemException,
1055                            com.liferay.portlet.social.NoSuchActivityException;
1056    
1057            /**
1058            * 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.
1059            *
1060            * @param groupId the group ID
1061            * @param userId the user ID
1062            * @param createDate the create date
1063            * @param classNameId the class name ID
1064            * @param classPK the class p k
1065            * @param type the type
1066            * @param receiverUserId the receiver user ID
1067            * @return the matching social activity, or <code>null</code> if a matching social activity could not be found
1068            * @throws SystemException if a system exception occurred
1069            */
1070            public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
1071                    long groupId, long userId, long createDate, long classNameId,
1072                    long classPK, int type, long receiverUserId)
1073                    throws com.liferay.portal.kernel.exception.SystemException;
1074    
1075            /**
1076            * 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.
1077            *
1078            * @param groupId the group ID
1079            * @param userId the user ID
1080            * @param createDate the create date
1081            * @param classNameId the class name ID
1082            * @param classPK the class p k
1083            * @param type the type
1084            * @param receiverUserId the receiver user ID
1085            * @param retrieveFromCache whether to use the finder cache
1086            * @return the matching social activity, or <code>null</code> if a matching social activity could not be found
1087            * @throws SystemException if a system exception occurred
1088            */
1089            public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
1090                    long groupId, long userId, long createDate, long classNameId,
1091                    long classPK, int type, long receiverUserId, boolean retrieveFromCache)
1092                    throws com.liferay.portal.kernel.exception.SystemException;
1093    
1094            /**
1095            * Returns all the social activities.
1096            *
1097            * @return the social activities
1098            * @throws SystemException if a system exception occurred
1099            */
1100            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
1101                    throws com.liferay.portal.kernel.exception.SystemException;
1102    
1103            /**
1104            * Returns a range of all the social activities.
1105            *
1106            * <p>
1107            * 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.
1108            * </p>
1109            *
1110            * @param start the lower bound of the range of social activities
1111            * @param end the upper bound of the range of social activities (not inclusive)
1112            * @return the range of social activities
1113            * @throws SystemException if a system exception occurred
1114            */
1115            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
1116                    int start, int end)
1117                    throws com.liferay.portal.kernel.exception.SystemException;
1118    
1119            /**
1120            * Returns an ordered range of all the social activities.
1121            *
1122            * <p>
1123            * 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.
1124            * </p>
1125            *
1126            * @param start the lower bound of the range of social activities
1127            * @param end the upper bound of the range of social activities (not inclusive)
1128            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1129            * @return the ordered range of social activities
1130            * @throws SystemException if a system exception occurred
1131            */
1132            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
1133                    int start, int end,
1134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1135                    throws com.liferay.portal.kernel.exception.SystemException;
1136    
1137            /**
1138            * Removes all the social activities where groupId = &#63; from the database.
1139            *
1140            * @param groupId the group ID
1141            * @throws SystemException if a system exception occurred
1142            */
1143            public void removeByGroupId(long groupId)
1144                    throws com.liferay.portal.kernel.exception.SystemException;
1145    
1146            /**
1147            * Removes all the social activities where companyId = &#63; from the database.
1148            *
1149            * @param companyId the company ID
1150            * @throws SystemException if a system exception occurred
1151            */
1152            public void removeByCompanyId(long companyId)
1153                    throws com.liferay.portal.kernel.exception.SystemException;
1154    
1155            /**
1156            * Removes all the social activities where userId = &#63; from the database.
1157            *
1158            * @param userId the user ID
1159            * @throws SystemException if a system exception occurred
1160            */
1161            public void removeByUserId(long userId)
1162                    throws com.liferay.portal.kernel.exception.SystemException;
1163    
1164            /**
1165            * Removes the social activity where mirrorActivityId = &#63; from the database.
1166            *
1167            * @param mirrorActivityId the mirror activity ID
1168            * @throws SystemException if a system exception occurred
1169            */
1170            public void removeByMirrorActivityId(long mirrorActivityId)
1171                    throws com.liferay.portal.kernel.exception.SystemException,
1172                            com.liferay.portlet.social.NoSuchActivityException;
1173    
1174            /**
1175            * Removes all the social activities where classNameId = &#63; from the database.
1176            *
1177            * @param classNameId the class name ID
1178            * @throws SystemException if a system exception occurred
1179            */
1180            public void removeByClassNameId(long classNameId)
1181                    throws com.liferay.portal.kernel.exception.SystemException;
1182    
1183            /**
1184            * Removes all the social activities where receiverUserId = &#63; from the database.
1185            *
1186            * @param receiverUserId the receiver user ID
1187            * @throws SystemException if a system exception occurred
1188            */
1189            public void removeByReceiverUserId(long receiverUserId)
1190                    throws com.liferay.portal.kernel.exception.SystemException;
1191    
1192            /**
1193            * Removes all the social activities where classNameId = &#63; and classPK = &#63; from the database.
1194            *
1195            * @param classNameId the class name ID
1196            * @param classPK the class p k
1197            * @throws SystemException if a system exception occurred
1198            */
1199            public void removeByC_C(long classNameId, long classPK)
1200                    throws com.liferay.portal.kernel.exception.SystemException;
1201    
1202            /**
1203            * Removes all the social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
1204            *
1205            * @param mirrorActivityId the mirror activity ID
1206            * @param classNameId the class name ID
1207            * @param classPK the class p k
1208            * @throws SystemException if a system exception occurred
1209            */
1210            public void removeByM_C_C(long mirrorActivityId, long classNameId,
1211                    long classPK)
1212                    throws com.liferay.portal.kernel.exception.SystemException;
1213    
1214            /**
1215            * 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.
1216            *
1217            * @param groupId the group ID
1218            * @param userId the user ID
1219            * @param classNameId the class name ID
1220            * @param classPK the class p k
1221            * @param type the type
1222            * @param receiverUserId the receiver user ID
1223            * @throws SystemException if a system exception occurred
1224            */
1225            public void removeByG_U_C_C_T_R(long groupId, long userId,
1226                    long classNameId, long classPK, int type, long receiverUserId)
1227                    throws com.liferay.portal.kernel.exception.SystemException;
1228    
1229            /**
1230            * 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.
1231            *
1232            * @param groupId the group ID
1233            * @param userId the user ID
1234            * @param createDate the create date
1235            * @param classNameId the class name ID
1236            * @param classPK the class p k
1237            * @param type the type
1238            * @param receiverUserId the receiver user ID
1239            * @throws SystemException if a system exception occurred
1240            */
1241            public void removeByG_U_CD_C_C_T_R(long groupId, long userId,
1242                    long createDate, long classNameId, long classPK, int type,
1243                    long receiverUserId)
1244                    throws com.liferay.portal.kernel.exception.SystemException,
1245                            com.liferay.portlet.social.NoSuchActivityException;
1246    
1247            /**
1248            * Removes all the social activities from the database.
1249            *
1250            * @throws SystemException if a system exception occurred
1251            */
1252            public void removeAll()
1253                    throws com.liferay.portal.kernel.exception.SystemException;
1254    
1255            /**
1256            * Returns the number of social activities where groupId = &#63;.
1257            *
1258            * @param groupId the group ID
1259            * @return the number of matching social activities
1260            * @throws SystemException if a system exception occurred
1261            */
1262            public int countByGroupId(long groupId)
1263                    throws com.liferay.portal.kernel.exception.SystemException;
1264    
1265            /**
1266            * Returns the number of social activities where companyId = &#63;.
1267            *
1268            * @param companyId the company ID
1269            * @return the number of matching social activities
1270            * @throws SystemException if a system exception occurred
1271            */
1272            public int countByCompanyId(long companyId)
1273                    throws com.liferay.portal.kernel.exception.SystemException;
1274    
1275            /**
1276            * Returns the number of social activities where userId = &#63;.
1277            *
1278            * @param userId the user ID
1279            * @return the number of matching social activities
1280            * @throws SystemException if a system exception occurred
1281            */
1282            public int countByUserId(long userId)
1283                    throws com.liferay.portal.kernel.exception.SystemException;
1284    
1285            /**
1286            * Returns the number of social activities where mirrorActivityId = &#63;.
1287            *
1288            * @param mirrorActivityId the mirror activity ID
1289            * @return the number of matching social activities
1290            * @throws SystemException if a system exception occurred
1291            */
1292            public int countByMirrorActivityId(long mirrorActivityId)
1293                    throws com.liferay.portal.kernel.exception.SystemException;
1294    
1295            /**
1296            * Returns the number of social activities where classNameId = &#63;.
1297            *
1298            * @param classNameId the class name ID
1299            * @return the number of matching social activities
1300            * @throws SystemException if a system exception occurred
1301            */
1302            public int countByClassNameId(long classNameId)
1303                    throws com.liferay.portal.kernel.exception.SystemException;
1304    
1305            /**
1306            * Returns the number of social activities where receiverUserId = &#63;.
1307            *
1308            * @param receiverUserId the receiver user ID
1309            * @return the number of matching social activities
1310            * @throws SystemException if a system exception occurred
1311            */
1312            public int countByReceiverUserId(long receiverUserId)
1313                    throws com.liferay.portal.kernel.exception.SystemException;
1314    
1315            /**
1316            * Returns the number of social activities where classNameId = &#63; and classPK = &#63;.
1317            *
1318            * @param classNameId the class name ID
1319            * @param classPK the class p k
1320            * @return the number of matching social activities
1321            * @throws SystemException if a system exception occurred
1322            */
1323            public int countByC_C(long classNameId, long classPK)
1324                    throws com.liferay.portal.kernel.exception.SystemException;
1325    
1326            /**
1327            * Returns the number of social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1328            *
1329            * @param mirrorActivityId the mirror activity ID
1330            * @param classNameId the class name ID
1331            * @param classPK the class p k
1332            * @return the number of matching social activities
1333            * @throws SystemException if a system exception occurred
1334            */
1335            public int countByM_C_C(long mirrorActivityId, long classNameId,
1336                    long classPK)
1337                    throws com.liferay.portal.kernel.exception.SystemException;
1338    
1339            /**
1340            * Returns the number of social activities where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1341            *
1342            * @param groupId the group ID
1343            * @param userId the user ID
1344            * @param classNameId the class name ID
1345            * @param classPK the class p k
1346            * @param type the type
1347            * @param receiverUserId the receiver user ID
1348            * @return the number of matching social activities
1349            * @throws SystemException if a system exception occurred
1350            */
1351            public int countByG_U_C_C_T_R(long groupId, long userId, long classNameId,
1352                    long classPK, int type, long receiverUserId)
1353                    throws com.liferay.portal.kernel.exception.SystemException;
1354    
1355            /**
1356            * 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;.
1357            *
1358            * @param groupId the group ID
1359            * @param userId the user ID
1360            * @param createDate the create date
1361            * @param classNameId the class name ID
1362            * @param classPK the class p k
1363            * @param type the type
1364            * @param receiverUserId the receiver user ID
1365            * @return the number of matching social activities
1366            * @throws SystemException if a system exception occurred
1367            */
1368            public int countByG_U_CD_C_C_T_R(long groupId, long userId,
1369                    long createDate, long classNameId, long classPK, int type,
1370                    long receiverUserId)
1371                    throws com.liferay.portal.kernel.exception.SystemException;
1372    
1373            /**
1374            * Returns the number of social activities.
1375            *
1376            * @return the number of social activities
1377            * @throws SystemException if a system exception occurred
1378            */
1379            public int countAll()
1380                    throws com.liferay.portal.kernel.exception.SystemException;
1381    }