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