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