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