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