001    /**
002     * Copyright (c) 2000-2012 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.SocialActivitySetting;
020    
021    /**
022     * The persistence interface for the social activity setting 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 SocialActivitySettingPersistenceImpl
030     * @see SocialActivitySettingUtil
031     * @generated
032     */
033    public interface SocialActivitySettingPersistence extends BasePersistence<SocialActivitySetting> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link SocialActivitySettingUtil} to access the social activity setting persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the social activity setting in the entity cache if it is enabled.
042            *
043            * @param socialActivitySetting the social activity setting
044            */
045            public void cacheResult(
046                    com.liferay.portlet.social.model.SocialActivitySetting socialActivitySetting);
047    
048            /**
049            * Caches the social activity settings in the entity cache if it is enabled.
050            *
051            * @param socialActivitySettings the social activity settings
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> socialActivitySettings);
055    
056            /**
057            * Creates a new social activity setting with the primary key. Does not add the social activity setting to the database.
058            *
059            * @param activitySettingId the primary key for the new social activity setting
060            * @return the new social activity setting
061            */
062            public com.liferay.portlet.social.model.SocialActivitySetting create(
063                    long activitySettingId);
064    
065            /**
066            * Removes the social activity setting with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param activitySettingId the primary key of the social activity setting
069            * @return the social activity setting that was removed
070            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.social.model.SocialActivitySetting remove(
074                    long activitySettingId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.social.NoSuchActivitySettingException;
077    
078            public com.liferay.portlet.social.model.SocialActivitySetting updateImpl(
079                    com.liferay.portlet.social.model.SocialActivitySetting socialActivitySetting)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * Returns the social activity setting with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivitySettingException} if it could not be found.
084            *
085            * @param activitySettingId the primary key of the social activity setting
086            * @return the social activity setting
087            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portlet.social.model.SocialActivitySetting findByPrimaryKey(
091                    long activitySettingId)
092                    throws com.liferay.portal.kernel.exception.SystemException,
093                            com.liferay.portlet.social.NoSuchActivitySettingException;
094    
095            /**
096            * Returns the social activity setting with the primary key or returns <code>null</code> if it could not be found.
097            *
098            * @param activitySettingId the primary key of the social activity setting
099            * @return the social activity setting, or <code>null</code> if a social activity setting with the primary key could not be found
100            * @throws SystemException if a system exception occurred
101            */
102            public com.liferay.portlet.social.model.SocialActivitySetting fetchByPrimaryKey(
103                    long activitySettingId)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            /**
107            * Returns all the social activity settings where groupId = &#63;.
108            *
109            * @param groupId the group ID
110            * @return the matching social activity settings
111            * @throws SystemException if a system exception occurred
112            */
113            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByGroupId(
114                    long groupId)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            /**
118            * Returns a range of all the social activity settings where groupId = &#63;.
119            *
120            * <p>
121            * 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.
122            * </p>
123            *
124            * @param groupId the group ID
125            * @param start the lower bound of the range of social activity settings
126            * @param end the upper bound of the range of social activity settings (not inclusive)
127            * @return the range of matching social activity settings
128            * @throws SystemException if a system exception occurred
129            */
130            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByGroupId(
131                    long groupId, int start, int end)
132                    throws com.liferay.portal.kernel.exception.SystemException;
133    
134            /**
135            * Returns an ordered range of all the social activity settings where groupId = &#63;.
136            *
137            * <p>
138            * 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.
139            * </p>
140            *
141            * @param groupId the group ID
142            * @param start the lower bound of the range of social activity settings
143            * @param end the upper bound of the range of social activity settings (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching social activity settings
146            * @throws SystemException if a system exception occurred
147            */
148            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByGroupId(
149                    long groupId, int start, int end,
150                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            /**
154            * Returns the first social activity setting in the ordered set where groupId = &#63;.
155            *
156            * @param groupId the group ID
157            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
158            * @return the first matching social activity setting
159            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
160            * @throws SystemException if a system exception occurred
161            */
162            public com.liferay.portlet.social.model.SocialActivitySetting findByGroupId_First(
163                    long groupId,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException,
166                            com.liferay.portlet.social.NoSuchActivitySettingException;
167    
168            /**
169            * Returns the first social activity setting in the ordered set where groupId = &#63;.
170            *
171            * @param groupId the group ID
172            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
173            * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.social.model.SocialActivitySetting fetchByGroupId_First(
177                    long groupId,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns the last social activity setting in the ordered set where groupId = &#63;.
183            *
184            * @param groupId the group ID
185            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
186            * @return the last matching social activity setting
187            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public com.liferay.portlet.social.model.SocialActivitySetting findByGroupId_Last(
191                    long groupId,
192                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193                    throws com.liferay.portal.kernel.exception.SystemException,
194                            com.liferay.portlet.social.NoSuchActivitySettingException;
195    
196            /**
197            * Returns the last social activity setting in the ordered set where groupId = &#63;.
198            *
199            * @param groupId the group ID
200            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
201            * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.social.model.SocialActivitySetting fetchByGroupId_Last(
205                    long groupId,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = &#63;.
211            *
212            * @param activitySettingId the primary key of the current social activity setting
213            * @param groupId the group ID
214            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
215            * @return the previous, current, and next social activity setting
216            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.social.model.SocialActivitySetting[] findByGroupId_PrevAndNext(
220                    long activitySettingId, long groupId,
221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222                    throws com.liferay.portal.kernel.exception.SystemException,
223                            com.liferay.portlet.social.NoSuchActivitySettingException;
224    
225            /**
226            * Returns all the social activity settings where groupId = &#63; and classNameId = &#63;.
227            *
228            * @param groupId the group ID
229            * @param classNameId the class name ID
230            * @return the matching social activity settings
231            * @throws SystemException if a system exception occurred
232            */
233            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_C(
234                    long groupId, long classNameId)
235                    throws com.liferay.portal.kernel.exception.SystemException;
236    
237            /**
238            * Returns a range of all the social activity settings where groupId = &#63; and classNameId = &#63;.
239            *
240            * <p>
241            * 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.
242            * </p>
243            *
244            * @param groupId the group ID
245            * @param classNameId the class name ID
246            * @param start the lower bound of the range of social activity settings
247            * @param end the upper bound of the range of social activity settings (not inclusive)
248            * @return the range of matching social activity settings
249            * @throws SystemException if a system exception occurred
250            */
251            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_C(
252                    long groupId, long classNameId, int start, int end)
253                    throws com.liferay.portal.kernel.exception.SystemException;
254    
255            /**
256            * Returns an ordered range of all the social activity settings where groupId = &#63; and classNameId = &#63;.
257            *
258            * <p>
259            * 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.
260            * </p>
261            *
262            * @param groupId the group ID
263            * @param classNameId the class name ID
264            * @param start the lower bound of the range of social activity settings
265            * @param end the upper bound of the range of social activity settings (not inclusive)
266            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
267            * @return the ordered range of matching social activity settings
268            * @throws SystemException if a system exception occurred
269            */
270            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_C(
271                    long groupId, long classNameId, int start, int end,
272                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273                    throws com.liferay.portal.kernel.exception.SystemException;
274    
275            /**
276            * Returns the first social activity setting in the ordered set where groupId = &#63; and classNameId = &#63;.
277            *
278            * @param groupId the group ID
279            * @param classNameId the class name ID
280            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
281            * @return the first matching social activity setting
282            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
283            * @throws SystemException if a system exception occurred
284            */
285            public com.liferay.portlet.social.model.SocialActivitySetting findByG_C_First(
286                    long groupId, long classNameId,
287                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
288                    throws com.liferay.portal.kernel.exception.SystemException,
289                            com.liferay.portlet.social.NoSuchActivitySettingException;
290    
291            /**
292            * Returns the first social activity setting in the ordered set where groupId = &#63; and classNameId = &#63;.
293            *
294            * @param groupId the group ID
295            * @param classNameId the class name ID
296            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
297            * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
298            * @throws SystemException if a system exception occurred
299            */
300            public com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_First(
301                    long groupId, long classNameId,
302                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
303                    throws com.liferay.portal.kernel.exception.SystemException;
304    
305            /**
306            * Returns the last social activity setting in the ordered set where groupId = &#63; and classNameId = &#63;.
307            *
308            * @param groupId the group ID
309            * @param classNameId the class name ID
310            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
311            * @return the last matching social activity setting
312            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
313            * @throws SystemException if a system exception occurred
314            */
315            public com.liferay.portlet.social.model.SocialActivitySetting findByG_C_Last(
316                    long groupId, long classNameId,
317                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318                    throws com.liferay.portal.kernel.exception.SystemException,
319                            com.liferay.portlet.social.NoSuchActivitySettingException;
320    
321            /**
322            * Returns the last social activity setting in the ordered set where groupId = &#63; and classNameId = &#63;.
323            *
324            * @param groupId the group ID
325            * @param classNameId the class name ID
326            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
327            * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
328            * @throws SystemException if a system exception occurred
329            */
330            public com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_Last(
331                    long groupId, long classNameId,
332                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
333                    throws com.liferay.portal.kernel.exception.SystemException;
334    
335            /**
336            * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = &#63; and classNameId = &#63;.
337            *
338            * @param activitySettingId the primary key of the current social activity setting
339            * @param groupId the group ID
340            * @param classNameId the class name ID
341            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
342            * @return the previous, current, and next social activity setting
343            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
344            * @throws SystemException if a system exception occurred
345            */
346            public com.liferay.portlet.social.model.SocialActivitySetting[] findByG_C_PrevAndNext(
347                    long activitySettingId, long groupId, long classNameId,
348                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
349                    throws com.liferay.portal.kernel.exception.SystemException,
350                            com.liferay.portlet.social.NoSuchActivitySettingException;
351    
352            /**
353            * Returns all the social activity settings where groupId = &#63; and activityType = &#63;.
354            *
355            * @param groupId the group ID
356            * @param activityType the activity type
357            * @return the matching social activity settings
358            * @throws SystemException if a system exception occurred
359            */
360            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_A(
361                    long groupId, int activityType)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * Returns a range of all the social activity settings where groupId = &#63; and activityType = &#63;.
366            *
367            * <p>
368            * 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.
369            * </p>
370            *
371            * @param groupId the group ID
372            * @param activityType the activity type
373            * @param start the lower bound of the range of social activity settings
374            * @param end the upper bound of the range of social activity settings (not inclusive)
375            * @return the range of matching social activity settings
376            * @throws SystemException if a system exception occurred
377            */
378            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_A(
379                    long groupId, int activityType, int start, int end)
380                    throws com.liferay.portal.kernel.exception.SystemException;
381    
382            /**
383            * Returns an ordered range of all the social activity settings where groupId = &#63; and activityType = &#63;.
384            *
385            * <p>
386            * 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.
387            * </p>
388            *
389            * @param groupId the group ID
390            * @param activityType the activity type
391            * @param start the lower bound of the range of social activity settings
392            * @param end the upper bound of the range of social activity settings (not inclusive)
393            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
394            * @return the ordered range of matching social activity settings
395            * @throws SystemException if a system exception occurred
396            */
397            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_A(
398                    long groupId, int activityType, int start, int end,
399                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
400                    throws com.liferay.portal.kernel.exception.SystemException;
401    
402            /**
403            * Returns the first social activity setting in the ordered set where groupId = &#63; and activityType = &#63;.
404            *
405            * @param groupId the group ID
406            * @param activityType the activity type
407            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
408            * @return the first matching social activity setting
409            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
410            * @throws SystemException if a system exception occurred
411            */
412            public com.liferay.portlet.social.model.SocialActivitySetting findByG_A_First(
413                    long groupId, int activityType,
414                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
415                    throws com.liferay.portal.kernel.exception.SystemException,
416                            com.liferay.portlet.social.NoSuchActivitySettingException;
417    
418            /**
419            * Returns the first social activity setting in the ordered set where groupId = &#63; and activityType = &#63;.
420            *
421            * @param groupId the group ID
422            * @param activityType the activity type
423            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
424            * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
425            * @throws SystemException if a system exception occurred
426            */
427            public com.liferay.portlet.social.model.SocialActivitySetting fetchByG_A_First(
428                    long groupId, int activityType,
429                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
430                    throws com.liferay.portal.kernel.exception.SystemException;
431    
432            /**
433            * Returns the last social activity setting in the ordered set where groupId = &#63; and activityType = &#63;.
434            *
435            * @param groupId the group ID
436            * @param activityType the activity type
437            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
438            * @return the last matching social activity setting
439            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
440            * @throws SystemException if a system exception occurred
441            */
442            public com.liferay.portlet.social.model.SocialActivitySetting findByG_A_Last(
443                    long groupId, int activityType,
444                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
445                    throws com.liferay.portal.kernel.exception.SystemException,
446                            com.liferay.portlet.social.NoSuchActivitySettingException;
447    
448            /**
449            * Returns the last social activity setting in the ordered set where groupId = &#63; and activityType = &#63;.
450            *
451            * @param groupId the group ID
452            * @param activityType the activity type
453            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
454            * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
455            * @throws SystemException if a system exception occurred
456            */
457            public com.liferay.portlet.social.model.SocialActivitySetting fetchByG_A_Last(
458                    long groupId, int activityType,
459                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
460                    throws com.liferay.portal.kernel.exception.SystemException;
461    
462            /**
463            * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = &#63; and activityType = &#63;.
464            *
465            * @param activitySettingId the primary key of the current social activity setting
466            * @param groupId the group ID
467            * @param activityType the activity type
468            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
469            * @return the previous, current, and next social activity setting
470            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
471            * @throws SystemException if a system exception occurred
472            */
473            public com.liferay.portlet.social.model.SocialActivitySetting[] findByG_A_PrevAndNext(
474                    long activitySettingId, long groupId, int activityType,
475                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
476                    throws com.liferay.portal.kernel.exception.SystemException,
477                            com.liferay.portlet.social.NoSuchActivitySettingException;
478    
479            /**
480            * Returns all the social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
481            *
482            * @param groupId the group ID
483            * @param classNameId the class name ID
484            * @param activityType the activity type
485            * @return the matching social activity settings
486            * @throws SystemException if a system exception occurred
487            */
488            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_C_A(
489                    long groupId, long classNameId, int activityType)
490                    throws com.liferay.portal.kernel.exception.SystemException;
491    
492            /**
493            * Returns a range of all the social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
494            *
495            * <p>
496            * 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.
497            * </p>
498            *
499            * @param groupId the group ID
500            * @param classNameId the class name ID
501            * @param activityType the activity type
502            * @param start the lower bound of the range of social activity settings
503            * @param end the upper bound of the range of social activity settings (not inclusive)
504            * @return the range of matching social activity settings
505            * @throws SystemException if a system exception occurred
506            */
507            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_C_A(
508                    long groupId, long classNameId, int activityType, int start, int end)
509                    throws com.liferay.portal.kernel.exception.SystemException;
510    
511            /**
512            * Returns an ordered range of all the social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
513            *
514            * <p>
515            * 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.
516            * </p>
517            *
518            * @param groupId the group ID
519            * @param classNameId the class name ID
520            * @param activityType the activity type
521            * @param start the lower bound of the range of social activity settings
522            * @param end the upper bound of the range of social activity settings (not inclusive)
523            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
524            * @return the ordered range of matching social activity settings
525            * @throws SystemException if a system exception occurred
526            */
527            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_C_A(
528                    long groupId, long classNameId, int activityType, int start, int end,
529                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
530                    throws com.liferay.portal.kernel.exception.SystemException;
531    
532            /**
533            * Returns the first social activity setting in the ordered set where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
534            *
535            * @param groupId the group ID
536            * @param classNameId the class name ID
537            * @param activityType the activity type
538            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
539            * @return the first matching social activity setting
540            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
541            * @throws SystemException if a system exception occurred
542            */
543            public com.liferay.portlet.social.model.SocialActivitySetting findByG_C_A_First(
544                    long groupId, long classNameId, int activityType,
545                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
546                    throws com.liferay.portal.kernel.exception.SystemException,
547                            com.liferay.portlet.social.NoSuchActivitySettingException;
548    
549            /**
550            * Returns the first social activity setting in the ordered set where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
551            *
552            * @param groupId the group ID
553            * @param classNameId the class name ID
554            * @param activityType the activity type
555            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
556            * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
557            * @throws SystemException if a system exception occurred
558            */
559            public com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_A_First(
560                    long groupId, long classNameId, int activityType,
561                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
562                    throws com.liferay.portal.kernel.exception.SystemException;
563    
564            /**
565            * Returns the last social activity setting in the ordered set where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
566            *
567            * @param groupId the group ID
568            * @param classNameId the class name ID
569            * @param activityType the activity type
570            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
571            * @return the last matching social activity setting
572            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
573            * @throws SystemException if a system exception occurred
574            */
575            public com.liferay.portlet.social.model.SocialActivitySetting findByG_C_A_Last(
576                    long groupId, long classNameId, int activityType,
577                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
578                    throws com.liferay.portal.kernel.exception.SystemException,
579                            com.liferay.portlet.social.NoSuchActivitySettingException;
580    
581            /**
582            * Returns the last social activity setting in the ordered set where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
583            *
584            * @param groupId the group ID
585            * @param classNameId the class name ID
586            * @param activityType the activity type
587            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
588            * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
589            * @throws SystemException if a system exception occurred
590            */
591            public com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_A_Last(
592                    long groupId, long classNameId, int activityType,
593                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
594                    throws com.liferay.portal.kernel.exception.SystemException;
595    
596            /**
597            * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
598            *
599            * @param activitySettingId the primary key of the current social activity setting
600            * @param groupId the group ID
601            * @param classNameId the class name ID
602            * @param activityType the activity type
603            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
604            * @return the previous, current, and next social activity setting
605            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
606            * @throws SystemException if a system exception occurred
607            */
608            public com.liferay.portlet.social.model.SocialActivitySetting[] findByG_C_A_PrevAndNext(
609                    long activitySettingId, long groupId, long classNameId,
610                    int activityType,
611                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
612                    throws com.liferay.portal.kernel.exception.SystemException,
613                            com.liferay.portlet.social.NoSuchActivitySettingException;
614    
615            /**
616            * Returns the social activity setting where groupId = &#63; and classNameId = &#63; and activityType = &#63; and name = &#63; or throws a {@link com.liferay.portlet.social.NoSuchActivitySettingException} if it could not be found.
617            *
618            * @param groupId the group ID
619            * @param classNameId the class name ID
620            * @param activityType the activity type
621            * @param name the name
622            * @return the matching social activity setting
623            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
624            * @throws SystemException if a system exception occurred
625            */
626            public com.liferay.portlet.social.model.SocialActivitySetting findByG_C_A_N(
627                    long groupId, long classNameId, int activityType, java.lang.String name)
628                    throws com.liferay.portal.kernel.exception.SystemException,
629                            com.liferay.portlet.social.NoSuchActivitySettingException;
630    
631            /**
632            * Returns the social activity setting where groupId = &#63; and classNameId = &#63; and activityType = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
633            *
634            * @param groupId the group ID
635            * @param classNameId the class name ID
636            * @param activityType the activity type
637            * @param name the name
638            * @return the matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
639            * @throws SystemException if a system exception occurred
640            */
641            public com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_A_N(
642                    long groupId, long classNameId, int activityType, java.lang.String name)
643                    throws com.liferay.portal.kernel.exception.SystemException;
644    
645            /**
646            * Returns the social activity setting where groupId = &#63; and classNameId = &#63; and activityType = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
647            *
648            * @param groupId the group ID
649            * @param classNameId the class name ID
650            * @param activityType the activity type
651            * @param name the name
652            * @param retrieveFromCache whether to use the finder cache
653            * @return the matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
654            * @throws SystemException if a system exception occurred
655            */
656            public com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_A_N(
657                    long groupId, long classNameId, int activityType,
658                    java.lang.String name, boolean retrieveFromCache)
659                    throws com.liferay.portal.kernel.exception.SystemException;
660    
661            /**
662            * Returns all the social activity settings.
663            *
664            * @return the social activity settings
665            * @throws SystemException if a system exception occurred
666            */
667            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findAll()
668                    throws com.liferay.portal.kernel.exception.SystemException;
669    
670            /**
671            * Returns a range of all the social activity settings.
672            *
673            * <p>
674            * 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.
675            * </p>
676            *
677            * @param start the lower bound of the range of social activity settings
678            * @param end the upper bound of the range of social activity settings (not inclusive)
679            * @return the range of social activity settings
680            * @throws SystemException if a system exception occurred
681            */
682            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findAll(
683                    int start, int end)
684                    throws com.liferay.portal.kernel.exception.SystemException;
685    
686            /**
687            * Returns an ordered range of all the social activity settings.
688            *
689            * <p>
690            * 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.
691            * </p>
692            *
693            * @param start the lower bound of the range of social activity settings
694            * @param end the upper bound of the range of social activity settings (not inclusive)
695            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
696            * @return the ordered range of social activity settings
697            * @throws SystemException if a system exception occurred
698            */
699            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findAll(
700                    int start, int end,
701                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
702                    throws com.liferay.portal.kernel.exception.SystemException;
703    
704            /**
705            * Removes all the social activity settings where groupId = &#63; from the database.
706            *
707            * @param groupId the group ID
708            * @throws SystemException if a system exception occurred
709            */
710            public void removeByGroupId(long groupId)
711                    throws com.liferay.portal.kernel.exception.SystemException;
712    
713            /**
714            * Removes all the social activity settings where groupId = &#63; and classNameId = &#63; from the database.
715            *
716            * @param groupId the group ID
717            * @param classNameId the class name ID
718            * @throws SystemException if a system exception occurred
719            */
720            public void removeByG_C(long groupId, long classNameId)
721                    throws com.liferay.portal.kernel.exception.SystemException;
722    
723            /**
724            * Removes all the social activity settings where groupId = &#63; and activityType = &#63; from the database.
725            *
726            * @param groupId the group ID
727            * @param activityType the activity type
728            * @throws SystemException if a system exception occurred
729            */
730            public void removeByG_A(long groupId, int activityType)
731                    throws com.liferay.portal.kernel.exception.SystemException;
732    
733            /**
734            * Removes all the social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63; from the database.
735            *
736            * @param groupId the group ID
737            * @param classNameId the class name ID
738            * @param activityType the activity type
739            * @throws SystemException if a system exception occurred
740            */
741            public void removeByG_C_A(long groupId, long classNameId, int activityType)
742                    throws com.liferay.portal.kernel.exception.SystemException;
743    
744            /**
745            * Removes the social activity setting where groupId = &#63; and classNameId = &#63; and activityType = &#63; and name = &#63; from the database.
746            *
747            * @param groupId the group ID
748            * @param classNameId the class name ID
749            * @param activityType the activity type
750            * @param name the name
751            * @return the social activity setting that was removed
752            * @throws SystemException if a system exception occurred
753            */
754            public com.liferay.portlet.social.model.SocialActivitySetting removeByG_C_A_N(
755                    long groupId, long classNameId, int activityType, java.lang.String name)
756                    throws com.liferay.portal.kernel.exception.SystemException,
757                            com.liferay.portlet.social.NoSuchActivitySettingException;
758    
759            /**
760            * Removes all the social activity settings from the database.
761            *
762            * @throws SystemException if a system exception occurred
763            */
764            public void removeAll()
765                    throws com.liferay.portal.kernel.exception.SystemException;
766    
767            /**
768            * Returns the number of social activity settings where groupId = &#63;.
769            *
770            * @param groupId the group ID
771            * @return the number of matching social activity settings
772            * @throws SystemException if a system exception occurred
773            */
774            public int countByGroupId(long groupId)
775                    throws com.liferay.portal.kernel.exception.SystemException;
776    
777            /**
778            * Returns the number of social activity settings where groupId = &#63; and classNameId = &#63;.
779            *
780            * @param groupId the group ID
781            * @param classNameId the class name ID
782            * @return the number of matching social activity settings
783            * @throws SystemException if a system exception occurred
784            */
785            public int countByG_C(long groupId, long classNameId)
786                    throws com.liferay.portal.kernel.exception.SystemException;
787    
788            /**
789            * Returns the number of social activity settings where groupId = &#63; and activityType = &#63;.
790            *
791            * @param groupId the group ID
792            * @param activityType the activity type
793            * @return the number of matching social activity settings
794            * @throws SystemException if a system exception occurred
795            */
796            public int countByG_A(long groupId, int activityType)
797                    throws com.liferay.portal.kernel.exception.SystemException;
798    
799            /**
800            * Returns the number of social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
801            *
802            * @param groupId the group ID
803            * @param classNameId the class name ID
804            * @param activityType the activity type
805            * @return the number of matching social activity settings
806            * @throws SystemException if a system exception occurred
807            */
808            public int countByG_C_A(long groupId, long classNameId, int activityType)
809                    throws com.liferay.portal.kernel.exception.SystemException;
810    
811            /**
812            * Returns the number of social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63; and name = &#63;.
813            *
814            * @param groupId the group ID
815            * @param classNameId the class name ID
816            * @param activityType the activity type
817            * @param name the name
818            * @return the number of matching social activity settings
819            * @throws SystemException if a system exception occurred
820            */
821            public int countByG_C_A_N(long groupId, long classNameId, int activityType,
822                    java.lang.String name)
823                    throws com.liferay.portal.kernel.exception.SystemException;
824    
825            /**
826            * Returns the number of social activity settings.
827            *
828            * @return the number of social activity settings
829            * @throws SystemException if a system exception occurred
830            */
831            public int countAll()
832                    throws com.liferay.portal.kernel.exception.SystemException;
833    }