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