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