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