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