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.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.util.OrderByComparator;
022    import com.liferay.portal.kernel.util.ReferenceRegistry;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import com.liferay.portlet.social.model.SocialActivitySetting;
026    
027    import java.util.List;
028    
029    /**
030     * The persistence utility for the social activity setting service. This utility wraps {@link SocialActivitySettingPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
031     *
032     * <p>
033     * Caching information and settings can be found in <code>portal.properties</code>
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see SocialActivitySettingPersistence
038     * @see SocialActivitySettingPersistenceImpl
039     * @generated
040     */
041    @ProviderType
042    public class SocialActivitySettingUtil {
043            /*
044             * NOTE FOR DEVELOPERS:
045             *
046             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
047             */
048    
049            /**
050             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
051             */
052            public static void clearCache() {
053                    getPersistence().clearCache();
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
058             */
059            public static void clearCache(SocialActivitySetting socialActivitySetting) {
060                    getPersistence().clearCache(socialActivitySetting);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
065             */
066            public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
067                    return getPersistence().countWithDynamicQuery(dynamicQuery);
068            }
069    
070            /**
071             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
072             */
073            public static List<SocialActivitySetting> findWithDynamicQuery(
074                    DynamicQuery dynamicQuery) {
075                    return getPersistence().findWithDynamicQuery(dynamicQuery);
076            }
077    
078            /**
079             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
080             */
081            public static List<SocialActivitySetting> findWithDynamicQuery(
082                    DynamicQuery dynamicQuery, int start, int end) {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<SocialActivitySetting> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator<SocialActivitySetting> orderByComparator) {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
099             */
100            public static SocialActivitySetting update(
101                    SocialActivitySetting socialActivitySetting) {
102                    return getPersistence().update(socialActivitySetting);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static SocialActivitySetting update(
109                    SocialActivitySetting socialActivitySetting,
110                    ServiceContext serviceContext) {
111                    return getPersistence().update(socialActivitySetting, serviceContext);
112            }
113    
114            /**
115            * Returns all the social activity settings where groupId = &#63;.
116            *
117            * @param groupId the group ID
118            * @return the matching social activity settings
119            */
120            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByGroupId(
121                    long groupId) {
122                    return getPersistence().findByGroupId(groupId);
123            }
124    
125            /**
126            * Returns a range of all the social activity settings where groupId = &#63;.
127            *
128            * <p>
129            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
130            * </p>
131            *
132            * @param groupId the group ID
133            * @param start the lower bound of the range of social activity settings
134            * @param end the upper bound of the range of social activity settings (not inclusive)
135            * @return the range of matching social activity settings
136            */
137            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByGroupId(
138                    long groupId, int start, int end) {
139                    return getPersistence().findByGroupId(groupId, start, end);
140            }
141    
142            /**
143            * Returns an ordered range of all the social activity settings where groupId = &#63;.
144            *
145            * <p>
146            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
147            * </p>
148            *
149            * @param groupId the group ID
150            * @param start the lower bound of the range of social activity settings
151            * @param end the upper bound of the range of social activity settings (not inclusive)
152            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
153            * @return the ordered range of matching social activity settings
154            */
155            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByGroupId(
156                    long groupId, int start, int end,
157                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator) {
158                    return getPersistence()
159                                       .findByGroupId(groupId, start, end, orderByComparator);
160            }
161    
162            /**
163            * Returns the first social activity setting in the ordered set where groupId = &#63;.
164            *
165            * @param groupId the group ID
166            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
167            * @return the first matching social activity setting
168            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
169            */
170            public static com.liferay.portlet.social.model.SocialActivitySetting findByGroupId_First(
171                    long groupId,
172                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator)
173                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
174                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
175            }
176    
177            /**
178            * Returns the first social activity setting in the ordered set where groupId = &#63;.
179            *
180            * @param groupId the group ID
181            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
182            * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
183            */
184            public static com.liferay.portlet.social.model.SocialActivitySetting fetchByGroupId_First(
185                    long groupId,
186                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator) {
187                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
188            }
189    
190            /**
191            * Returns the last social activity setting in the ordered set where groupId = &#63;.
192            *
193            * @param groupId the group ID
194            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
195            * @return the last matching social activity setting
196            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
197            */
198            public static com.liferay.portlet.social.model.SocialActivitySetting findByGroupId_Last(
199                    long groupId,
200                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator)
201                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
202                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
203            }
204    
205            /**
206            * Returns the last social activity setting in the ordered set where groupId = &#63;.
207            *
208            * @param groupId the group ID
209            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
210            * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
211            */
212            public static com.liferay.portlet.social.model.SocialActivitySetting fetchByGroupId_Last(
213                    long groupId,
214                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator) {
215                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
216            }
217    
218            /**
219            * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = &#63;.
220            *
221            * @param activitySettingId the primary key of the current social activity setting
222            * @param groupId the group ID
223            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
224            * @return the previous, current, and next social activity setting
225            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
226            */
227            public static com.liferay.portlet.social.model.SocialActivitySetting[] findByGroupId_PrevAndNext(
228                    long activitySettingId, long groupId,
229                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator)
230                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
231                    return getPersistence()
232                                       .findByGroupId_PrevAndNext(activitySettingId, groupId,
233                            orderByComparator);
234            }
235    
236            /**
237            * Removes all the social activity settings where groupId = &#63; from the database.
238            *
239            * @param groupId the group ID
240            */
241            public static void removeByGroupId(long groupId) {
242                    getPersistence().removeByGroupId(groupId);
243            }
244    
245            /**
246            * Returns the number of social activity settings where groupId = &#63;.
247            *
248            * @param groupId the group ID
249            * @return the number of matching social activity settings
250            */
251            public static int countByGroupId(long groupId) {
252                    return getPersistence().countByGroupId(groupId);
253            }
254    
255            /**
256            * Returns all the social activity settings where groupId = &#63; and classNameId = &#63;.
257            *
258            * @param groupId the group ID
259            * @param classNameId the class name ID
260            * @return the matching social activity settings
261            */
262            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_C(
263                    long groupId, long classNameId) {
264                    return getPersistence().findByG_C(groupId, classNameId);
265            }
266    
267            /**
268            * Returns a range of all the social activity settings where groupId = &#63; and classNameId = &#63;.
269            *
270            * <p>
271            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
272            * </p>
273            *
274            * @param groupId the group ID
275            * @param classNameId the class name ID
276            * @param start the lower bound of the range of social activity settings
277            * @param end the upper bound of the range of social activity settings (not inclusive)
278            * @return the range of matching social activity settings
279            */
280            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_C(
281                    long groupId, long classNameId, int start, int end) {
282                    return getPersistence().findByG_C(groupId, classNameId, start, end);
283            }
284    
285            /**
286            * Returns an ordered range of all the social activity settings where groupId = &#63; and classNameId = &#63;.
287            *
288            * <p>
289            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
290            * </p>
291            *
292            * @param groupId the group ID
293            * @param classNameId the class name ID
294            * @param start the lower bound of the range of social activity settings
295            * @param end the upper bound of the range of social activity settings (not inclusive)
296            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
297            * @return the ordered range of matching social activity settings
298            */
299            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_C(
300                    long groupId, long classNameId, int start, int end,
301                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator) {
302                    return getPersistence()
303                                       .findByG_C(groupId, classNameId, start, end,
304                            orderByComparator);
305            }
306    
307            /**
308            * Returns the first social activity setting in the ordered set where groupId = &#63; and classNameId = &#63;.
309            *
310            * @param groupId the group ID
311            * @param classNameId the class name ID
312            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
313            * @return the first matching social activity setting
314            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
315            */
316            public static com.liferay.portlet.social.model.SocialActivitySetting findByG_C_First(
317                    long groupId, long classNameId,
318                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator)
319                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
320                    return getPersistence()
321                                       .findByG_C_First(groupId, classNameId, orderByComparator);
322            }
323    
324            /**
325            * Returns the first social activity setting in the ordered set where groupId = &#63; and classNameId = &#63;.
326            *
327            * @param groupId the group ID
328            * @param classNameId the class name ID
329            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
330            * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
331            */
332            public static com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_First(
333                    long groupId, long classNameId,
334                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator) {
335                    return getPersistence()
336                                       .fetchByG_C_First(groupId, classNameId, orderByComparator);
337            }
338    
339            /**
340            * Returns the last social activity setting in the ordered set where groupId = &#63; and classNameId = &#63;.
341            *
342            * @param groupId the group ID
343            * @param classNameId the class name ID
344            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
345            * @return the last matching social activity setting
346            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
347            */
348            public static com.liferay.portlet.social.model.SocialActivitySetting findByG_C_Last(
349                    long groupId, long classNameId,
350                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator)
351                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
352                    return getPersistence()
353                                       .findByG_C_Last(groupId, classNameId, orderByComparator);
354            }
355    
356            /**
357            * Returns the last social activity setting in the ordered set where groupId = &#63; and classNameId = &#63;.
358            *
359            * @param groupId the group ID
360            * @param classNameId the class name ID
361            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
362            * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
363            */
364            public static com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_Last(
365                    long groupId, long classNameId,
366                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator) {
367                    return getPersistence()
368                                       .fetchByG_C_Last(groupId, classNameId, orderByComparator);
369            }
370    
371            /**
372            * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = &#63; and classNameId = &#63;.
373            *
374            * @param activitySettingId the primary key of the current social activity setting
375            * @param groupId the group ID
376            * @param classNameId the class name ID
377            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
378            * @return the previous, current, and next social activity setting
379            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
380            */
381            public static com.liferay.portlet.social.model.SocialActivitySetting[] findByG_C_PrevAndNext(
382                    long activitySettingId, long groupId, long classNameId,
383                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator)
384                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
385                    return getPersistence()
386                                       .findByG_C_PrevAndNext(activitySettingId, groupId,
387                            classNameId, orderByComparator);
388            }
389    
390            /**
391            * Removes all the social activity settings where groupId = &#63; and classNameId = &#63; from the database.
392            *
393            * @param groupId the group ID
394            * @param classNameId the class name ID
395            */
396            public static void removeByG_C(long groupId, long classNameId) {
397                    getPersistence().removeByG_C(groupId, classNameId);
398            }
399    
400            /**
401            * Returns the number of social activity settings where groupId = &#63; and classNameId = &#63;.
402            *
403            * @param groupId the group ID
404            * @param classNameId the class name ID
405            * @return the number of matching social activity settings
406            */
407            public static int countByG_C(long groupId, long classNameId) {
408                    return getPersistence().countByG_C(groupId, classNameId);
409            }
410    
411            /**
412            * Returns all the social activity settings where groupId = &#63; and activityType = &#63;.
413            *
414            * @param groupId the group ID
415            * @param activityType the activity type
416            * @return the matching social activity settings
417            */
418            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_A(
419                    long groupId, int activityType) {
420                    return getPersistence().findByG_A(groupId, activityType);
421            }
422    
423            /**
424            * Returns a range of all the social activity settings where groupId = &#63; and activityType = &#63;.
425            *
426            * <p>
427            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
428            * </p>
429            *
430            * @param groupId the group ID
431            * @param activityType the activity type
432            * @param start the lower bound of the range of social activity settings
433            * @param end the upper bound of the range of social activity settings (not inclusive)
434            * @return the range of matching social activity settings
435            */
436            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_A(
437                    long groupId, int activityType, int start, int end) {
438                    return getPersistence().findByG_A(groupId, activityType, start, end);
439            }
440    
441            /**
442            * Returns an ordered range of all the social activity settings where groupId = &#63; and activityType = &#63;.
443            *
444            * <p>
445            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
446            * </p>
447            *
448            * @param groupId the group ID
449            * @param activityType the activity type
450            * @param start the lower bound of the range of social activity settings
451            * @param end the upper bound of the range of social activity settings (not inclusive)
452            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
453            * @return the ordered range of matching social activity settings
454            */
455            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_A(
456                    long groupId, int activityType, int start, int end,
457                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator) {
458                    return getPersistence()
459                                       .findByG_A(groupId, activityType, start, end,
460                            orderByComparator);
461            }
462    
463            /**
464            * Returns the first social activity setting in the ordered set where groupId = &#63; and activityType = &#63;.
465            *
466            * @param groupId the group ID
467            * @param activityType the activity type
468            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
469            * @return the first matching social activity setting
470            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
471            */
472            public static com.liferay.portlet.social.model.SocialActivitySetting findByG_A_First(
473                    long groupId, int activityType,
474                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator)
475                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
476                    return getPersistence()
477                                       .findByG_A_First(groupId, activityType, orderByComparator);
478            }
479    
480            /**
481            * Returns the first social activity setting in the ordered set where groupId = &#63; and activityType = &#63;.
482            *
483            * @param groupId the group ID
484            * @param activityType the activity type
485            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
486            * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
487            */
488            public static com.liferay.portlet.social.model.SocialActivitySetting fetchByG_A_First(
489                    long groupId, int activityType,
490                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator) {
491                    return getPersistence()
492                                       .fetchByG_A_First(groupId, activityType, orderByComparator);
493            }
494    
495            /**
496            * Returns the last social activity setting in the ordered set where groupId = &#63; and activityType = &#63;.
497            *
498            * @param groupId the group ID
499            * @param activityType the activity type
500            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
501            * @return the last matching social activity setting
502            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
503            */
504            public static com.liferay.portlet.social.model.SocialActivitySetting findByG_A_Last(
505                    long groupId, int activityType,
506                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator)
507                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
508                    return getPersistence()
509                                       .findByG_A_Last(groupId, activityType, orderByComparator);
510            }
511    
512            /**
513            * Returns the last social activity setting in the ordered set where groupId = &#63; and activityType = &#63;.
514            *
515            * @param groupId the group ID
516            * @param activityType the activity type
517            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
518            * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
519            */
520            public static com.liferay.portlet.social.model.SocialActivitySetting fetchByG_A_Last(
521                    long groupId, int activityType,
522                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator) {
523                    return getPersistence()
524                                       .fetchByG_A_Last(groupId, activityType, orderByComparator);
525            }
526    
527            /**
528            * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = &#63; and activityType = &#63;.
529            *
530            * @param activitySettingId the primary key of the current social activity setting
531            * @param groupId the group ID
532            * @param activityType the activity type
533            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
534            * @return the previous, current, and next social activity setting
535            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
536            */
537            public static com.liferay.portlet.social.model.SocialActivitySetting[] findByG_A_PrevAndNext(
538                    long activitySettingId, long groupId, int activityType,
539                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator)
540                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
541                    return getPersistence()
542                                       .findByG_A_PrevAndNext(activitySettingId, groupId,
543                            activityType, orderByComparator);
544            }
545    
546            /**
547            * Removes all the social activity settings where groupId = &#63; and activityType = &#63; from the database.
548            *
549            * @param groupId the group ID
550            * @param activityType the activity type
551            */
552            public static void removeByG_A(long groupId, int activityType) {
553                    getPersistence().removeByG_A(groupId, activityType);
554            }
555    
556            /**
557            * Returns the number of social activity settings where groupId = &#63; and activityType = &#63;.
558            *
559            * @param groupId the group ID
560            * @param activityType the activity type
561            * @return the number of matching social activity settings
562            */
563            public static int countByG_A(long groupId, int activityType) {
564                    return getPersistence().countByG_A(groupId, activityType);
565            }
566    
567            /**
568            * Returns all the social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
569            *
570            * @param groupId the group ID
571            * @param classNameId the class name ID
572            * @param activityType the activity type
573            * @return the matching social activity settings
574            */
575            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_C_A(
576                    long groupId, long classNameId, int activityType) {
577                    return getPersistence().findByG_C_A(groupId, classNameId, activityType);
578            }
579    
580            /**
581            * Returns a range of all the social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
582            *
583            * <p>
584            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
585            * </p>
586            *
587            * @param groupId the group ID
588            * @param classNameId the class name ID
589            * @param activityType the activity type
590            * @param start the lower bound of the range of social activity settings
591            * @param end the upper bound of the range of social activity settings (not inclusive)
592            * @return the range of matching social activity settings
593            */
594            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_C_A(
595                    long groupId, long classNameId, int activityType, int start, int end) {
596                    return getPersistence()
597                                       .findByG_C_A(groupId, classNameId, activityType, start, end);
598            }
599    
600            /**
601            * Returns an ordered range of all the social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
602            *
603            * <p>
604            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
605            * </p>
606            *
607            * @param groupId the group ID
608            * @param classNameId the class name ID
609            * @param activityType the activity type
610            * @param start the lower bound of the range of social activity settings
611            * @param end the upper bound of the range of social activity settings (not inclusive)
612            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
613            * @return the ordered range of matching social activity settings
614            */
615            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_C_A(
616                    long groupId, long classNameId, int activityType, int start, int end,
617                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator) {
618                    return getPersistence()
619                                       .findByG_C_A(groupId, classNameId, activityType, start, end,
620                            orderByComparator);
621            }
622    
623            /**
624            * Returns the first social activity setting in the ordered set where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
625            *
626            * @param groupId the group ID
627            * @param classNameId the class name ID
628            * @param activityType the activity type
629            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
630            * @return the first matching social activity setting
631            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
632            */
633            public static com.liferay.portlet.social.model.SocialActivitySetting findByG_C_A_First(
634                    long groupId, long classNameId, int activityType,
635                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator)
636                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
637                    return getPersistence()
638                                       .findByG_C_A_First(groupId, classNameId, activityType,
639                            orderByComparator);
640            }
641    
642            /**
643            * Returns the first social activity setting in the ordered set where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
644            *
645            * @param groupId the group ID
646            * @param classNameId the class name ID
647            * @param activityType the activity type
648            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
649            * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
650            */
651            public static com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_A_First(
652                    long groupId, long classNameId, int activityType,
653                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator) {
654                    return getPersistence()
655                                       .fetchByG_C_A_First(groupId, classNameId, activityType,
656                            orderByComparator);
657            }
658    
659            /**
660            * Returns the last social activity setting in the ordered set where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
661            *
662            * @param groupId the group ID
663            * @param classNameId the class name ID
664            * @param activityType the activity type
665            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
666            * @return the last matching social activity setting
667            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
668            */
669            public static com.liferay.portlet.social.model.SocialActivitySetting findByG_C_A_Last(
670                    long groupId, long classNameId, int activityType,
671                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator)
672                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
673                    return getPersistence()
674                                       .findByG_C_A_Last(groupId, classNameId, activityType,
675                            orderByComparator);
676            }
677    
678            /**
679            * Returns the last social activity setting in the ordered set where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
680            *
681            * @param groupId the group ID
682            * @param classNameId the class name ID
683            * @param activityType the activity type
684            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
685            * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
686            */
687            public static com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_A_Last(
688                    long groupId, long classNameId, int activityType,
689                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator) {
690                    return getPersistence()
691                                       .fetchByG_C_A_Last(groupId, classNameId, activityType,
692                            orderByComparator);
693            }
694    
695            /**
696            * 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;.
697            *
698            * @param activitySettingId the primary key of the current social activity setting
699            * @param groupId the group ID
700            * @param classNameId the class name ID
701            * @param activityType the activity type
702            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
703            * @return the previous, current, and next social activity setting
704            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
705            */
706            public static com.liferay.portlet.social.model.SocialActivitySetting[] findByG_C_A_PrevAndNext(
707                    long activitySettingId, long groupId, long classNameId,
708                    int activityType,
709                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator)
710                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
711                    return getPersistence()
712                                       .findByG_C_A_PrevAndNext(activitySettingId, groupId,
713                            classNameId, activityType, orderByComparator);
714            }
715    
716            /**
717            * Removes all the social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63; from the database.
718            *
719            * @param groupId the group ID
720            * @param classNameId the class name ID
721            * @param activityType the activity type
722            */
723            public static void removeByG_C_A(long groupId, long classNameId,
724                    int activityType) {
725                    getPersistence().removeByG_C_A(groupId, classNameId, activityType);
726            }
727    
728            /**
729            * Returns the number of social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
730            *
731            * @param groupId the group ID
732            * @param classNameId the class name ID
733            * @param activityType the activity type
734            * @return the number of matching social activity settings
735            */
736            public static int countByG_C_A(long groupId, long classNameId,
737                    int activityType) {
738                    return getPersistence().countByG_C_A(groupId, classNameId, activityType);
739            }
740    
741            /**
742            * Returns the social activity setting where groupId = &#63; and classNameId = &#63; and activityType = &#63; and name = &#63; or throws a {@link com.liferay.portlet.social.NoSuchActivitySettingException} if it could not be found.
743            *
744            * @param groupId the group ID
745            * @param classNameId the class name ID
746            * @param activityType the activity type
747            * @param name the name
748            * @return the matching social activity setting
749            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
750            */
751            public static com.liferay.portlet.social.model.SocialActivitySetting findByG_C_A_N(
752                    long groupId, long classNameId, int activityType, java.lang.String name)
753                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
754                    return getPersistence()
755                                       .findByG_C_A_N(groupId, classNameId, activityType, name);
756            }
757    
758            /**
759            * 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.
760            *
761            * @param groupId the group ID
762            * @param classNameId the class name ID
763            * @param activityType the activity type
764            * @param name the name
765            * @return the matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
766            */
767            public static com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_A_N(
768                    long groupId, long classNameId, int activityType, java.lang.String name) {
769                    return getPersistence()
770                                       .fetchByG_C_A_N(groupId, classNameId, activityType, name);
771            }
772    
773            /**
774            * 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.
775            *
776            * @param groupId the group ID
777            * @param classNameId the class name ID
778            * @param activityType the activity type
779            * @param name the name
780            * @param retrieveFromCache whether to use the finder cache
781            * @return the matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
782            */
783            public static com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_A_N(
784                    long groupId, long classNameId, int activityType,
785                    java.lang.String name, boolean retrieveFromCache) {
786                    return getPersistence()
787                                       .fetchByG_C_A_N(groupId, classNameId, activityType, name,
788                            retrieveFromCache);
789            }
790    
791            /**
792            * Removes the social activity setting where groupId = &#63; and classNameId = &#63; and activityType = &#63; and name = &#63; from the database.
793            *
794            * @param groupId the group ID
795            * @param classNameId the class name ID
796            * @param activityType the activity type
797            * @param name the name
798            * @return the social activity setting that was removed
799            */
800            public static com.liferay.portlet.social.model.SocialActivitySetting removeByG_C_A_N(
801                    long groupId, long classNameId, int activityType, java.lang.String name)
802                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
803                    return getPersistence()
804                                       .removeByG_C_A_N(groupId, classNameId, activityType, name);
805            }
806    
807            /**
808            * Returns the number of social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63; and name = &#63;.
809            *
810            * @param groupId the group ID
811            * @param classNameId the class name ID
812            * @param activityType the activity type
813            * @param name the name
814            * @return the number of matching social activity settings
815            */
816            public static int countByG_C_A_N(long groupId, long classNameId,
817                    int activityType, java.lang.String name) {
818                    return getPersistence()
819                                       .countByG_C_A_N(groupId, classNameId, activityType, name);
820            }
821    
822            /**
823            * Caches the social activity setting in the entity cache if it is enabled.
824            *
825            * @param socialActivitySetting the social activity setting
826            */
827            public static void cacheResult(
828                    com.liferay.portlet.social.model.SocialActivitySetting socialActivitySetting) {
829                    getPersistence().cacheResult(socialActivitySetting);
830            }
831    
832            /**
833            * Caches the social activity settings in the entity cache if it is enabled.
834            *
835            * @param socialActivitySettings the social activity settings
836            */
837            public static void cacheResult(
838                    java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> socialActivitySettings) {
839                    getPersistence().cacheResult(socialActivitySettings);
840            }
841    
842            /**
843            * Creates a new social activity setting with the primary key. Does not add the social activity setting to the database.
844            *
845            * @param activitySettingId the primary key for the new social activity setting
846            * @return the new social activity setting
847            */
848            public static com.liferay.portlet.social.model.SocialActivitySetting create(
849                    long activitySettingId) {
850                    return getPersistence().create(activitySettingId);
851            }
852    
853            /**
854            * Removes the social activity setting with the primary key from the database. Also notifies the appropriate model listeners.
855            *
856            * @param activitySettingId the primary key of the social activity setting
857            * @return the social activity setting that was removed
858            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
859            */
860            public static com.liferay.portlet.social.model.SocialActivitySetting remove(
861                    long activitySettingId)
862                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
863                    return getPersistence().remove(activitySettingId);
864            }
865    
866            public static com.liferay.portlet.social.model.SocialActivitySetting updateImpl(
867                    com.liferay.portlet.social.model.SocialActivitySetting socialActivitySetting) {
868                    return getPersistence().updateImpl(socialActivitySetting);
869            }
870    
871            /**
872            * Returns the social activity setting with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivitySettingException} if it could not be found.
873            *
874            * @param activitySettingId the primary key of the social activity setting
875            * @return the social activity setting
876            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
877            */
878            public static com.liferay.portlet.social.model.SocialActivitySetting findByPrimaryKey(
879                    long activitySettingId)
880                    throws com.liferay.portlet.social.NoSuchActivitySettingException {
881                    return getPersistence().findByPrimaryKey(activitySettingId);
882            }
883    
884            /**
885            * Returns the social activity setting with the primary key or returns <code>null</code> if it could not be found.
886            *
887            * @param activitySettingId the primary key of the social activity setting
888            * @return the social activity setting, or <code>null</code> if a social activity setting with the primary key could not be found
889            */
890            public static com.liferay.portlet.social.model.SocialActivitySetting fetchByPrimaryKey(
891                    long activitySettingId) {
892                    return getPersistence().fetchByPrimaryKey(activitySettingId);
893            }
894    
895            public static java.util.Map<java.io.Serializable, com.liferay.portlet.social.model.SocialActivitySetting> fetchByPrimaryKeys(
896                    java.util.Set<java.io.Serializable> primaryKeys) {
897                    return getPersistence().fetchByPrimaryKeys(primaryKeys);
898            }
899    
900            /**
901            * Returns all the social activity settings.
902            *
903            * @return the social activity settings
904            */
905            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findAll() {
906                    return getPersistence().findAll();
907            }
908    
909            /**
910            * Returns a range of all the social activity settings.
911            *
912            * <p>
913            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
914            * </p>
915            *
916            * @param start the lower bound of the range of social activity settings
917            * @param end the upper bound of the range of social activity settings (not inclusive)
918            * @return the range of social activity settings
919            */
920            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findAll(
921                    int start, int end) {
922                    return getPersistence().findAll(start, end);
923            }
924    
925            /**
926            * Returns an ordered range of all the social activity settings.
927            *
928            * <p>
929            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
930            * </p>
931            *
932            * @param start the lower bound of the range of social activity settings
933            * @param end the upper bound of the range of social activity settings (not inclusive)
934            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
935            * @return the ordered range of social activity settings
936            */
937            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findAll(
938                    int start, int end,
939                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.social.model.SocialActivitySetting> orderByComparator) {
940                    return getPersistence().findAll(start, end, orderByComparator);
941            }
942    
943            /**
944            * Removes all the social activity settings from the database.
945            */
946            public static void removeAll() {
947                    getPersistence().removeAll();
948            }
949    
950            /**
951            * Returns the number of social activity settings.
952            *
953            * @return the number of social activity settings
954            */
955            public static int countAll() {
956                    return getPersistence().countAll();
957            }
958    
959            public static SocialActivitySettingPersistence getPersistence() {
960                    if (_persistence == null) {
961                            _persistence = (SocialActivitySettingPersistence)PortalBeanLocatorUtil.locate(SocialActivitySettingPersistence.class.getName());
962    
963                            ReferenceRegistry.registerReference(SocialActivitySettingUtil.class,
964                                    "_persistence");
965                    }
966    
967                    return _persistence;
968            }
969    
970            /**
971             * @deprecated As of 6.2.0
972             */
973            @Deprecated
974            public void setPersistence(SocialActivitySettingPersistence persistence) {
975            }
976    
977            private static SocialActivitySettingPersistence _persistence;
978    }