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.portlet.social.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.social.model.SocialActivitySet;
022    
023    /**
024     * The persistence interface for the social activity set service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see com.liferay.portlet.social.service.persistence.impl.SocialActivitySetPersistenceImpl
032     * @see SocialActivitySetUtil
033     * @generated
034     */
035    @ProviderType
036    public interface SocialActivitySetPersistence extends BasePersistence<SocialActivitySet> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link SocialActivitySetUtil} to access the social activity set persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the social activity sets where groupId = &#63;.
045            *
046            * @param groupId the group ID
047            * @return the matching social activity sets
048            */
049            public java.util.List<SocialActivitySet> findByGroupId(long groupId);
050    
051            /**
052            * Returns a range of all the social activity sets where groupId = &#63;.
053            *
054            * <p>
055            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 SocialActivitySetModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
056            * </p>
057            *
058            * @param groupId the group ID
059            * @param start the lower bound of the range of social activity sets
060            * @param end the upper bound of the range of social activity sets (not inclusive)
061            * @return the range of matching social activity sets
062            */
063            public java.util.List<SocialActivitySet> findByGroupId(long groupId,
064                    int start, int end);
065    
066            /**
067            * Returns an ordered range of all the social activity sets where groupId = &#63;.
068            *
069            * <p>
070            * 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 SocialActivitySetModelImpl}. 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.
071            * </p>
072            *
073            * @param groupId the group ID
074            * @param start the lower bound of the range of social activity sets
075            * @param end the upper bound of the range of social activity sets (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching social activity sets
078            */
079            public java.util.List<SocialActivitySet> findByGroupId(long groupId,
080                    int start, int end,
081                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
082    
083            /**
084            * Returns an ordered range of all the social activity sets where groupId = &#63;.
085            *
086            * <p>
087            * 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 SocialActivitySetModelImpl}. 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.
088            * </p>
089            *
090            * @param groupId the group ID
091            * @param start the lower bound of the range of social activity sets
092            * @param end the upper bound of the range of social activity sets (not inclusive)
093            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
094            * @param retrieveFromCache whether to retrieve from the finder cache
095            * @return the ordered range of matching social activity sets
096            */
097            public java.util.List<SocialActivitySet> findByGroupId(long groupId,
098                    int start, int end,
099                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator,
100                    boolean retrieveFromCache);
101    
102            /**
103            * Returns the first social activity set in the ordered set where groupId = &#63;.
104            *
105            * @param groupId the group ID
106            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
107            * @return the first matching social activity set
108            * @throws NoSuchActivitySetException if a matching social activity set could not be found
109            */
110            public SocialActivitySet findByGroupId_First(long groupId,
111                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
112                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
113    
114            /**
115            * Returns the first social activity set in the ordered set where groupId = &#63;.
116            *
117            * @param groupId the group ID
118            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
119            * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found
120            */
121            public SocialActivitySet fetchByGroupId_First(long groupId,
122                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
123    
124            /**
125            * Returns the last social activity set in the ordered set where groupId = &#63;.
126            *
127            * @param groupId the group ID
128            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
129            * @return the last matching social activity set
130            * @throws NoSuchActivitySetException if a matching social activity set could not be found
131            */
132            public SocialActivitySet findByGroupId_Last(long groupId,
133                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
134                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
135    
136            /**
137            * Returns the last social activity set in the ordered set where groupId = &#63;.
138            *
139            * @param groupId the group ID
140            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
141            * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found
142            */
143            public SocialActivitySet fetchByGroupId_Last(long groupId,
144                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
145    
146            /**
147            * Returns the social activity sets before and after the current social activity set in the ordered set where groupId = &#63;.
148            *
149            * @param activitySetId the primary key of the current social activity set
150            * @param groupId the group ID
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next social activity set
153            * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found
154            */
155            public SocialActivitySet[] findByGroupId_PrevAndNext(long activitySetId,
156                    long groupId,
157                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
158                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
159    
160            /**
161            * Removes all the social activity sets where groupId = &#63; from the database.
162            *
163            * @param groupId the group ID
164            */
165            public void removeByGroupId(long groupId);
166    
167            /**
168            * Returns the number of social activity sets where groupId = &#63;.
169            *
170            * @param groupId the group ID
171            * @return the number of matching social activity sets
172            */
173            public int countByGroupId(long groupId);
174    
175            /**
176            * Returns all the social activity sets where userId = &#63;.
177            *
178            * @param userId the user ID
179            * @return the matching social activity sets
180            */
181            public java.util.List<SocialActivitySet> findByUserId(long userId);
182    
183            /**
184            * Returns a range of all the social activity sets where userId = &#63;.
185            *
186            * <p>
187            * 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 SocialActivitySetModelImpl}. 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.
188            * </p>
189            *
190            * @param userId the user ID
191            * @param start the lower bound of the range of social activity sets
192            * @param end the upper bound of the range of social activity sets (not inclusive)
193            * @return the range of matching social activity sets
194            */
195            public java.util.List<SocialActivitySet> findByUserId(long userId,
196                    int start, int end);
197    
198            /**
199            * Returns an ordered range of all the social activity sets where userId = &#63;.
200            *
201            * <p>
202            * 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 SocialActivitySetModelImpl}. 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.
203            * </p>
204            *
205            * @param userId the user ID
206            * @param start the lower bound of the range of social activity sets
207            * @param end the upper bound of the range of social activity sets (not inclusive)
208            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
209            * @return the ordered range of matching social activity sets
210            */
211            public java.util.List<SocialActivitySet> findByUserId(long userId,
212                    int start, int end,
213                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
214    
215            /**
216            * Returns an ordered range of all the social activity sets where userId = &#63;.
217            *
218            * <p>
219            * 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 SocialActivitySetModelImpl}. 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.
220            * </p>
221            *
222            * @param userId the user ID
223            * @param start the lower bound of the range of social activity sets
224            * @param end the upper bound of the range of social activity sets (not inclusive)
225            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
226            * @param retrieveFromCache whether to retrieve from the finder cache
227            * @return the ordered range of matching social activity sets
228            */
229            public java.util.List<SocialActivitySet> findByUserId(long userId,
230                    int start, int end,
231                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator,
232                    boolean retrieveFromCache);
233    
234            /**
235            * Returns the first social activity set in the ordered set where userId = &#63;.
236            *
237            * @param userId the user ID
238            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
239            * @return the first matching social activity set
240            * @throws NoSuchActivitySetException if a matching social activity set could not be found
241            */
242            public SocialActivitySet findByUserId_First(long userId,
243                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
244                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
245    
246            /**
247            * Returns the first social activity set in the ordered set where userId = &#63;.
248            *
249            * @param userId the user ID
250            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
251            * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found
252            */
253            public SocialActivitySet fetchByUserId_First(long userId,
254                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
255    
256            /**
257            * Returns the last social activity set in the ordered set where userId = &#63;.
258            *
259            * @param userId the user ID
260            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
261            * @return the last matching social activity set
262            * @throws NoSuchActivitySetException if a matching social activity set could not be found
263            */
264            public SocialActivitySet findByUserId_Last(long userId,
265                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
266                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
267    
268            /**
269            * Returns the last social activity set in the ordered set where userId = &#63;.
270            *
271            * @param userId the user ID
272            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
273            * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found
274            */
275            public SocialActivitySet fetchByUserId_Last(long userId,
276                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
277    
278            /**
279            * Returns the social activity sets before and after the current social activity set in the ordered set where userId = &#63;.
280            *
281            * @param activitySetId the primary key of the current social activity set
282            * @param userId the user ID
283            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
284            * @return the previous, current, and next social activity set
285            * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found
286            */
287            public SocialActivitySet[] findByUserId_PrevAndNext(long activitySetId,
288                    long userId,
289                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
290                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
291    
292            /**
293            * Removes all the social activity sets where userId = &#63; from the database.
294            *
295            * @param userId the user ID
296            */
297            public void removeByUserId(long userId);
298    
299            /**
300            * Returns the number of social activity sets where userId = &#63;.
301            *
302            * @param userId the user ID
303            * @return the number of matching social activity sets
304            */
305            public int countByUserId(long userId);
306    
307            /**
308            * Returns all the social activity sets where groupId = &#63; and userId = &#63; and type = &#63;.
309            *
310            * @param groupId the group ID
311            * @param userId the user ID
312            * @param type the type
313            * @return the matching social activity sets
314            */
315            public java.util.List<SocialActivitySet> findByG_U_T(long groupId,
316                    long userId, int type);
317    
318            /**
319            * Returns a range of all the social activity sets where groupId = &#63; and userId = &#63; and type = &#63;.
320            *
321            * <p>
322            * 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 SocialActivitySetModelImpl}. 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.
323            * </p>
324            *
325            * @param groupId the group ID
326            * @param userId the user ID
327            * @param type the type
328            * @param start the lower bound of the range of social activity sets
329            * @param end the upper bound of the range of social activity sets (not inclusive)
330            * @return the range of matching social activity sets
331            */
332            public java.util.List<SocialActivitySet> findByG_U_T(long groupId,
333                    long userId, int type, int start, int end);
334    
335            /**
336            * Returns an ordered range of all the social activity sets where groupId = &#63; and userId = &#63; and type = &#63;.
337            *
338            * <p>
339            * 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 SocialActivitySetModelImpl}. 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.
340            * </p>
341            *
342            * @param groupId the group ID
343            * @param userId the user ID
344            * @param type the type
345            * @param start the lower bound of the range of social activity sets
346            * @param end the upper bound of the range of social activity sets (not inclusive)
347            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
348            * @return the ordered range of matching social activity sets
349            */
350            public java.util.List<SocialActivitySet> findByG_U_T(long groupId,
351                    long userId, int type, int start, int end,
352                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
353    
354            /**
355            * Returns an ordered range of all the social activity sets where groupId = &#63; and userId = &#63; and type = &#63;.
356            *
357            * <p>
358            * 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 SocialActivitySetModelImpl}. 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.
359            * </p>
360            *
361            * @param groupId the group ID
362            * @param userId the user ID
363            * @param type the type
364            * @param start the lower bound of the range of social activity sets
365            * @param end the upper bound of the range of social activity sets (not inclusive)
366            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
367            * @param retrieveFromCache whether to retrieve from the finder cache
368            * @return the ordered range of matching social activity sets
369            */
370            public java.util.List<SocialActivitySet> findByG_U_T(long groupId,
371                    long userId, int type, int start, int end,
372                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator,
373                    boolean retrieveFromCache);
374    
375            /**
376            * Returns the first social activity set in the ordered set where groupId = &#63; and userId = &#63; and type = &#63;.
377            *
378            * @param groupId the group ID
379            * @param userId the user ID
380            * @param type the type
381            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
382            * @return the first matching social activity set
383            * @throws NoSuchActivitySetException if a matching social activity set could not be found
384            */
385            public SocialActivitySet findByG_U_T_First(long groupId, long userId,
386                    int type,
387                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
388                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
389    
390            /**
391            * Returns the first social activity set in the ordered set where groupId = &#63; and userId = &#63; and type = &#63;.
392            *
393            * @param groupId the group ID
394            * @param userId the user ID
395            * @param type the type
396            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
397            * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found
398            */
399            public SocialActivitySet fetchByG_U_T_First(long groupId, long userId,
400                    int type,
401                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
402    
403            /**
404            * Returns the last social activity set in the ordered set where groupId = &#63; and userId = &#63; and type = &#63;.
405            *
406            * @param groupId the group ID
407            * @param userId the user ID
408            * @param type the type
409            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
410            * @return the last matching social activity set
411            * @throws NoSuchActivitySetException if a matching social activity set could not be found
412            */
413            public SocialActivitySet findByG_U_T_Last(long groupId, long userId,
414                    int type,
415                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
416                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
417    
418            /**
419            * Returns the last social activity set in the ordered set where groupId = &#63; and userId = &#63; and type = &#63;.
420            *
421            * @param groupId the group ID
422            * @param userId the user ID
423            * @param type the type
424            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
425            * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found
426            */
427            public SocialActivitySet fetchByG_U_T_Last(long groupId, long userId,
428                    int type,
429                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
430    
431            /**
432            * Returns the social activity sets before and after the current social activity set in the ordered set where groupId = &#63; and userId = &#63; and type = &#63;.
433            *
434            * @param activitySetId the primary key of the current social activity set
435            * @param groupId the group ID
436            * @param userId the user ID
437            * @param type the type
438            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
439            * @return the previous, current, and next social activity set
440            * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found
441            */
442            public SocialActivitySet[] findByG_U_T_PrevAndNext(long activitySetId,
443                    long groupId, long userId, int type,
444                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
445                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
446    
447            /**
448            * Removes all the social activity sets where groupId = &#63; and userId = &#63; and type = &#63; from the database.
449            *
450            * @param groupId the group ID
451            * @param userId the user ID
452            * @param type the type
453            */
454            public void removeByG_U_T(long groupId, long userId, int type);
455    
456            /**
457            * Returns the number of social activity sets where groupId = &#63; and userId = &#63; and type = &#63;.
458            *
459            * @param groupId the group ID
460            * @param userId the user ID
461            * @param type the type
462            * @return the number of matching social activity sets
463            */
464            public int countByG_U_T(long groupId, long userId, int type);
465    
466            /**
467            * Returns all the social activity sets where classNameId = &#63; and classPK = &#63; and type = &#63;.
468            *
469            * @param classNameId the class name ID
470            * @param classPK the class p k
471            * @param type the type
472            * @return the matching social activity sets
473            */
474            public java.util.List<SocialActivitySet> findByC_C_T(long classNameId,
475                    long classPK, int type);
476    
477            /**
478            * Returns a range of all the social activity sets where classNameId = &#63; and classPK = &#63; and type = &#63;.
479            *
480            * <p>
481            * 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 SocialActivitySetModelImpl}. 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.
482            * </p>
483            *
484            * @param classNameId the class name ID
485            * @param classPK the class p k
486            * @param type the type
487            * @param start the lower bound of the range of social activity sets
488            * @param end the upper bound of the range of social activity sets (not inclusive)
489            * @return the range of matching social activity sets
490            */
491            public java.util.List<SocialActivitySet> findByC_C_T(long classNameId,
492                    long classPK, int type, int start, int end);
493    
494            /**
495            * Returns an ordered range of all the social activity sets where classNameId = &#63; and classPK = &#63; and type = &#63;.
496            *
497            * <p>
498            * 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 SocialActivitySetModelImpl}. 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.
499            * </p>
500            *
501            * @param classNameId the class name ID
502            * @param classPK the class p k
503            * @param type the type
504            * @param start the lower bound of the range of social activity sets
505            * @param end the upper bound of the range of social activity sets (not inclusive)
506            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
507            * @return the ordered range of matching social activity sets
508            */
509            public java.util.List<SocialActivitySet> findByC_C_T(long classNameId,
510                    long classPK, int type, int start, int end,
511                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
512    
513            /**
514            * Returns an ordered range of all the social activity sets where classNameId = &#63; and classPK = &#63; and type = &#63;.
515            *
516            * <p>
517            * 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 SocialActivitySetModelImpl}. 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.
518            * </p>
519            *
520            * @param classNameId the class name ID
521            * @param classPK the class p k
522            * @param type the type
523            * @param start the lower bound of the range of social activity sets
524            * @param end the upper bound of the range of social activity sets (not inclusive)
525            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
526            * @param retrieveFromCache whether to retrieve from the finder cache
527            * @return the ordered range of matching social activity sets
528            */
529            public java.util.List<SocialActivitySet> findByC_C_T(long classNameId,
530                    long classPK, int type, int start, int end,
531                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator,
532                    boolean retrieveFromCache);
533    
534            /**
535            * Returns the first social activity set in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
536            *
537            * @param classNameId the class name ID
538            * @param classPK the class p k
539            * @param type the type
540            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
541            * @return the first matching social activity set
542            * @throws NoSuchActivitySetException if a matching social activity set could not be found
543            */
544            public SocialActivitySet findByC_C_T_First(long classNameId, long classPK,
545                    int type,
546                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
547                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
548    
549            /**
550            * Returns the first social activity set in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
551            *
552            * @param classNameId the class name ID
553            * @param classPK the class p k
554            * @param type the type
555            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
556            * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found
557            */
558            public SocialActivitySet fetchByC_C_T_First(long classNameId, long classPK,
559                    int type,
560                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
561    
562            /**
563            * Returns the last social activity set in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
564            *
565            * @param classNameId the class name ID
566            * @param classPK the class p k
567            * @param type the type
568            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
569            * @return the last matching social activity set
570            * @throws NoSuchActivitySetException if a matching social activity set could not be found
571            */
572            public SocialActivitySet findByC_C_T_Last(long classNameId, long classPK,
573                    int type,
574                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
575                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
576    
577            /**
578            * Returns the last social activity set in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
579            *
580            * @param classNameId the class name ID
581            * @param classPK the class p k
582            * @param type the type
583            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
584            * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found
585            */
586            public SocialActivitySet fetchByC_C_T_Last(long classNameId, long classPK,
587                    int type,
588                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
589    
590            /**
591            * Returns the social activity sets before and after the current social activity set in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
592            *
593            * @param activitySetId the primary key of the current social activity set
594            * @param classNameId the class name ID
595            * @param classPK the class p k
596            * @param type the type
597            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
598            * @return the previous, current, and next social activity set
599            * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found
600            */
601            public SocialActivitySet[] findByC_C_T_PrevAndNext(long activitySetId,
602                    long classNameId, long classPK, int type,
603                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
604                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
605    
606            /**
607            * Removes all the social activity sets where classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
608            *
609            * @param classNameId the class name ID
610            * @param classPK the class p k
611            * @param type the type
612            */
613            public void removeByC_C_T(long classNameId, long classPK, int type);
614    
615            /**
616            * Returns the number of social activity sets where classNameId = &#63; and classPK = &#63; and type = &#63;.
617            *
618            * @param classNameId the class name ID
619            * @param classPK the class p k
620            * @param type the type
621            * @return the number of matching social activity sets
622            */
623            public int countByC_C_T(long classNameId, long classPK, int type);
624    
625            /**
626            * Returns all the social activity sets where groupId = &#63; and userId = &#63; and classNameId = &#63; and type = &#63;.
627            *
628            * @param groupId the group ID
629            * @param userId the user ID
630            * @param classNameId the class name ID
631            * @param type the type
632            * @return the matching social activity sets
633            */
634            public java.util.List<SocialActivitySet> findByG_U_C_T(long groupId,
635                    long userId, long classNameId, int type);
636    
637            /**
638            * Returns a range of all the social activity sets where groupId = &#63; and userId = &#63; and classNameId = &#63; and type = &#63;.
639            *
640            * <p>
641            * 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 SocialActivitySetModelImpl}. 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.
642            * </p>
643            *
644            * @param groupId the group ID
645            * @param userId the user ID
646            * @param classNameId the class name ID
647            * @param type the type
648            * @param start the lower bound of the range of social activity sets
649            * @param end the upper bound of the range of social activity sets (not inclusive)
650            * @return the range of matching social activity sets
651            */
652            public java.util.List<SocialActivitySet> findByG_U_C_T(long groupId,
653                    long userId, long classNameId, int type, int start, int end);
654    
655            /**
656            * Returns an ordered range of all the social activity sets where groupId = &#63; and userId = &#63; and classNameId = &#63; and type = &#63;.
657            *
658            * <p>
659            * 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 SocialActivitySetModelImpl}. 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.
660            * </p>
661            *
662            * @param groupId the group ID
663            * @param userId the user ID
664            * @param classNameId the class name ID
665            * @param type the type
666            * @param start the lower bound of the range of social activity sets
667            * @param end the upper bound of the range of social activity sets (not inclusive)
668            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
669            * @return the ordered range of matching social activity sets
670            */
671            public java.util.List<SocialActivitySet> findByG_U_C_T(long groupId,
672                    long userId, long classNameId, int type, int start, int end,
673                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
674    
675            /**
676            * Returns an ordered range of all the social activity sets where groupId = &#63; and userId = &#63; and classNameId = &#63; and type = &#63;.
677            *
678            * <p>
679            * 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 SocialActivitySetModelImpl}. 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.
680            * </p>
681            *
682            * @param groupId the group ID
683            * @param userId the user ID
684            * @param classNameId the class name ID
685            * @param type the type
686            * @param start the lower bound of the range of social activity sets
687            * @param end the upper bound of the range of social activity sets (not inclusive)
688            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
689            * @param retrieveFromCache whether to retrieve from the finder cache
690            * @return the ordered range of matching social activity sets
691            */
692            public java.util.List<SocialActivitySet> findByG_U_C_T(long groupId,
693                    long userId, long classNameId, int type, int start, int end,
694                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator,
695                    boolean retrieveFromCache);
696    
697            /**
698            * Returns the first social activity set in the ordered set where groupId = &#63; and userId = &#63; and classNameId = &#63; and type = &#63;.
699            *
700            * @param groupId the group ID
701            * @param userId the user ID
702            * @param classNameId the class name ID
703            * @param type the type
704            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
705            * @return the first matching social activity set
706            * @throws NoSuchActivitySetException if a matching social activity set could not be found
707            */
708            public SocialActivitySet findByG_U_C_T_First(long groupId, long userId,
709                    long classNameId, int type,
710                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
711                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
712    
713            /**
714            * Returns the first social activity set in the ordered set where groupId = &#63; and userId = &#63; and classNameId = &#63; and type = &#63;.
715            *
716            * @param groupId the group ID
717            * @param userId the user ID
718            * @param classNameId the class name ID
719            * @param type the type
720            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
721            * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found
722            */
723            public SocialActivitySet fetchByG_U_C_T_First(long groupId, long userId,
724                    long classNameId, int type,
725                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
726    
727            /**
728            * Returns the last social activity set in the ordered set where groupId = &#63; and userId = &#63; and classNameId = &#63; and type = &#63;.
729            *
730            * @param groupId the group ID
731            * @param userId the user ID
732            * @param classNameId the class name ID
733            * @param type the type
734            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
735            * @return the last matching social activity set
736            * @throws NoSuchActivitySetException if a matching social activity set could not be found
737            */
738            public SocialActivitySet findByG_U_C_T_Last(long groupId, long userId,
739                    long classNameId, int type,
740                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
741                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
742    
743            /**
744            * Returns the last social activity set in the ordered set where groupId = &#63; and userId = &#63; and classNameId = &#63; and type = &#63;.
745            *
746            * @param groupId the group ID
747            * @param userId the user ID
748            * @param classNameId the class name ID
749            * @param type the type
750            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
751            * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found
752            */
753            public SocialActivitySet fetchByG_U_C_T_Last(long groupId, long userId,
754                    long classNameId, int type,
755                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
756    
757            /**
758            * Returns the social activity sets before and after the current social activity set in the ordered set where groupId = &#63; and userId = &#63; and classNameId = &#63; and type = &#63;.
759            *
760            * @param activitySetId the primary key of the current social activity set
761            * @param groupId the group ID
762            * @param userId the user ID
763            * @param classNameId the class name ID
764            * @param type the type
765            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
766            * @return the previous, current, and next social activity set
767            * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found
768            */
769            public SocialActivitySet[] findByG_U_C_T_PrevAndNext(long activitySetId,
770                    long groupId, long userId, long classNameId, int type,
771                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
772                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
773    
774            /**
775            * Removes all the social activity sets where groupId = &#63; and userId = &#63; and classNameId = &#63; and type = &#63; from the database.
776            *
777            * @param groupId the group ID
778            * @param userId the user ID
779            * @param classNameId the class name ID
780            * @param type the type
781            */
782            public void removeByG_U_C_T(long groupId, long userId, long classNameId,
783                    int type);
784    
785            /**
786            * Returns the number of social activity sets where groupId = &#63; and userId = &#63; and classNameId = &#63; and type = &#63;.
787            *
788            * @param groupId the group ID
789            * @param userId the user ID
790            * @param classNameId the class name ID
791            * @param type the type
792            * @return the number of matching social activity sets
793            */
794            public int countByG_U_C_T(long groupId, long userId, long classNameId,
795                    int type);
796    
797            /**
798            * Returns all the social activity sets where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
799            *
800            * @param userId the user ID
801            * @param classNameId the class name ID
802            * @param classPK the class p k
803            * @param type the type
804            * @return the matching social activity sets
805            */
806            public java.util.List<SocialActivitySet> findByU_C_C_T(long userId,
807                    long classNameId, long classPK, int type);
808    
809            /**
810            * Returns a range of all the social activity sets where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
811            *
812            * <p>
813            * 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 SocialActivitySetModelImpl}. 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.
814            * </p>
815            *
816            * @param userId the user ID
817            * @param classNameId the class name ID
818            * @param classPK the class p k
819            * @param type the type
820            * @param start the lower bound of the range of social activity sets
821            * @param end the upper bound of the range of social activity sets (not inclusive)
822            * @return the range of matching social activity sets
823            */
824            public java.util.List<SocialActivitySet> findByU_C_C_T(long userId,
825                    long classNameId, long classPK, int type, int start, int end);
826    
827            /**
828            * Returns an ordered range of all the social activity sets where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
829            *
830            * <p>
831            * 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 SocialActivitySetModelImpl}. 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.
832            * </p>
833            *
834            * @param userId the user ID
835            * @param classNameId the class name ID
836            * @param classPK the class p k
837            * @param type the type
838            * @param start the lower bound of the range of social activity sets
839            * @param end the upper bound of the range of social activity sets (not inclusive)
840            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
841            * @return the ordered range of matching social activity sets
842            */
843            public java.util.List<SocialActivitySet> findByU_C_C_T(long userId,
844                    long classNameId, long classPK, int type, int start, int end,
845                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
846    
847            /**
848            * Returns an ordered range of all the social activity sets where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
849            *
850            * <p>
851            * 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 SocialActivitySetModelImpl}. 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.
852            * </p>
853            *
854            * @param userId the user ID
855            * @param classNameId the class name ID
856            * @param classPK the class p k
857            * @param type the type
858            * @param start the lower bound of the range of social activity sets
859            * @param end the upper bound of the range of social activity sets (not inclusive)
860            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
861            * @param retrieveFromCache whether to retrieve from the finder cache
862            * @return the ordered range of matching social activity sets
863            */
864            public java.util.List<SocialActivitySet> findByU_C_C_T(long userId,
865                    long classNameId, long classPK, int type, int start, int end,
866                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator,
867                    boolean retrieveFromCache);
868    
869            /**
870            * Returns the first social activity set in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
871            *
872            * @param userId the user ID
873            * @param classNameId the class name ID
874            * @param classPK the class p k
875            * @param type the type
876            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
877            * @return the first matching social activity set
878            * @throws NoSuchActivitySetException if a matching social activity set could not be found
879            */
880            public SocialActivitySet findByU_C_C_T_First(long userId, long classNameId,
881                    long classPK, int type,
882                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
883                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
884    
885            /**
886            * Returns the first social activity set in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
887            *
888            * @param userId the user ID
889            * @param classNameId the class name ID
890            * @param classPK the class p k
891            * @param type the type
892            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
893            * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found
894            */
895            public SocialActivitySet fetchByU_C_C_T_First(long userId,
896                    long classNameId, long classPK, int type,
897                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
898    
899            /**
900            * Returns the last social activity set in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
901            *
902            * @param userId the user ID
903            * @param classNameId the class name ID
904            * @param classPK the class p k
905            * @param type the type
906            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
907            * @return the last matching social activity set
908            * @throws NoSuchActivitySetException if a matching social activity set could not be found
909            */
910            public SocialActivitySet findByU_C_C_T_Last(long userId, long classNameId,
911                    long classPK, int type,
912                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
913                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
914    
915            /**
916            * Returns the last social activity set in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
917            *
918            * @param userId the user ID
919            * @param classNameId the class name ID
920            * @param classPK the class p k
921            * @param type the type
922            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
923            * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found
924            */
925            public SocialActivitySet fetchByU_C_C_T_Last(long userId, long classNameId,
926                    long classPK, int type,
927                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
928    
929            /**
930            * Returns the social activity sets before and after the current social activity set in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
931            *
932            * @param activitySetId the primary key of the current social activity set
933            * @param userId the user ID
934            * @param classNameId the class name ID
935            * @param classPK the class p k
936            * @param type the type
937            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
938            * @return the previous, current, and next social activity set
939            * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found
940            */
941            public SocialActivitySet[] findByU_C_C_T_PrevAndNext(long activitySetId,
942                    long userId, long classNameId, long classPK, int type,
943                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator)
944                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
945    
946            /**
947            * Removes all the social activity sets where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
948            *
949            * @param userId the user ID
950            * @param classNameId the class name ID
951            * @param classPK the class p k
952            * @param type the type
953            */
954            public void removeByU_C_C_T(long userId, long classNameId, long classPK,
955                    int type);
956    
957            /**
958            * Returns the number of social activity sets where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
959            *
960            * @param userId the user ID
961            * @param classNameId the class name ID
962            * @param classPK the class p k
963            * @param type the type
964            * @return the number of matching social activity sets
965            */
966            public int countByU_C_C_T(long userId, long classNameId, long classPK,
967                    int type);
968    
969            /**
970            * Caches the social activity set in the entity cache if it is enabled.
971            *
972            * @param socialActivitySet the social activity set
973            */
974            public void cacheResult(SocialActivitySet socialActivitySet);
975    
976            /**
977            * Caches the social activity sets in the entity cache if it is enabled.
978            *
979            * @param socialActivitySets the social activity sets
980            */
981            public void cacheResult(
982                    java.util.List<SocialActivitySet> socialActivitySets);
983    
984            /**
985            * Creates a new social activity set with the primary key. Does not add the social activity set to the database.
986            *
987            * @param activitySetId the primary key for the new social activity set
988            * @return the new social activity set
989            */
990            public SocialActivitySet create(long activitySetId);
991    
992            /**
993            * Removes the social activity set with the primary key from the database. Also notifies the appropriate model listeners.
994            *
995            * @param activitySetId the primary key of the social activity set
996            * @return the social activity set that was removed
997            * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found
998            */
999            public SocialActivitySet remove(long activitySetId)
1000                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
1001    
1002            public SocialActivitySet updateImpl(SocialActivitySet socialActivitySet);
1003    
1004            /**
1005            * Returns the social activity set with the primary key or throws a {@link NoSuchActivitySetException} if it could not be found.
1006            *
1007            * @param activitySetId the primary key of the social activity set
1008            * @return the social activity set
1009            * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found
1010            */
1011            public SocialActivitySet findByPrimaryKey(long activitySetId)
1012                    throws com.liferay.portlet.social.exception.NoSuchActivitySetException;
1013    
1014            /**
1015            * Returns the social activity set with the primary key or returns <code>null</code> if it could not be found.
1016            *
1017            * @param activitySetId the primary key of the social activity set
1018            * @return the social activity set, or <code>null</code> if a social activity set with the primary key could not be found
1019            */
1020            public SocialActivitySet fetchByPrimaryKey(long activitySetId);
1021    
1022            @Override
1023            public java.util.Map<java.io.Serializable, SocialActivitySet> fetchByPrimaryKeys(
1024                    java.util.Set<java.io.Serializable> primaryKeys);
1025    
1026            /**
1027            * Returns all the social activity sets.
1028            *
1029            * @return the social activity sets
1030            */
1031            public java.util.List<SocialActivitySet> findAll();
1032    
1033            /**
1034            * Returns a range of all the social activity sets.
1035            *
1036            * <p>
1037            * 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 SocialActivitySetModelImpl}. 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.
1038            * </p>
1039            *
1040            * @param start the lower bound of the range of social activity sets
1041            * @param end the upper bound of the range of social activity sets (not inclusive)
1042            * @return the range of social activity sets
1043            */
1044            public java.util.List<SocialActivitySet> findAll(int start, int end);
1045    
1046            /**
1047            * Returns an ordered range of all the social activity sets.
1048            *
1049            * <p>
1050            * 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 SocialActivitySetModelImpl}. 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.
1051            * </p>
1052            *
1053            * @param start the lower bound of the range of social activity sets
1054            * @param end the upper bound of the range of social activity sets (not inclusive)
1055            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1056            * @return the ordered range of social activity sets
1057            */
1058            public java.util.List<SocialActivitySet> findAll(int start, int end,
1059                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator);
1060    
1061            /**
1062            * Returns an ordered range of all the social activity sets.
1063            *
1064            * <p>
1065            * 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 SocialActivitySetModelImpl}. 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.
1066            * </p>
1067            *
1068            * @param start the lower bound of the range of social activity sets
1069            * @param end the upper bound of the range of social activity sets (not inclusive)
1070            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1071            * @param retrieveFromCache whether to retrieve from the finder cache
1072            * @return the ordered range of social activity sets
1073            */
1074            public java.util.List<SocialActivitySet> findAll(int start, int end,
1075                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator,
1076                    boolean retrieveFromCache);
1077    
1078            /**
1079            * Removes all the social activity sets from the database.
1080            */
1081            public void removeAll();
1082    
1083            /**
1084            * Returns the number of social activity sets.
1085            *
1086            * @return the number of social activity sets
1087            */
1088            public int countAll();
1089    
1090            @Override
1091            public java.util.Set<java.lang.String> getBadColumnNames();
1092    }