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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.social.model.SocialActivityLimit;
022    
023    /**
024     * The persistence interface for the social activity limit service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see SocialActivityLimitPersistenceImpl
032     * @see SocialActivityLimitUtil
033     * @generated
034     */
035    @ProviderType
036    public interface SocialActivityLimitPersistence extends BasePersistence<SocialActivityLimit> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link SocialActivityLimitUtil} to access the social activity limit persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the social activity limits where groupId = &#63;.
045            *
046            * @param groupId the group ID
047            * @return the matching social activity limits
048            * @throws SystemException if a system exception occurred
049            */
050            public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByGroupId(
051                    long groupId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Returns a range of all the social activity limits where groupId = &#63;.
056            *
057            * <p>
058            * 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.SocialActivityLimitModelImpl}. 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.
059            * </p>
060            *
061            * @param groupId the group ID
062            * @param start the lower bound of the range of social activity limits
063            * @param end the upper bound of the range of social activity limits (not inclusive)
064            * @return the range of matching social activity limits
065            * @throws SystemException if a system exception occurred
066            */
067            public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByGroupId(
068                    long groupId, int start, int end)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            /**
072            * Returns an ordered range of all the social activity limits where groupId = &#63;.
073            *
074            * <p>
075            * 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.SocialActivityLimitModelImpl}. 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.
076            * </p>
077            *
078            * @param groupId the group ID
079            * @param start the lower bound of the range of social activity limits
080            * @param end the upper bound of the range of social activity limits (not inclusive)
081            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
082            * @return the ordered range of matching social activity limits
083            * @throws SystemException if a system exception occurred
084            */
085            public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByGroupId(
086                    long groupId, int start, int end,
087                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            /**
091            * Returns the first social activity limit in the ordered set where groupId = &#63;.
092            *
093            * @param groupId the group ID
094            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
095            * @return the first matching social activity limit
096            * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.social.model.SocialActivityLimit findByGroupId_First(
100                    long groupId,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.social.NoSuchActivityLimitException;
104    
105            /**
106            * Returns the first social activity limit in the ordered set where groupId = &#63;.
107            *
108            * @param groupId the group ID
109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
110            * @return the first matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
111            * @throws SystemException if a system exception occurred
112            */
113            public com.liferay.portlet.social.model.SocialActivityLimit fetchByGroupId_First(
114                    long groupId,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns the last social activity limit in the ordered set where groupId = &#63;.
120            *
121            * @param groupId the group ID
122            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
123            * @return the last matching social activity limit
124            * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found
125            * @throws SystemException if a system exception occurred
126            */
127            public com.liferay.portlet.social.model.SocialActivityLimit findByGroupId_Last(
128                    long groupId,
129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130                    throws com.liferay.portal.kernel.exception.SystemException,
131                            com.liferay.portlet.social.NoSuchActivityLimitException;
132    
133            /**
134            * Returns the last social activity limit in the ordered set where groupId = &#63;.
135            *
136            * @param groupId the group ID
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the last matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
139            * @throws SystemException if a system exception occurred
140            */
141            public com.liferay.portlet.social.model.SocialActivityLimit fetchByGroupId_Last(
142                    long groupId,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            /**
147            * Returns the social activity limits before and after the current social activity limit in the ordered set where groupId = &#63;.
148            *
149            * @param activityLimitId the primary key of the current social activity limit
150            * @param groupId the group ID
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next social activity limit
153            * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portlet.social.model.SocialActivityLimit[] findByGroupId_PrevAndNext(
157                    long activityLimitId, long groupId,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.social.NoSuchActivityLimitException;
161    
162            /**
163            * Removes all the social activity limits where groupId = &#63; from the database.
164            *
165            * @param groupId the group ID
166            * @throws SystemException if a system exception occurred
167            */
168            public void removeByGroupId(long groupId)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Returns the number of social activity limits where groupId = &#63;.
173            *
174            * @param groupId the group ID
175            * @return the number of matching social activity limits
176            * @throws SystemException if a system exception occurred
177            */
178            public int countByGroupId(long groupId)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns all the social activity limits where userId = &#63;.
183            *
184            * @param userId the user ID
185            * @return the matching social activity limits
186            * @throws SystemException if a system exception occurred
187            */
188            public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByUserId(
189                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
190    
191            /**
192            * Returns a range of all the social activity limits where userId = &#63;.
193            *
194            * <p>
195            * 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.SocialActivityLimitModelImpl}. 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.
196            * </p>
197            *
198            * @param userId the user ID
199            * @param start the lower bound of the range of social activity limits
200            * @param end the upper bound of the range of social activity limits (not inclusive)
201            * @return the range of matching social activity limits
202            * @throws SystemException if a system exception occurred
203            */
204            public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByUserId(
205                    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 limits where 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.SocialActivityLimitModelImpl}. 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 userId the user ID
216            * @param start the lower bound of the range of social activity limits
217            * @param end the upper bound of the range of social activity limits (not inclusive)
218            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
219            * @return the ordered range of matching social activity limits
220            * @throws SystemException if a system exception occurred
221            */
222            public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByUserId(
223                    long userId, int start, int end,
224                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225                    throws com.liferay.portal.kernel.exception.SystemException;
226    
227            /**
228            * Returns the first social activity limit in the ordered set where userId = &#63;.
229            *
230            * @param userId the user ID
231            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
232            * @return the first matching social activity limit
233            * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found
234            * @throws SystemException if a system exception occurred
235            */
236            public com.liferay.portlet.social.model.SocialActivityLimit findByUserId_First(
237                    long userId,
238                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239                    throws com.liferay.portal.kernel.exception.SystemException,
240                            com.liferay.portlet.social.NoSuchActivityLimitException;
241    
242            /**
243            * Returns the first social activity limit in the ordered set where userId = &#63;.
244            *
245            * @param userId the user ID
246            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
247            * @return the first matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
248            * @throws SystemException if a system exception occurred
249            */
250            public com.liferay.portlet.social.model.SocialActivityLimit fetchByUserId_First(
251                    long userId,
252                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
253                    throws com.liferay.portal.kernel.exception.SystemException;
254    
255            /**
256            * Returns the last social activity limit in the ordered set where userId = &#63;.
257            *
258            * @param userId the user ID
259            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
260            * @return the last matching social activity limit
261            * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found
262            * @throws SystemException if a system exception occurred
263            */
264            public com.liferay.portlet.social.model.SocialActivityLimit findByUserId_Last(
265                    long userId,
266                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
267                    throws com.liferay.portal.kernel.exception.SystemException,
268                            com.liferay.portlet.social.NoSuchActivityLimitException;
269    
270            /**
271            * Returns the last social activity limit in the ordered set where userId = &#63;.
272            *
273            * @param userId the user ID
274            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
275            * @return the last matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
276            * @throws SystemException if a system exception occurred
277            */
278            public com.liferay.portlet.social.model.SocialActivityLimit fetchByUserId_Last(
279                    long userId,
280                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
281                    throws com.liferay.portal.kernel.exception.SystemException;
282    
283            /**
284            * Returns the social activity limits before and after the current social activity limit in the ordered set where userId = &#63;.
285            *
286            * @param activityLimitId the primary key of the current social activity limit
287            * @param userId the user ID
288            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
289            * @return the previous, current, and next social activity limit
290            * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found
291            * @throws SystemException if a system exception occurred
292            */
293            public com.liferay.portlet.social.model.SocialActivityLimit[] findByUserId_PrevAndNext(
294                    long activityLimitId, long userId,
295                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296                    throws com.liferay.portal.kernel.exception.SystemException,
297                            com.liferay.portlet.social.NoSuchActivityLimitException;
298    
299            /**
300            * Removes all the social activity limits where userId = &#63; from the database.
301            *
302            * @param userId the user ID
303            * @throws SystemException if a system exception occurred
304            */
305            public void removeByUserId(long userId)
306                    throws com.liferay.portal.kernel.exception.SystemException;
307    
308            /**
309            * Returns the number of social activity limits where userId = &#63;.
310            *
311            * @param userId the user ID
312            * @return the number of matching social activity limits
313            * @throws SystemException if a system exception occurred
314            */
315            public int countByUserId(long userId)
316                    throws com.liferay.portal.kernel.exception.SystemException;
317    
318            /**
319            * Returns all the social activity limits where classNameId = &#63; and classPK = &#63;.
320            *
321            * @param classNameId the class name ID
322            * @param classPK the class p k
323            * @return the matching social activity limits
324            * @throws SystemException if a system exception occurred
325            */
326            public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByC_C(
327                    long classNameId, long classPK)
328                    throws com.liferay.portal.kernel.exception.SystemException;
329    
330            /**
331            * Returns a range of all the social activity limits where classNameId = &#63; and classPK = &#63;.
332            *
333            * <p>
334            * 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.SocialActivityLimitModelImpl}. 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.
335            * </p>
336            *
337            * @param classNameId the class name ID
338            * @param classPK the class p k
339            * @param start the lower bound of the range of social activity limits
340            * @param end the upper bound of the range of social activity limits (not inclusive)
341            * @return the range of matching social activity limits
342            * @throws SystemException if a system exception occurred
343            */
344            public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByC_C(
345                    long classNameId, long classPK, int start, int end)
346                    throws com.liferay.portal.kernel.exception.SystemException;
347    
348            /**
349            * Returns an ordered range of all the social activity limits where classNameId = &#63; and classPK = &#63;.
350            *
351            * <p>
352            * 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.SocialActivityLimitModelImpl}. 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.
353            * </p>
354            *
355            * @param classNameId the class name ID
356            * @param classPK the class p k
357            * @param start the lower bound of the range of social activity limits
358            * @param end the upper bound of the range of social activity limits (not inclusive)
359            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
360            * @return the ordered range of matching social activity limits
361            * @throws SystemException if a system exception occurred
362            */
363            public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByC_C(
364                    long classNameId, long classPK, int start, int end,
365                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366                    throws com.liferay.portal.kernel.exception.SystemException;
367    
368            /**
369            * Returns the first social activity limit in the ordered set where classNameId = &#63; and classPK = &#63;.
370            *
371            * @param classNameId the class name ID
372            * @param classPK the class p k
373            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
374            * @return the first matching social activity limit
375            * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found
376            * @throws SystemException if a system exception occurred
377            */
378            public com.liferay.portlet.social.model.SocialActivityLimit findByC_C_First(
379                    long classNameId, long classPK,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException,
382                            com.liferay.portlet.social.NoSuchActivityLimitException;
383    
384            /**
385            * Returns the first social activity limit in the ordered set where classNameId = &#63; and classPK = &#63;.
386            *
387            * @param classNameId the class name ID
388            * @param classPK the class p k
389            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
390            * @return the first matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
391            * @throws SystemException if a system exception occurred
392            */
393            public com.liferay.portlet.social.model.SocialActivityLimit fetchByC_C_First(
394                    long classNameId, long classPK,
395                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396                    throws com.liferay.portal.kernel.exception.SystemException;
397    
398            /**
399            * Returns the last social activity limit in the ordered set where classNameId = &#63; and classPK = &#63;.
400            *
401            * @param classNameId the class name ID
402            * @param classPK the class p k
403            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
404            * @return the last matching social activity limit
405            * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found
406            * @throws SystemException if a system exception occurred
407            */
408            public com.liferay.portlet.social.model.SocialActivityLimit findByC_C_Last(
409                    long classNameId, long classPK,
410                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
411                    throws com.liferay.portal.kernel.exception.SystemException,
412                            com.liferay.portlet.social.NoSuchActivityLimitException;
413    
414            /**
415            * Returns the last social activity limit in the ordered set where classNameId = &#63; and classPK = &#63;.
416            *
417            * @param classNameId the class name ID
418            * @param classPK the class p k
419            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
420            * @return the last matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
421            * @throws SystemException if a system exception occurred
422            */
423            public com.liferay.portlet.social.model.SocialActivityLimit fetchByC_C_Last(
424                    long classNameId, long classPK,
425                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
426                    throws com.liferay.portal.kernel.exception.SystemException;
427    
428            /**
429            * Returns the social activity limits before and after the current social activity limit in the ordered set where classNameId = &#63; and classPK = &#63;.
430            *
431            * @param activityLimitId the primary key of the current social activity limit
432            * @param classNameId the class name ID
433            * @param classPK the class p k
434            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
435            * @return the previous, current, and next social activity limit
436            * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found
437            * @throws SystemException if a system exception occurred
438            */
439            public com.liferay.portlet.social.model.SocialActivityLimit[] findByC_C_PrevAndNext(
440                    long activityLimitId, long classNameId, long classPK,
441                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
442                    throws com.liferay.portal.kernel.exception.SystemException,
443                            com.liferay.portlet.social.NoSuchActivityLimitException;
444    
445            /**
446            * Removes all the social activity limits where classNameId = &#63; and classPK = &#63; from the database.
447            *
448            * @param classNameId the class name ID
449            * @param classPK the class p k
450            * @throws SystemException if a system exception occurred
451            */
452            public void removeByC_C(long classNameId, long classPK)
453                    throws com.liferay.portal.kernel.exception.SystemException;
454    
455            /**
456            * Returns the number of social activity limits where classNameId = &#63; and classPK = &#63;.
457            *
458            * @param classNameId the class name ID
459            * @param classPK the class p k
460            * @return the number of matching social activity limits
461            * @throws SystemException if a system exception occurred
462            */
463            public int countByC_C(long classNameId, long classPK)
464                    throws com.liferay.portal.kernel.exception.SystemException;
465    
466            /**
467            * Returns the social activity limit where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and activityType = &#63; and activityCounterName = &#63; or throws a {@link com.liferay.portlet.social.NoSuchActivityLimitException} if it could not be found.
468            *
469            * @param groupId the group ID
470            * @param userId the user ID
471            * @param classNameId the class name ID
472            * @param classPK the class p k
473            * @param activityType the activity type
474            * @param activityCounterName the activity counter name
475            * @return the matching social activity limit
476            * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found
477            * @throws SystemException if a system exception occurred
478            */
479            public com.liferay.portlet.social.model.SocialActivityLimit findByG_U_C_C_A_A(
480                    long groupId, long userId, long classNameId, long classPK,
481                    int activityType, java.lang.String activityCounterName)
482                    throws com.liferay.portal.kernel.exception.SystemException,
483                            com.liferay.portlet.social.NoSuchActivityLimitException;
484    
485            /**
486            * Returns the social activity limit where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and activityType = &#63; and activityCounterName = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
487            *
488            * @param groupId the group ID
489            * @param userId the user ID
490            * @param classNameId the class name ID
491            * @param classPK the class p k
492            * @param activityType the activity type
493            * @param activityCounterName the activity counter name
494            * @return the matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
495            * @throws SystemException if a system exception occurred
496            */
497            public com.liferay.portlet.social.model.SocialActivityLimit fetchByG_U_C_C_A_A(
498                    long groupId, long userId, long classNameId, long classPK,
499                    int activityType, java.lang.String activityCounterName)
500                    throws com.liferay.portal.kernel.exception.SystemException;
501    
502            /**
503            * Returns the social activity limit where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and activityType = &#63; and activityCounterName = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
504            *
505            * @param groupId the group ID
506            * @param userId the user ID
507            * @param classNameId the class name ID
508            * @param classPK the class p k
509            * @param activityType the activity type
510            * @param activityCounterName the activity counter name
511            * @param retrieveFromCache whether to use the finder cache
512            * @return the matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
513            * @throws SystemException if a system exception occurred
514            */
515            public com.liferay.portlet.social.model.SocialActivityLimit fetchByG_U_C_C_A_A(
516                    long groupId, long userId, long classNameId, long classPK,
517                    int activityType, java.lang.String activityCounterName,
518                    boolean retrieveFromCache)
519                    throws com.liferay.portal.kernel.exception.SystemException;
520    
521            /**
522            * Removes the social activity limit where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and activityType = &#63; and activityCounterName = &#63; from the database.
523            *
524            * @param groupId the group ID
525            * @param userId the user ID
526            * @param classNameId the class name ID
527            * @param classPK the class p k
528            * @param activityType the activity type
529            * @param activityCounterName the activity counter name
530            * @return the social activity limit that was removed
531            * @throws SystemException if a system exception occurred
532            */
533            public com.liferay.portlet.social.model.SocialActivityLimit removeByG_U_C_C_A_A(
534                    long groupId, long userId, long classNameId, long classPK,
535                    int activityType, java.lang.String activityCounterName)
536                    throws com.liferay.portal.kernel.exception.SystemException,
537                            com.liferay.portlet.social.NoSuchActivityLimitException;
538    
539            /**
540            * Returns the number of social activity limits where groupId = &#63; and userId = &#63; and classNameId = &#63; and classPK = &#63; and activityType = &#63; and activityCounterName = &#63;.
541            *
542            * @param groupId the group ID
543            * @param userId the user ID
544            * @param classNameId the class name ID
545            * @param classPK the class p k
546            * @param activityType the activity type
547            * @param activityCounterName the activity counter name
548            * @return the number of matching social activity limits
549            * @throws SystemException if a system exception occurred
550            */
551            public int countByG_U_C_C_A_A(long groupId, long userId, long classNameId,
552                    long classPK, int activityType, java.lang.String activityCounterName)
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            /**
556            * Caches the social activity limit in the entity cache if it is enabled.
557            *
558            * @param socialActivityLimit the social activity limit
559            */
560            public void cacheResult(
561                    com.liferay.portlet.social.model.SocialActivityLimit socialActivityLimit);
562    
563            /**
564            * Caches the social activity limits in the entity cache if it is enabled.
565            *
566            * @param socialActivityLimits the social activity limits
567            */
568            public void cacheResult(
569                    java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> socialActivityLimits);
570    
571            /**
572            * Creates a new social activity limit with the primary key. Does not add the social activity limit to the database.
573            *
574            * @param activityLimitId the primary key for the new social activity limit
575            * @return the new social activity limit
576            */
577            public com.liferay.portlet.social.model.SocialActivityLimit create(
578                    long activityLimitId);
579    
580            /**
581            * Removes the social activity limit with the primary key from the database. Also notifies the appropriate model listeners.
582            *
583            * @param activityLimitId the primary key of the social activity limit
584            * @return the social activity limit that was removed
585            * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found
586            * @throws SystemException if a system exception occurred
587            */
588            public com.liferay.portlet.social.model.SocialActivityLimit remove(
589                    long activityLimitId)
590                    throws com.liferay.portal.kernel.exception.SystemException,
591                            com.liferay.portlet.social.NoSuchActivityLimitException;
592    
593            public com.liferay.portlet.social.model.SocialActivityLimit updateImpl(
594                    com.liferay.portlet.social.model.SocialActivityLimit socialActivityLimit)
595                    throws com.liferay.portal.kernel.exception.SystemException;
596    
597            /**
598            * Returns the social activity limit with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityLimitException} if it could not be found.
599            *
600            * @param activityLimitId the primary key of the social activity limit
601            * @return the social activity limit
602            * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found
603            * @throws SystemException if a system exception occurred
604            */
605            public com.liferay.portlet.social.model.SocialActivityLimit findByPrimaryKey(
606                    long activityLimitId)
607                    throws com.liferay.portal.kernel.exception.SystemException,
608                            com.liferay.portlet.social.NoSuchActivityLimitException;
609    
610            /**
611            * Returns the social activity limit with the primary key or returns <code>null</code> if it could not be found.
612            *
613            * @param activityLimitId the primary key of the social activity limit
614            * @return the social activity limit, or <code>null</code> if a social activity limit with the primary key could not be found
615            * @throws SystemException if a system exception occurred
616            */
617            public com.liferay.portlet.social.model.SocialActivityLimit fetchByPrimaryKey(
618                    long activityLimitId)
619                    throws com.liferay.portal.kernel.exception.SystemException;
620    
621            /**
622            * Returns all the social activity limits.
623            *
624            * @return the social activity limits
625            * @throws SystemException if a system exception occurred
626            */
627            public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findAll()
628                    throws com.liferay.portal.kernel.exception.SystemException;
629    
630            /**
631            * Returns a range of all the social activity limits.
632            *
633            * <p>
634            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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.SocialActivityLimitModelImpl}. 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.
635            * </p>
636            *
637            * @param start the lower bound of the range of social activity limits
638            * @param end the upper bound of the range of social activity limits (not inclusive)
639            * @return the range of social activity limits
640            * @throws SystemException if a system exception occurred
641            */
642            public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findAll(
643                    int start, int end)
644                    throws com.liferay.portal.kernel.exception.SystemException;
645    
646            /**
647            * Returns an ordered range of all the social activity limits.
648            *
649            * <p>
650            * 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.SocialActivityLimitModelImpl}. 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.
651            * </p>
652            *
653            * @param start the lower bound of the range of social activity limits
654            * @param end the upper bound of the range of social activity limits (not inclusive)
655            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
656            * @return the ordered range of social activity limits
657            * @throws SystemException if a system exception occurred
658            */
659            public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findAll(
660                    int start, int end,
661                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
662                    throws com.liferay.portal.kernel.exception.SystemException;
663    
664            /**
665            * Removes all the social activity limits from the database.
666            *
667            * @throws SystemException if a system exception occurred
668            */
669            public void removeAll()
670                    throws com.liferay.portal.kernel.exception.SystemException;
671    
672            /**
673            * Returns the number of social activity limits.
674            *
675            * @return the number of social activity limits
676            * @throws SystemException if a system exception occurred
677            */
678            public int countAll()
679                    throws com.liferay.portal.kernel.exception.SystemException;
680    }