001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.social.service.persistence;
016    
017    import com.liferay.portal.kernel.exception.SystemException;
018    import com.liferay.portal.service.persistence.BasePersistence;
019    
020    import com.liferay.portlet.social.model.SocialActivity;
021    
022    /**
023     * The persistence interface for the social activity service.
024     *
025     * <p>
026     * Caching information and settings can be found in <code>portal.properties</code>
027     * </p>
028     *
029     * @author Brian Wing Shun Chan
030     * @see SocialActivityPersistenceImpl
031     * @see SocialActivityUtil
032     * @generated
033     */
034    public interface SocialActivityPersistence extends BasePersistence<SocialActivity> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
039             */
040    
041            /**
042            * Caches the social activity in the entity cache if it is enabled.
043            *
044            * @param socialActivity the social activity to cache
045            */
046            public void cacheResult(
047                    com.liferay.portlet.social.model.SocialActivity socialActivity);
048    
049            /**
050            * Caches the social activities in the entity cache if it is enabled.
051            *
052            * @param socialActivities the social activities to cache
053            */
054            public void cacheResult(
055                    java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities);
056    
057            /**
058            * Creates a new social activity with the primary key. Does not add the social activity to the database.
059            *
060            * @param activityId the primary key for the new social activity
061            * @return the new social activity
062            */
063            public com.liferay.portlet.social.model.SocialActivity create(
064                    long activityId);
065    
066            /**
067            * Removes the social activity with the primary key from the database. Also notifies the appropriate model listeners.
068            *
069            * @param activityId the primary key of the social activity to remove
070            * @return the social activity that was removed
071            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
072            * @throws SystemException if a system exception occurred
073            */
074            public com.liferay.portlet.social.model.SocialActivity remove(
075                    long activityId)
076                    throws com.liferay.portal.kernel.exception.SystemException,
077                            com.liferay.portlet.social.NoSuchActivityException;
078    
079            public com.liferay.portlet.social.model.SocialActivity updateImpl(
080                    com.liferay.portlet.social.model.SocialActivity socialActivity,
081                    boolean merge)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    
084            /**
085            * Finds the social activity with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found.
086            *
087            * @param activityId the primary key of the social activity to find
088            * @return the social activity
089            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
090            * @throws SystemException if a system exception occurred
091            */
092            public com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(
093                    long activityId)
094                    throws com.liferay.portal.kernel.exception.SystemException,
095                            com.liferay.portlet.social.NoSuchActivityException;
096    
097            /**
098            * Finds the social activity with the primary key or returns <code>null</code> if it could not be found.
099            *
100            * @param activityId the primary key of the social activity to find
101            * @return the social activity, or <code>null</code> if a social activity with the primary key could not be found
102            * @throws SystemException if a system exception occurred
103            */
104            public com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(
105                    long activityId)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            /**
109            * Finds all the social activities where groupId = &#63;.
110            *
111            * @param groupId the group ID to search with
112            * @return the matching social activities
113            * @throws SystemException if a system exception occurred
114            */
115            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
116                    long groupId)
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            /**
120            * Finds a range of all the social activities where groupId = &#63;.
121            *
122            * <p>
123            * 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.
124            * </p>
125            *
126            * @param groupId the group ID to search with
127            * @param start the lower bound of the range of social activities to return
128            * @param end the upper bound of the range of social activities to return (not inclusive)
129            * @return the range of matching social activities
130            * @throws SystemException if a system exception occurred
131            */
132            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
133                    long groupId, int start, int end)
134                    throws com.liferay.portal.kernel.exception.SystemException;
135    
136            /**
137            * Finds an ordered range of all the social activities where groupId = &#63;.
138            *
139            * <p>
140            * 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.
141            * </p>
142            *
143            * @param groupId the group ID to search with
144            * @param start the lower bound of the range of social activities to return
145            * @param end the upper bound of the range of social activities to return (not inclusive)
146            * @param orderByComparator the comparator to order the results by
147            * @return the ordered range of matching social activities
148            * @throws SystemException if a system exception occurred
149            */
150            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
151                    long groupId, int start, int end,
152                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153                    throws com.liferay.portal.kernel.exception.SystemException;
154    
155            /**
156            * Finds the first social activity in the ordered set where groupId = &#63;.
157            *
158            * <p>
159            * 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.
160            * </p>
161            *
162            * @param groupId the group ID to search with
163            * @param orderByComparator the comparator to order the set by
164            * @return the first matching social activity
165            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
166            * @throws SystemException if a system exception occurred
167            */
168            public com.liferay.portlet.social.model.SocialActivity findByGroupId_First(
169                    long groupId,
170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171                    throws com.liferay.portal.kernel.exception.SystemException,
172                            com.liferay.portlet.social.NoSuchActivityException;
173    
174            /**
175            * Finds the last social activity in the ordered set where groupId = &#63;.
176            *
177            * <p>
178            * 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.
179            * </p>
180            *
181            * @param groupId the group ID to search with
182            * @param orderByComparator the comparator to order the set by
183            * @return the last matching social activity
184            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(
188                    long groupId,
189                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190                    throws com.liferay.portal.kernel.exception.SystemException,
191                            com.liferay.portlet.social.NoSuchActivityException;
192    
193            /**
194            * Finds the social activities before and after the current social activity in the ordered set where groupId = &#63;.
195            *
196            * <p>
197            * 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.
198            * </p>
199            *
200            * @param activityId the primary key of the current social activity
201            * @param groupId the group ID to search with
202            * @param orderByComparator the comparator to order the set by
203            * @return the previous, current, and next social activity
204            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
205            * @throws SystemException if a system exception occurred
206            */
207            public com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(
208                    long activityId, long groupId,
209                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210                    throws com.liferay.portal.kernel.exception.SystemException,
211                            com.liferay.portlet.social.NoSuchActivityException;
212    
213            /**
214            * Finds all the social activities where companyId = &#63;.
215            *
216            * @param companyId the company ID to search with
217            * @return the matching social activities
218            * @throws SystemException if a system exception occurred
219            */
220            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
221                    long companyId)
222                    throws com.liferay.portal.kernel.exception.SystemException;
223    
224            /**
225            * Finds a range of all the social activities where companyId = &#63;.
226            *
227            * <p>
228            * 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.
229            * </p>
230            *
231            * @param companyId the company ID to search with
232            * @param start the lower bound of the range of social activities to return
233            * @param end the upper bound of the range of social activities to return (not inclusive)
234            * @return the range of matching social activities
235            * @throws SystemException if a system exception occurred
236            */
237            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
238                    long companyId, int start, int end)
239                    throws com.liferay.portal.kernel.exception.SystemException;
240    
241            /**
242            * Finds an ordered range of all the social activities where companyId = &#63;.
243            *
244            * <p>
245            * 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.
246            * </p>
247            *
248            * @param companyId the company ID to search with
249            * @param start the lower bound of the range of social activities to return
250            * @param end the upper bound of the range of social activities to return (not inclusive)
251            * @param orderByComparator the comparator to order the results by
252            * @return the ordered range of matching social activities
253            * @throws SystemException if a system exception occurred
254            */
255            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
256                    long companyId, int start, int end,
257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258                    throws com.liferay.portal.kernel.exception.SystemException;
259    
260            /**
261            * Finds the first social activity in the ordered set where companyId = &#63;.
262            *
263            * <p>
264            * 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.
265            * </p>
266            *
267            * @param companyId the company ID to search with
268            * @param orderByComparator the comparator to order the set by
269            * @return the first matching social activity
270            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
271            * @throws SystemException if a system exception occurred
272            */
273            public com.liferay.portlet.social.model.SocialActivity findByCompanyId_First(
274                    long companyId,
275                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
276                    throws com.liferay.portal.kernel.exception.SystemException,
277                            com.liferay.portlet.social.NoSuchActivityException;
278    
279            /**
280            * Finds the last social activity in the ordered set where companyId = &#63;.
281            *
282            * <p>
283            * 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.
284            * </p>
285            *
286            * @param companyId the company ID to search with
287            * @param orderByComparator the comparator to order the set by
288            * @return the last matching social activity
289            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
290            * @throws SystemException if a system exception occurred
291            */
292            public com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(
293                    long companyId,
294                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295                    throws com.liferay.portal.kernel.exception.SystemException,
296                            com.liferay.portlet.social.NoSuchActivityException;
297    
298            /**
299            * Finds the social activities before and after the current social activity in the ordered set where companyId = &#63;.
300            *
301            * <p>
302            * 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.
303            * </p>
304            *
305            * @param activityId the primary key of the current social activity
306            * @param companyId the company ID to search with
307            * @param orderByComparator the comparator to order the set by
308            * @return the previous, current, and next social activity
309            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
310            * @throws SystemException if a system exception occurred
311            */
312            public com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(
313                    long activityId, long companyId,
314                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
315                    throws com.liferay.portal.kernel.exception.SystemException,
316                            com.liferay.portlet.social.NoSuchActivityException;
317    
318            /**
319            * Finds all the social activities where userId = &#63;.
320            *
321            * @param userId the user ID to search with
322            * @return the matching social activities
323            * @throws SystemException if a system exception occurred
324            */
325            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
326                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
327    
328            /**
329            * Finds a range of all the social activities where userId = &#63;.
330            *
331            * <p>
332            * 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.
333            * </p>
334            *
335            * @param userId the user ID to search with
336            * @param start the lower bound of the range of social activities to return
337            * @param end the upper bound of the range of social activities to return (not inclusive)
338            * @return the range of matching social activities
339            * @throws SystemException if a system exception occurred
340            */
341            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
342                    long userId, int start, int end)
343                    throws com.liferay.portal.kernel.exception.SystemException;
344    
345            /**
346            * Finds an ordered range of all the social activities where userId = &#63;.
347            *
348            * <p>
349            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
350            * </p>
351            *
352            * @param userId the user ID to search with
353            * @param start the lower bound of the range of social activities to return
354            * @param end the upper bound of the range of social activities to return (not inclusive)
355            * @param orderByComparator the comparator to order the results by
356            * @return the ordered range of matching social activities
357            * @throws SystemException if a system exception occurred
358            */
359            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
360                    long userId, int start, int end,
361                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * Finds the first social activity in the ordered set where userId = &#63;.
366            *
367            * <p>
368            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
369            * </p>
370            *
371            * @param userId the user ID to search with
372            * @param orderByComparator the comparator to order the set by
373            * @return the first matching social activity
374            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
375            * @throws SystemException if a system exception occurred
376            */
377            public com.liferay.portlet.social.model.SocialActivity findByUserId_First(
378                    long userId,
379                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
380                    throws com.liferay.portal.kernel.exception.SystemException,
381                            com.liferay.portlet.social.NoSuchActivityException;
382    
383            /**
384            * Finds the last social activity in the ordered set where userId = &#63;.
385            *
386            * <p>
387            * 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.
388            * </p>
389            *
390            * @param userId the user ID to search with
391            * @param orderByComparator the comparator to order the set by
392            * @return the last matching social activity
393            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
394            * @throws SystemException if a system exception occurred
395            */
396            public com.liferay.portlet.social.model.SocialActivity findByUserId_Last(
397                    long userId,
398                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
399                    throws com.liferay.portal.kernel.exception.SystemException,
400                            com.liferay.portlet.social.NoSuchActivityException;
401    
402            /**
403            * Finds the social activities before and after the current social activity in the ordered set where userId = &#63;.
404            *
405            * <p>
406            * 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.
407            * </p>
408            *
409            * @param activityId the primary key of the current social activity
410            * @param userId the user ID to search with
411            * @param orderByComparator the comparator to order the set by
412            * @return the previous, current, and next social activity
413            * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found
414            * @throws SystemException if a system exception occurred
415            */
416            public com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(
417                    long activityId, long userId,
418                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
419                    throws com.liferay.portal.kernel.exception.SystemException,
420                            com.liferay.portlet.social.NoSuchActivityException;
421    
422            /**
423            * Finds the social activity where mirrorActivityId = &#63; or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found.
424            *
425            * @param mirrorActivityId the mirror activity ID to search with
426            * @return the matching social activity
427            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
428            * @throws SystemException if a system exception occurred
429            */
430            public com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(
431                    long mirrorActivityId)
432                    throws com.liferay.portal.kernel.exception.SystemException,
433                            com.liferay.portlet.social.NoSuchActivityException;
434    
435            /**
436            * Finds the social activity where mirrorActivityId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
437            *
438            * @param mirrorActivityId the mirror activity ID to search with
439            * @return the matching social activity, or <code>null</code> if a matching social activity could not be found
440            * @throws SystemException if a system exception occurred
441            */
442            public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
443                    long mirrorActivityId)
444                    throws com.liferay.portal.kernel.exception.SystemException;
445    
446            /**
447            * Finds the social activity where mirrorActivityId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
448            *
449            * @param mirrorActivityId the mirror activity ID to search with
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            * Finds all the social activities where classNameId = &#63;.
459            *
460            * @param classNameId the class name ID to search with
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            * Finds 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 to search with
476            * @param start the lower bound of the range of social activities to return
477            * @param end the upper bound of the range of social activities to return (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            * Finds 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 to search with
493            * @param start the lower bound of the range of social activities to return
494            * @param end the upper bound of the range of social activities to return (not inclusive)
495            * @param orderByComparator the comparator to order the results by
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            * Finds 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 to search with
512            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
531            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
551            * @param orderByComparator the comparator to order the set by
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            * Finds all the social activities where receiverUserId = &#63;.
564            *
565            * @param receiverUserId the receiver user ID to search with
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            * Finds 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 to search with
581            * @param start the lower bound of the range of social activities to return
582            * @param end the upper bound of the range of social activities to return (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            * Finds 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 to search with
598            * @param start the lower bound of the range of social activities to return
599            * @param end the upper bound of the range of social activities to return (not inclusive)
600            * @param orderByComparator the comparator to order the results by
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            * Finds 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 to search with
617            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
636            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
656            * @param orderByComparator the comparator to order the set by
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            * Finds all the social activities where classNameId = &#63; and classPK = &#63;.
669            *
670            * @param classNameId the class name ID to search with
671            * @param classPK the class p k to search with
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            * Finds 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 to search with
687            * @param classPK the class p k to search with
688            * @param start the lower bound of the range of social activities to return
689            * @param end the upper bound of the range of social activities to return (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            * Finds 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 to search with
705            * @param classPK the class p k to search with
706            * @param start the lower bound of the range of social activities to return
707            * @param end the upper bound of the range of social activities to return (not inclusive)
708            * @param orderByComparator the comparator to order the results by
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            * Finds 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 to search with
725            * @param classPK the class p k to search with
726            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
745            * @param classPK the class p k to search with
746            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
766            * @param classPK the class p k to search with
767            * @param orderByComparator the comparator to order the set by
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            * Finds all the social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
780            *
781            * @param mirrorActivityId the mirror activity ID to search with
782            * @param classNameId the class name ID to search with
783            * @param classPK the class p k to search with
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            * Finds 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 to search with
799            * @param classNameId the class name ID to search with
800            * @param classPK the class p k to search with
801            * @param start the lower bound of the range of social activities to return
802            * @param end the upper bound of the range of social activities to return (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            * Finds 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 to search with
818            * @param classNameId the class name ID to search with
819            * @param classPK the class p k to search with
820            * @param start the lower bound of the range of social activities to return
821            * @param end the upper bound of the range of social activities to return (not inclusive)
822            * @param orderByComparator the comparator to order the results by
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            * Finds 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 to search with
840            * @param classNameId the class name ID to search with
841            * @param classPK the class p k to search with
842            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
861            * @param classNameId the class name ID to search with
862            * @param classPK the class p k to search with
863            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
883            * @param classNameId the class name ID to search with
884            * @param classPK the class p k to search with
885            * @param orderByComparator the comparator to order the set by
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            * Finds 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.
898            *
899            * @param groupId the group ID to search with
900            * @param userId the user ID to search with
901            * @param createDate the create date to search with
902            * @param classNameId the class name ID to search with
903            * @param classPK the class p k to search with
904            * @param type the type to search with
905            * @param receiverUserId the receiver user ID to search with
906            * @return the matching social activity
907            * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found
908            * @throws SystemException if a system exception occurred
909            */
910            public com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(
911                    long groupId, long userId, long createDate, long classNameId,
912                    long classPK, int type, long receiverUserId)
913                    throws com.liferay.portal.kernel.exception.SystemException,
914                            com.liferay.portlet.social.NoSuchActivityException;
915    
916            /**
917            * Finds 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.
918            *
919            * @param groupId the group ID to search with
920            * @param userId the user ID to search with
921            * @param createDate the create date to search with
922            * @param classNameId the class name ID to search with
923            * @param classPK the class p k to search with
924            * @param type the type to search with
925            * @param receiverUserId the receiver user ID to search with
926            * @return the matching social activity, or <code>null</code> if a matching social activity could not be found
927            * @throws SystemException if a system exception occurred
928            */
929            public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
930                    long groupId, long userId, long createDate, long classNameId,
931                    long classPK, int type, long receiverUserId)
932                    throws com.liferay.portal.kernel.exception.SystemException;
933    
934            /**
935            * Finds 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.
936            *
937            * @param groupId the group ID to search with
938            * @param userId the user ID to search with
939            * @param createDate the create date to search with
940            * @param classNameId the class name ID to search with
941            * @param classPK the class p k to search with
942            * @param type the type to search with
943            * @param receiverUserId the receiver user ID to search with
944            * @return the matching social activity, or <code>null</code> if a matching social activity could not be found
945            * @throws SystemException if a system exception occurred
946            */
947            public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
948                    long groupId, long userId, long createDate, long classNameId,
949                    long classPK, int type, long receiverUserId, boolean retrieveFromCache)
950                    throws com.liferay.portal.kernel.exception.SystemException;
951    
952            /**
953            * Finds all the social activities.
954            *
955            * @return the social activities
956            * @throws SystemException if a system exception occurred
957            */
958            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
959                    throws com.liferay.portal.kernel.exception.SystemException;
960    
961            /**
962            * Finds a range of all the social activities.
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 start the lower bound of the range of social activities to return
969            * @param end the upper bound of the range of social activities to return (not inclusive)
970            * @return the range of social activities
971            * @throws SystemException if a system exception occurred
972            */
973            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
974                    int start, int end)
975                    throws com.liferay.portal.kernel.exception.SystemException;
976    
977            /**
978            * Finds an ordered range of all the social activities.
979            *
980            * <p>
981            * 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.
982            * </p>
983            *
984            * @param start the lower bound of the range of social activities to return
985            * @param end the upper bound of the range of social activities to return (not inclusive)
986            * @param orderByComparator the comparator to order the results by
987            * @return the ordered range of social activities
988            * @throws SystemException if a system exception occurred
989            */
990            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
991                    int start, int end,
992                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
993                    throws com.liferay.portal.kernel.exception.SystemException;
994    
995            /**
996            * Removes all the social activities where groupId = &#63; from the database.
997            *
998            * @param groupId the group ID to search with
999            * @throws SystemException if a system exception occurred
1000            */
1001            public void removeByGroupId(long groupId)
1002                    throws com.liferay.portal.kernel.exception.SystemException;
1003    
1004            /**
1005            * Removes all the social activities where companyId = &#63; from the database.
1006            *
1007            * @param companyId the company ID to search with
1008            * @throws SystemException if a system exception occurred
1009            */
1010            public void removeByCompanyId(long companyId)
1011                    throws com.liferay.portal.kernel.exception.SystemException;
1012    
1013            /**
1014            * Removes all the social activities where userId = &#63; from the database.
1015            *
1016            * @param userId the user ID to search with
1017            * @throws SystemException if a system exception occurred
1018            */
1019            public void removeByUserId(long userId)
1020                    throws com.liferay.portal.kernel.exception.SystemException;
1021    
1022            /**
1023            * Removes the social activity where mirrorActivityId = &#63; from the database.
1024            *
1025            * @param mirrorActivityId the mirror activity ID to search with
1026            * @throws SystemException if a system exception occurred
1027            */
1028            public void removeByMirrorActivityId(long mirrorActivityId)
1029                    throws com.liferay.portal.kernel.exception.SystemException,
1030                            com.liferay.portlet.social.NoSuchActivityException;
1031    
1032            /**
1033            * Removes all the social activities where classNameId = &#63; from the database.
1034            *
1035            * @param classNameId the class name ID to search with
1036            * @throws SystemException if a system exception occurred
1037            */
1038            public void removeByClassNameId(long classNameId)
1039                    throws com.liferay.portal.kernel.exception.SystemException;
1040    
1041            /**
1042            * Removes all the social activities where receiverUserId = &#63; from the database.
1043            *
1044            * @param receiverUserId the receiver user ID to search with
1045            * @throws SystemException if a system exception occurred
1046            */
1047            public void removeByReceiverUserId(long receiverUserId)
1048                    throws com.liferay.portal.kernel.exception.SystemException;
1049    
1050            /**
1051            * Removes all the social activities where classNameId = &#63; and classPK = &#63; from the database.
1052            *
1053            * @param classNameId the class name ID to search with
1054            * @param classPK the class p k to search with
1055            * @throws SystemException if a system exception occurred
1056            */
1057            public void removeByC_C(long classNameId, long classPK)
1058                    throws com.liferay.portal.kernel.exception.SystemException;
1059    
1060            /**
1061            * Removes all the social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
1062            *
1063            * @param mirrorActivityId the mirror activity ID to search with
1064            * @param classNameId the class name ID to search with
1065            * @param classPK the class p k to search with
1066            * @throws SystemException if a system exception occurred
1067            */
1068            public void removeByM_C_C(long mirrorActivityId, long classNameId,
1069                    long classPK)
1070                    throws com.liferay.portal.kernel.exception.SystemException;
1071    
1072            /**
1073            * 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.
1074            *
1075            * @param groupId the group ID to search with
1076            * @param userId the user ID to search with
1077            * @param createDate the create date to search with
1078            * @param classNameId the class name ID to search with
1079            * @param classPK the class p k to search with
1080            * @param type the type to search with
1081            * @param receiverUserId the receiver user ID to search with
1082            * @throws SystemException if a system exception occurred
1083            */
1084            public void removeByG_U_CD_C_C_T_R(long groupId, long userId,
1085                    long createDate, long classNameId, long classPK, int type,
1086                    long receiverUserId)
1087                    throws com.liferay.portal.kernel.exception.SystemException,
1088                            com.liferay.portlet.social.NoSuchActivityException;
1089    
1090            /**
1091            * Removes all the social activities from the database.
1092            *
1093            * @throws SystemException if a system exception occurred
1094            */
1095            public void removeAll()
1096                    throws com.liferay.portal.kernel.exception.SystemException;
1097    
1098            /**
1099            * Counts all the social activities where groupId = &#63;.
1100            *
1101            * @param groupId the group ID to search with
1102            * @return the number of matching social activities
1103            * @throws SystemException if a system exception occurred
1104            */
1105            public int countByGroupId(long groupId)
1106                    throws com.liferay.portal.kernel.exception.SystemException;
1107    
1108            /**
1109            * Counts all the social activities where companyId = &#63;.
1110            *
1111            * @param companyId the company ID to search with
1112            * @return the number of matching social activities
1113            * @throws SystemException if a system exception occurred
1114            */
1115            public int countByCompanyId(long companyId)
1116                    throws com.liferay.portal.kernel.exception.SystemException;
1117    
1118            /**
1119            * Counts all the social activities where userId = &#63;.
1120            *
1121            * @param userId the user ID to search with
1122            * @return the number of matching social activities
1123            * @throws SystemException if a system exception occurred
1124            */
1125            public int countByUserId(long userId)
1126                    throws com.liferay.portal.kernel.exception.SystemException;
1127    
1128            /**
1129            * Counts all the social activities where mirrorActivityId = &#63;.
1130            *
1131            * @param mirrorActivityId the mirror activity ID to search with
1132            * @return the number of matching social activities
1133            * @throws SystemException if a system exception occurred
1134            */
1135            public int countByMirrorActivityId(long mirrorActivityId)
1136                    throws com.liferay.portal.kernel.exception.SystemException;
1137    
1138            /**
1139            * Counts all the social activities where classNameId = &#63;.
1140            *
1141            * @param classNameId the class name ID to search with
1142            * @return the number of matching social activities
1143            * @throws SystemException if a system exception occurred
1144            */
1145            public int countByClassNameId(long classNameId)
1146                    throws com.liferay.portal.kernel.exception.SystemException;
1147    
1148            /**
1149            * Counts all the social activities where receiverUserId = &#63;.
1150            *
1151            * @param receiverUserId the receiver user ID to search with
1152            * @return the number of matching social activities
1153            * @throws SystemException if a system exception occurred
1154            */
1155            public int countByReceiverUserId(long receiverUserId)
1156                    throws com.liferay.portal.kernel.exception.SystemException;
1157    
1158            /**
1159            * Counts all the social activities where classNameId = &#63; and classPK = &#63;.
1160            *
1161            * @param classNameId the class name ID to search with
1162            * @param classPK the class p k to search with
1163            * @return the number of matching social activities
1164            * @throws SystemException if a system exception occurred
1165            */
1166            public int countByC_C(long classNameId, long classPK)
1167                    throws com.liferay.portal.kernel.exception.SystemException;
1168    
1169            /**
1170            * Counts all the social activities where mirrorActivityId = &#63; and classNameId = &#63; and classPK = &#63;.
1171            *
1172            * @param mirrorActivityId the mirror activity ID to search with
1173            * @param classNameId the class name ID to search with
1174            * @param classPK the class p k to search with
1175            * @return the number of matching social activities
1176            * @throws SystemException if a system exception occurred
1177            */
1178            public int countByM_C_C(long mirrorActivityId, long classNameId,
1179                    long classPK)
1180                    throws com.liferay.portal.kernel.exception.SystemException;
1181    
1182            /**
1183            * Counts all the social activities where groupId = &#63; and userId = &#63; and createDate = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and receiverUserId = &#63;.
1184            *
1185            * @param groupId the group ID to search with
1186            * @param userId the user ID to search with
1187            * @param createDate the create date to search with
1188            * @param classNameId the class name ID to search with
1189            * @param classPK the class p k to search with
1190            * @param type the type to search with
1191            * @param receiverUserId the receiver user ID to search with
1192            * @return the number of matching social activities
1193            * @throws SystemException if a system exception occurred
1194            */
1195            public int countByG_U_CD_C_C_T_R(long groupId, long userId,
1196                    long createDate, long classNameId, long classPK, int type,
1197                    long receiverUserId)
1198                    throws com.liferay.portal.kernel.exception.SystemException;
1199    
1200            /**
1201            * Counts all the social activities.
1202            *
1203            * @return the number of social activities
1204            * @throws SystemException if a system exception occurred
1205            */
1206            public int countAll()
1207                    throws com.liferay.portal.kernel.exception.SystemException;
1208    
1209            public SocialActivity remove(SocialActivity socialActivity)
1210                    throws SystemException;
1211    }