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