001    /**
002     * Copyright (c) 2000-present 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 com.liferay.portlet.social.service.persistence.impl.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            */
049            public java.util.List<SocialActivityLimit> findByGroupId(long groupId);
050    
051            /**
052            * Returns a range of all the social activity limits 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
056            * </p>
057            *
058            * @param groupId the group ID
059            * @param start the lower bound of the range of social activity limits
060            * @param end the upper bound of the range of social activity limits (not inclusive)
061            * @return the range of matching social activity limits
062            */
063            public java.util.List<SocialActivityLimit> findByGroupId(long groupId,
064                    int start, int end);
065    
066            /**
067            * Returns an ordered range of all the social activity limits where groupId = &#63;.
068            *
069            * <p>
070            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
071            * </p>
072            *
073            * @param groupId the group ID
074            * @param start the lower bound of the range of social activity limits
075            * @param end the upper bound of the range of social activity limits (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching social activity limits
078            */
079            public java.util.List<SocialActivityLimit> findByGroupId(long groupId,
080                    int start, int end,
081                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator);
082    
083            /**
084            * Returns the first social activity limit in the ordered set where groupId = &#63;.
085            *
086            * @param groupId the group ID
087            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
088            * @return the first matching social activity limit
089            * @throws NoSuchActivityLimitException if a matching social activity limit could not be found
090            */
091            public SocialActivityLimit findByGroupId_First(long groupId,
092                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator)
093                    throws com.liferay.portlet.social.NoSuchActivityLimitException;
094    
095            /**
096            * Returns the first social activity limit in the ordered set where groupId = &#63;.
097            *
098            * @param groupId the group ID
099            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
100            * @return the first matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
101            */
102            public SocialActivityLimit fetchByGroupId_First(long groupId,
103                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator);
104    
105            /**
106            * Returns the last 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 last matching social activity limit
111            * @throws NoSuchActivityLimitException if a matching social activity limit could not be found
112            */
113            public SocialActivityLimit findByGroupId_Last(long groupId,
114                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator)
115                    throws com.liferay.portlet.social.NoSuchActivityLimitException;
116    
117            /**
118            * Returns the last social activity limit in the ordered set where groupId = &#63;.
119            *
120            * @param groupId the group ID
121            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
122            * @return the last matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
123            */
124            public SocialActivityLimit fetchByGroupId_Last(long groupId,
125                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator);
126    
127            /**
128            * Returns the social activity limits before and after the current social activity limit in the ordered set where groupId = &#63;.
129            *
130            * @param activityLimitId the primary key of the current social activity limit
131            * @param groupId the group ID
132            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
133            * @return the previous, current, and next social activity limit
134            * @throws NoSuchActivityLimitException if a social activity limit with the primary key could not be found
135            */
136            public SocialActivityLimit[] findByGroupId_PrevAndNext(
137                    long activityLimitId, long groupId,
138                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator)
139                    throws com.liferay.portlet.social.NoSuchActivityLimitException;
140    
141            /**
142            * Removes all the social activity limits where groupId = &#63; from the database.
143            *
144            * @param groupId the group ID
145            */
146            public void removeByGroupId(long groupId);
147    
148            /**
149            * Returns the number of social activity limits where groupId = &#63;.
150            *
151            * @param groupId the group ID
152            * @return the number of matching social activity limits
153            */
154            public int countByGroupId(long groupId);
155    
156            /**
157            * Returns all the social activity limits where userId = &#63;.
158            *
159            * @param userId the user ID
160            * @return the matching social activity limits
161            */
162            public java.util.List<SocialActivityLimit> findByUserId(long userId);
163    
164            /**
165            * Returns a range of all the social activity limits where userId = &#63;.
166            *
167            * <p>
168            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
169            * </p>
170            *
171            * @param userId the user ID
172            * @param start the lower bound of the range of social activity limits
173            * @param end the upper bound of the range of social activity limits (not inclusive)
174            * @return the range of matching social activity limits
175            */
176            public java.util.List<SocialActivityLimit> findByUserId(long userId,
177                    int start, int end);
178    
179            /**
180            * Returns an ordered range of all the social activity limits where userId = &#63;.
181            *
182            * <p>
183            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
184            * </p>
185            *
186            * @param userId the user ID
187            * @param start the lower bound of the range of social activity limits
188            * @param end the upper bound of the range of social activity limits (not inclusive)
189            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
190            * @return the ordered range of matching social activity limits
191            */
192            public java.util.List<SocialActivityLimit> findByUserId(long userId,
193                    int start, int end,
194                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator);
195    
196            /**
197            * Returns the first social activity limit in the ordered set where userId = &#63;.
198            *
199            * @param userId the user ID
200            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
201            * @return the first matching social activity limit
202            * @throws NoSuchActivityLimitException if a matching social activity limit could not be found
203            */
204            public SocialActivityLimit findByUserId_First(long userId,
205                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator)
206                    throws com.liferay.portlet.social.NoSuchActivityLimitException;
207    
208            /**
209            * Returns the first social activity limit in the ordered set where userId = &#63;.
210            *
211            * @param userId the user ID
212            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
213            * @return the first matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
214            */
215            public SocialActivityLimit fetchByUserId_First(long userId,
216                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator);
217    
218            /**
219            * Returns the last social activity limit in the ordered set where userId = &#63;.
220            *
221            * @param userId the user ID
222            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
223            * @return the last matching social activity limit
224            * @throws NoSuchActivityLimitException if a matching social activity limit could not be found
225            */
226            public SocialActivityLimit findByUserId_Last(long userId,
227                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator)
228                    throws com.liferay.portlet.social.NoSuchActivityLimitException;
229    
230            /**
231            * Returns the last social activity limit in the ordered set where userId = &#63;.
232            *
233            * @param userId the user ID
234            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
235            * @return the last matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
236            */
237            public SocialActivityLimit fetchByUserId_Last(long userId,
238                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator);
239    
240            /**
241            * Returns the social activity limits before and after the current social activity limit in the ordered set where userId = &#63;.
242            *
243            * @param activityLimitId the primary key of the current social activity limit
244            * @param userId the user ID
245            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
246            * @return the previous, current, and next social activity limit
247            * @throws NoSuchActivityLimitException if a social activity limit with the primary key could not be found
248            */
249            public SocialActivityLimit[] findByUserId_PrevAndNext(
250                    long activityLimitId, long userId,
251                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator)
252                    throws com.liferay.portlet.social.NoSuchActivityLimitException;
253    
254            /**
255            * Removes all the social activity limits where userId = &#63; from the database.
256            *
257            * @param userId the user ID
258            */
259            public void removeByUserId(long userId);
260    
261            /**
262            * Returns the number of social activity limits where userId = &#63;.
263            *
264            * @param userId the user ID
265            * @return the number of matching social activity limits
266            */
267            public int countByUserId(long userId);
268    
269            /**
270            * Returns all the social activity limits where classNameId = &#63; and classPK = &#63;.
271            *
272            * @param classNameId the class name ID
273            * @param classPK the class p k
274            * @return the matching social activity limits
275            */
276            public java.util.List<SocialActivityLimit> findByC_C(long classNameId,
277                    long classPK);
278    
279            /**
280            * Returns a range of all the social activity limits where classNameId = &#63; and classPK = &#63;.
281            *
282            * <p>
283            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
284            * </p>
285            *
286            * @param classNameId the class name ID
287            * @param classPK the class p k
288            * @param start the lower bound of the range of social activity limits
289            * @param end the upper bound of the range of social activity limits (not inclusive)
290            * @return the range of matching social activity limits
291            */
292            public java.util.List<SocialActivityLimit> findByC_C(long classNameId,
293                    long classPK, int start, int end);
294    
295            /**
296            * Returns an ordered range of all the social activity limits where classNameId = &#63; and classPK = &#63;.
297            *
298            * <p>
299            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
300            * </p>
301            *
302            * @param classNameId the class name ID
303            * @param classPK the class p k
304            * @param start the lower bound of the range of social activity limits
305            * @param end the upper bound of the range of social activity limits (not inclusive)
306            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
307            * @return the ordered range of matching social activity limits
308            */
309            public java.util.List<SocialActivityLimit> findByC_C(long classNameId,
310                    long classPK, int start, int end,
311                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator);
312    
313            /**
314            * Returns the first social activity limit in the ordered set where classNameId = &#63; and classPK = &#63;.
315            *
316            * @param classNameId the class name ID
317            * @param classPK the class p k
318            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
319            * @return the first matching social activity limit
320            * @throws NoSuchActivityLimitException if a matching social activity limit could not be found
321            */
322            public SocialActivityLimit findByC_C_First(long classNameId, long classPK,
323                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator)
324                    throws com.liferay.portlet.social.NoSuchActivityLimitException;
325    
326            /**
327            * Returns the first social activity limit in the ordered set where classNameId = &#63; and classPK = &#63;.
328            *
329            * @param classNameId the class name ID
330            * @param classPK the class p k
331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
332            * @return the first matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
333            */
334            public SocialActivityLimit fetchByC_C_First(long classNameId, long classPK,
335                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator);
336    
337            /**
338            * Returns the last social activity limit in the ordered set where classNameId = &#63; and classPK = &#63;.
339            *
340            * @param classNameId the class name ID
341            * @param classPK the class p k
342            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
343            * @return the last matching social activity limit
344            * @throws NoSuchActivityLimitException if a matching social activity limit could not be found
345            */
346            public SocialActivityLimit findByC_C_Last(long classNameId, long classPK,
347                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator)
348                    throws com.liferay.portlet.social.NoSuchActivityLimitException;
349    
350            /**
351            * Returns the last social activity limit in the ordered set where classNameId = &#63; and classPK = &#63;.
352            *
353            * @param classNameId the class name ID
354            * @param classPK the class p k
355            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
356            * @return the last matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
357            */
358            public SocialActivityLimit fetchByC_C_Last(long classNameId, long classPK,
359                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator);
360    
361            /**
362            * Returns the social activity limits before and after the current social activity limit in the ordered set where classNameId = &#63; and classPK = &#63;.
363            *
364            * @param activityLimitId the primary key of the current social activity limit
365            * @param classNameId the class name ID
366            * @param classPK the class p k
367            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
368            * @return the previous, current, and next social activity limit
369            * @throws NoSuchActivityLimitException if a social activity limit with the primary key could not be found
370            */
371            public SocialActivityLimit[] findByC_C_PrevAndNext(long activityLimitId,
372                    long classNameId, long classPK,
373                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator)
374                    throws com.liferay.portlet.social.NoSuchActivityLimitException;
375    
376            /**
377            * Removes all the social activity limits where classNameId = &#63; and classPK = &#63; from the database.
378            *
379            * @param classNameId the class name ID
380            * @param classPK the class p k
381            */
382            public void removeByC_C(long classNameId, long classPK);
383    
384            /**
385            * Returns the number of social activity limits where classNameId = &#63; and classPK = &#63;.
386            *
387            * @param classNameId the class name ID
388            * @param classPK the class p k
389            * @return the number of matching social activity limits
390            */
391            public int countByC_C(long classNameId, long classPK);
392    
393            /**
394            * 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 NoSuchActivityLimitException} if it could not be found.
395            *
396            * @param groupId the group ID
397            * @param userId the user ID
398            * @param classNameId the class name ID
399            * @param classPK the class p k
400            * @param activityType the activity type
401            * @param activityCounterName the activity counter name
402            * @return the matching social activity limit
403            * @throws NoSuchActivityLimitException if a matching social activity limit could not be found
404            */
405            public SocialActivityLimit findByG_U_C_C_A_A(long groupId, long userId,
406                    long classNameId, long classPK, int activityType,
407                    java.lang.String activityCounterName)
408                    throws com.liferay.portlet.social.NoSuchActivityLimitException;
409    
410            /**
411            * 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.
412            *
413            * @param groupId the group ID
414            * @param userId the user ID
415            * @param classNameId the class name ID
416            * @param classPK the class p k
417            * @param activityType the activity type
418            * @param activityCounterName the activity counter name
419            * @return the matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
420            */
421            public SocialActivityLimit fetchByG_U_C_C_A_A(long groupId, long userId,
422                    long classNameId, long classPK, int activityType,
423                    java.lang.String activityCounterName);
424    
425            /**
426            * 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.
427            *
428            * @param groupId the group ID
429            * @param userId the user ID
430            * @param classNameId the class name ID
431            * @param classPK the class p k
432            * @param activityType the activity type
433            * @param activityCounterName the activity counter name
434            * @param retrieveFromCache whether to use the finder cache
435            * @return the matching social activity limit, or <code>null</code> if a matching social activity limit could not be found
436            */
437            public SocialActivityLimit fetchByG_U_C_C_A_A(long groupId, long userId,
438                    long classNameId, long classPK, int activityType,
439                    java.lang.String activityCounterName, boolean retrieveFromCache);
440    
441            /**
442            * 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.
443            *
444            * @param groupId the group ID
445            * @param userId the user ID
446            * @param classNameId the class name ID
447            * @param classPK the class p k
448            * @param activityType the activity type
449            * @param activityCounterName the activity counter name
450            * @return the social activity limit that was removed
451            */
452            public SocialActivityLimit removeByG_U_C_C_A_A(long groupId, long userId,
453                    long classNameId, long classPK, int activityType,
454                    java.lang.String activityCounterName)
455                    throws com.liferay.portlet.social.NoSuchActivityLimitException;
456    
457            /**
458            * 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;.
459            *
460            * @param groupId the group ID
461            * @param userId the user ID
462            * @param classNameId the class name ID
463            * @param classPK the class p k
464            * @param activityType the activity type
465            * @param activityCounterName the activity counter name
466            * @return the number of matching social activity limits
467            */
468            public int countByG_U_C_C_A_A(long groupId, long userId, long classNameId,
469                    long classPK, int activityType, java.lang.String activityCounterName);
470    
471            /**
472            * Caches the social activity limit in the entity cache if it is enabled.
473            *
474            * @param socialActivityLimit the social activity limit
475            */
476            public void cacheResult(SocialActivityLimit socialActivityLimit);
477    
478            /**
479            * Caches the social activity limits in the entity cache if it is enabled.
480            *
481            * @param socialActivityLimits the social activity limits
482            */
483            public void cacheResult(
484                    java.util.List<SocialActivityLimit> socialActivityLimits);
485    
486            /**
487            * Creates a new social activity limit with the primary key. Does not add the social activity limit to the database.
488            *
489            * @param activityLimitId the primary key for the new social activity limit
490            * @return the new social activity limit
491            */
492            public SocialActivityLimit create(long activityLimitId);
493    
494            /**
495            * Removes the social activity limit with the primary key from the database. Also notifies the appropriate model listeners.
496            *
497            * @param activityLimitId the primary key of the social activity limit
498            * @return the social activity limit that was removed
499            * @throws NoSuchActivityLimitException if a social activity limit with the primary key could not be found
500            */
501            public SocialActivityLimit remove(long activityLimitId)
502                    throws com.liferay.portlet.social.NoSuchActivityLimitException;
503    
504            public SocialActivityLimit updateImpl(
505                    SocialActivityLimit socialActivityLimit);
506    
507            /**
508            * Returns the social activity limit with the primary key or throws a {@link NoSuchActivityLimitException} if it could not be found.
509            *
510            * @param activityLimitId the primary key of the social activity limit
511            * @return the social activity limit
512            * @throws NoSuchActivityLimitException if a social activity limit with the primary key could not be found
513            */
514            public SocialActivityLimit findByPrimaryKey(long activityLimitId)
515                    throws com.liferay.portlet.social.NoSuchActivityLimitException;
516    
517            /**
518            * Returns the social activity limit with the primary key or returns <code>null</code> if it could not be found.
519            *
520            * @param activityLimitId the primary key of the social activity limit
521            * @return the social activity limit, or <code>null</code> if a social activity limit with the primary key could not be found
522            */
523            public SocialActivityLimit fetchByPrimaryKey(long activityLimitId);
524    
525            @Override
526            public java.util.Map<java.io.Serializable, SocialActivityLimit> fetchByPrimaryKeys(
527                    java.util.Set<java.io.Serializable> primaryKeys);
528    
529            /**
530            * Returns all the social activity limits.
531            *
532            * @return the social activity limits
533            */
534            public java.util.List<SocialActivityLimit> findAll();
535    
536            /**
537            * Returns a range of all the social activity limits.
538            *
539            * <p>
540            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
541            * </p>
542            *
543            * @param start the lower bound of the range of social activity limits
544            * @param end the upper bound of the range of social activity limits (not inclusive)
545            * @return the range of social activity limits
546            */
547            public java.util.List<SocialActivityLimit> findAll(int start, int end);
548    
549            /**
550            * Returns an ordered range of all the social activity limits.
551            *
552            * <p>
553            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
554            * </p>
555            *
556            * @param start the lower bound of the range of social activity limits
557            * @param end the upper bound of the range of social activity limits (not inclusive)
558            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
559            * @return the ordered range of social activity limits
560            */
561            public java.util.List<SocialActivityLimit> findAll(int start, int end,
562                    com.liferay.portal.kernel.util.OrderByComparator<SocialActivityLimit> orderByComparator);
563    
564            /**
565            * Removes all the social activity limits from the database.
566            */
567            public void removeAll();
568    
569            /**
570            * Returns the number of social activity limits.
571            *
572            * @return the number of social activity limits
573            */
574            public int countAll();
575    }