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