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