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