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