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