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