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.SocialActivityCounter;
022    
023    /**
024     * The persistence interface for the social activity counter 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 SocialActivityCounterPersistenceImpl
032     * @see SocialActivityCounterUtil
033     * @generated
034     */
035    @ProviderType
036    public interface SocialActivityCounterPersistence extends BasePersistence<SocialActivityCounter> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link SocialActivityCounterUtil} to access the social activity counter persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the social activity counters where groupId = &#63;.
045            *
046            * @param groupId the group ID
047            * @return the matching social activity counters
048            * @throws SystemException if a system exception occurred
049            */
050            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByGroupId(
051                    long groupId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Returns a range of all the social activity counters 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.SocialActivityCounterModelImpl}. 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 counters
063            * @param end the upper bound of the range of social activity counters (not inclusive)
064            * @return the range of matching social activity counters
065            * @throws SystemException if a system exception occurred
066            */
067            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> 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 counters 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.SocialActivityCounterModelImpl}. 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 counters
080            * @param end the upper bound of the range of social activity counters (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 counters
083            * @throws SystemException if a system exception occurred
084            */
085            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> 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 counter 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 counter
096            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.social.model.SocialActivityCounter 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.NoSuchActivityCounterException;
104    
105            /**
106            * Returns the first social activity counter 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 counter, or <code>null</code> if a matching social activity counter could not be found
111            * @throws SystemException if a system exception occurred
112            */
113            public com.liferay.portlet.social.model.SocialActivityCounter 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 counter 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 counter
124            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found
125            * @throws SystemException if a system exception occurred
126            */
127            public com.liferay.portlet.social.model.SocialActivityCounter 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.NoSuchActivityCounterException;
132    
133            /**
134            * Returns the last social activity counter 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 counter, or <code>null</code> if a matching social activity counter could not be found
139            * @throws SystemException if a system exception occurred
140            */
141            public com.liferay.portlet.social.model.SocialActivityCounter 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 counters before and after the current social activity counter in the ordered set where groupId = &#63;.
148            *
149            * @param activityCounterId the primary key of the current social activity counter
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 counter
153            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portlet.social.model.SocialActivityCounter[] findByGroupId_PrevAndNext(
157                    long activityCounterId, long groupId,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.social.NoSuchActivityCounterException;
161    
162            /**
163            * Removes all the social activity counters 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 counters where groupId = &#63;.
173            *
174            * @param groupId the group ID
175            * @return the number of matching social activity counters
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 counters where classNameId = &#63; and classPK = &#63;.
183            *
184            * @param classNameId the class name ID
185            * @param classPK the class p k
186            * @return the matching social activity counters
187            * @throws SystemException if a system exception occurred
188            */
189            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C(
190                    long classNameId, long classPK)
191                    throws com.liferay.portal.kernel.exception.SystemException;
192    
193            /**
194            * Returns a range of all the social activity counters where classNameId = &#63; and classPK = &#63;.
195            *
196            * <p>
197            * 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.SocialActivityCounterModelImpl}. 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.
198            * </p>
199            *
200            * @param classNameId the class name ID
201            * @param classPK the class p k
202            * @param start the lower bound of the range of social activity counters
203            * @param end the upper bound of the range of social activity counters (not inclusive)
204            * @return the range of matching social activity counters
205            * @throws SystemException if a system exception occurred
206            */
207            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C(
208                    long classNameId, long classPK, int start, int end)
209                    throws com.liferay.portal.kernel.exception.SystemException;
210    
211            /**
212            * Returns an ordered range of all the social activity counters where classNameId = &#63; and classPK = &#63;.
213            *
214            * <p>
215            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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.SocialActivityCounterModelImpl}. 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.
216            * </p>
217            *
218            * @param classNameId the class name ID
219            * @param classPK the class p k
220            * @param start the lower bound of the range of social activity counters
221            * @param end the upper bound of the range of social activity counters (not inclusive)
222            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
223            * @return the ordered range of matching social activity counters
224            * @throws SystemException if a system exception occurred
225            */
226            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C(
227                    long classNameId, long classPK, int start, int end,
228                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229                    throws com.liferay.portal.kernel.exception.SystemException;
230    
231            /**
232            * Returns the first social activity counter in the ordered set where classNameId = &#63; and classPK = &#63;.
233            *
234            * @param classNameId the class name ID
235            * @param classPK the class p k
236            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
237            * @return the first matching social activity counter
238            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found
239            * @throws SystemException if a system exception occurred
240            */
241            public com.liferay.portlet.social.model.SocialActivityCounter findByC_C_First(
242                    long classNameId, long classPK,
243                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244                    throws com.liferay.portal.kernel.exception.SystemException,
245                            com.liferay.portlet.social.NoSuchActivityCounterException;
246    
247            /**
248            * Returns the first social activity counter in the ordered set where classNameId = &#63; and classPK = &#63;.
249            *
250            * @param classNameId the class name ID
251            * @param classPK the class p k
252            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
253            * @return the first matching social activity counter, or <code>null</code> if a matching social activity counter could not be found
254            * @throws SystemException if a system exception occurred
255            */
256            public com.liferay.portlet.social.model.SocialActivityCounter fetchByC_C_First(
257                    long classNameId, long classPK,
258                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259                    throws com.liferay.portal.kernel.exception.SystemException;
260    
261            /**
262            * Returns the last social activity counter in the ordered set where classNameId = &#63; and classPK = &#63;.
263            *
264            * @param classNameId the class name ID
265            * @param classPK the class p k
266            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
267            * @return the last matching social activity counter
268            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found
269            * @throws SystemException if a system exception occurred
270            */
271            public com.liferay.portlet.social.model.SocialActivityCounter findByC_C_Last(
272                    long classNameId, long classPK,
273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274                    throws com.liferay.portal.kernel.exception.SystemException,
275                            com.liferay.portlet.social.NoSuchActivityCounterException;
276    
277            /**
278            * Returns the last social activity counter in the ordered set where classNameId = &#63; and classPK = &#63;.
279            *
280            * @param classNameId the class name ID
281            * @param classPK the class p k
282            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
283            * @return the last matching social activity counter, or <code>null</code> if a matching social activity counter could not be found
284            * @throws SystemException if a system exception occurred
285            */
286            public com.liferay.portlet.social.model.SocialActivityCounter fetchByC_C_Last(
287                    long classNameId, long classPK,
288                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289                    throws com.liferay.portal.kernel.exception.SystemException;
290    
291            /**
292            * Returns the social activity counters before and after the current social activity counter in the ordered set where classNameId = &#63; and classPK = &#63;.
293            *
294            * @param activityCounterId the primary key of the current social activity counter
295            * @param classNameId the class name ID
296            * @param classPK the class p k
297            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
298            * @return the previous, current, and next social activity counter
299            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found
300            * @throws SystemException if a system exception occurred
301            */
302            public com.liferay.portlet.social.model.SocialActivityCounter[] findByC_C_PrevAndNext(
303                    long activityCounterId, long classNameId, long classPK,
304                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305                    throws com.liferay.portal.kernel.exception.SystemException,
306                            com.liferay.portlet.social.NoSuchActivityCounterException;
307    
308            /**
309            * Removes all the social activity counters where classNameId = &#63; and classPK = &#63; from the database.
310            *
311            * @param classNameId the class name ID
312            * @param classPK the class p k
313            * @throws SystemException if a system exception occurred
314            */
315            public void removeByC_C(long classNameId, long classPK)
316                    throws com.liferay.portal.kernel.exception.SystemException;
317    
318            /**
319            * Returns the number of social activity counters where classNameId = &#63; and classPK = &#63;.
320            *
321            * @param classNameId the class name ID
322            * @param classPK the class p k
323            * @return the number of matching social activity counters
324            * @throws SystemException if a system exception occurred
325            */
326            public int countByC_C(long classNameId, long classPK)
327                    throws com.liferay.portal.kernel.exception.SystemException;
328    
329            /**
330            * Returns all the social activity counters where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63;.
331            *
332            * @param groupId the group ID
333            * @param classNameId the class name ID
334            * @param classPK the class p k
335            * @param ownerType the owner type
336            * @return the matching social activity counters
337            * @throws SystemException if a system exception occurred
338            */
339            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O(
340                    long groupId, long classNameId, long classPK, int ownerType)
341                    throws com.liferay.portal.kernel.exception.SystemException;
342    
343            /**
344            * Returns a range of all the social activity counters where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63;.
345            *
346            * <p>
347            * 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.SocialActivityCounterModelImpl}. 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.
348            * </p>
349            *
350            * @param groupId the group ID
351            * @param classNameId the class name ID
352            * @param classPK the class p k
353            * @param ownerType the owner type
354            * @param start the lower bound of the range of social activity counters
355            * @param end the upper bound of the range of social activity counters (not inclusive)
356            * @return the range of matching social activity counters
357            * @throws SystemException if a system exception occurred
358            */
359            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O(
360                    long groupId, long classNameId, long classPK, int ownerType, int start,
361                    int end) throws com.liferay.portal.kernel.exception.SystemException;
362    
363            /**
364            * Returns an ordered range of all the social activity counters where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63;.
365            *
366            * <p>
367            * 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.SocialActivityCounterModelImpl}. 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.
368            * </p>
369            *
370            * @param groupId the group ID
371            * @param classNameId the class name ID
372            * @param classPK the class p k
373            * @param ownerType the owner type
374            * @param start the lower bound of the range of social activity counters
375            * @param end the upper bound of the range of social activity counters (not inclusive)
376            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
377            * @return the ordered range of matching social activity counters
378            * @throws SystemException if a system exception occurred
379            */
380            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O(
381                    long groupId, long classNameId, long classPK, int ownerType, int start,
382                    int end,
383                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
384                    throws com.liferay.portal.kernel.exception.SystemException;
385    
386            /**
387            * Returns the first social activity counter in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63;.
388            *
389            * @param groupId the group ID
390            * @param classNameId the class name ID
391            * @param classPK the class p k
392            * @param ownerType the owner type
393            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
394            * @return the first matching social activity counter
395            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found
396            * @throws SystemException if a system exception occurred
397            */
398            public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_O_First(
399                    long groupId, long classNameId, long classPK, int ownerType,
400                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
401                    throws com.liferay.portal.kernel.exception.SystemException,
402                            com.liferay.portlet.social.NoSuchActivityCounterException;
403    
404            /**
405            * Returns the first social activity counter in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63;.
406            *
407            * @param groupId the group ID
408            * @param classNameId the class name ID
409            * @param classPK the class p k
410            * @param ownerType the owner type
411            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
412            * @return the first matching social activity counter, or <code>null</code> if a matching social activity counter could not be found
413            * @throws SystemException if a system exception occurred
414            */
415            public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_O_First(
416                    long groupId, long classNameId, long classPK, int ownerType,
417                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418                    throws com.liferay.portal.kernel.exception.SystemException;
419    
420            /**
421            * Returns the last social activity counter in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63;.
422            *
423            * @param groupId the group ID
424            * @param classNameId the class name ID
425            * @param classPK the class p k
426            * @param ownerType the owner type
427            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
428            * @return the last matching social activity counter
429            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found
430            * @throws SystemException if a system exception occurred
431            */
432            public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_O_Last(
433                    long groupId, long classNameId, long classPK, int ownerType,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.kernel.exception.SystemException,
436                            com.liferay.portlet.social.NoSuchActivityCounterException;
437    
438            /**
439            * Returns the last social activity counter in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63;.
440            *
441            * @param groupId the group ID
442            * @param classNameId the class name ID
443            * @param classPK the class p k
444            * @param ownerType the owner type
445            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
446            * @return the last matching social activity counter, or <code>null</code> if a matching social activity counter could not be found
447            * @throws SystemException if a system exception occurred
448            */
449            public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_O_Last(
450                    long groupId, long classNameId, long classPK, int ownerType,
451                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
452                    throws com.liferay.portal.kernel.exception.SystemException;
453    
454            /**
455            * Returns the social activity counters before and after the current social activity counter in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63;.
456            *
457            * @param activityCounterId the primary key of the current social activity counter
458            * @param groupId the group ID
459            * @param classNameId the class name ID
460            * @param classPK the class p k
461            * @param ownerType the owner type
462            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
463            * @return the previous, current, and next social activity counter
464            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found
465            * @throws SystemException if a system exception occurred
466            */
467            public com.liferay.portlet.social.model.SocialActivityCounter[] findByG_C_C_O_PrevAndNext(
468                    long activityCounterId, long groupId, long classNameId, long classPK,
469                    int ownerType,
470                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
471                    throws com.liferay.portal.kernel.exception.SystemException,
472                            com.liferay.portlet.social.NoSuchActivityCounterException;
473    
474            /**
475            * Removes all the social activity counters where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63; from the database.
476            *
477            * @param groupId the group ID
478            * @param classNameId the class name ID
479            * @param classPK the class p k
480            * @param ownerType the owner type
481            * @throws SystemException if a system exception occurred
482            */
483            public void removeByG_C_C_O(long groupId, long classNameId, long classPK,
484                    int ownerType)
485                    throws com.liferay.portal.kernel.exception.SystemException;
486    
487            /**
488            * Returns the number of social activity counters where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63;.
489            *
490            * @param groupId the group ID
491            * @param classNameId the class name ID
492            * @param classPK the class p k
493            * @param ownerType the owner type
494            * @return the number of matching social activity counters
495            * @throws SystemException if a system exception occurred
496            */
497            public int countByG_C_C_O(long groupId, long classNameId, long classPK,
498                    int ownerType)
499                    throws com.liferay.portal.kernel.exception.SystemException;
500    
501            /**
502            * Returns the social activity counter where groupId = &#63; and classNameId = &#63; and classPK = &#63; and name = &#63; and ownerType = &#63; and startPeriod = &#63; or throws a {@link com.liferay.portlet.social.NoSuchActivityCounterException} if it could not be found.
503            *
504            * @param groupId the group ID
505            * @param classNameId the class name ID
506            * @param classPK the class p k
507            * @param name the name
508            * @param ownerType the owner type
509            * @param startPeriod the start period
510            * @return the matching social activity counter
511            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found
512            * @throws SystemException if a system exception occurred
513            */
514            public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_N_O_S(
515                    long groupId, long classNameId, long classPK, java.lang.String name,
516                    int ownerType, int startPeriod)
517                    throws com.liferay.portal.kernel.exception.SystemException,
518                            com.liferay.portlet.social.NoSuchActivityCounterException;
519    
520            /**
521            * Returns the social activity counter where groupId = &#63; and classNameId = &#63; and classPK = &#63; and name = &#63; and ownerType = &#63; and startPeriod = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
522            *
523            * @param groupId the group ID
524            * @param classNameId the class name ID
525            * @param classPK the class p k
526            * @param name the name
527            * @param ownerType the owner type
528            * @param startPeriod the start period
529            * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found
530            * @throws SystemException if a system exception occurred
531            */
532            public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_S(
533                    long groupId, long classNameId, long classPK, java.lang.String name,
534                    int ownerType, int startPeriod)
535                    throws com.liferay.portal.kernel.exception.SystemException;
536    
537            /**
538            * Returns the social activity counter where groupId = &#63; and classNameId = &#63; and classPK = &#63; and name = &#63; and ownerType = &#63; and startPeriod = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
539            *
540            * @param groupId the group ID
541            * @param classNameId the class name ID
542            * @param classPK the class p k
543            * @param name the name
544            * @param ownerType the owner type
545            * @param startPeriod the start period
546            * @param retrieveFromCache whether to use the finder cache
547            * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found
548            * @throws SystemException if a system exception occurred
549            */
550            public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_S(
551                    long groupId, long classNameId, long classPK, java.lang.String name,
552                    int ownerType, int startPeriod, boolean retrieveFromCache)
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            /**
556            * Removes the social activity counter where groupId = &#63; and classNameId = &#63; and classPK = &#63; and name = &#63; and ownerType = &#63; and startPeriod = &#63; from the database.
557            *
558            * @param groupId the group ID
559            * @param classNameId the class name ID
560            * @param classPK the class p k
561            * @param name the name
562            * @param ownerType the owner type
563            * @param startPeriod the start period
564            * @return the social activity counter that was removed
565            * @throws SystemException if a system exception occurred
566            */
567            public com.liferay.portlet.social.model.SocialActivityCounter removeByG_C_C_N_O_S(
568                    long groupId, long classNameId, long classPK, java.lang.String name,
569                    int ownerType, int startPeriod)
570                    throws com.liferay.portal.kernel.exception.SystemException,
571                            com.liferay.portlet.social.NoSuchActivityCounterException;
572    
573            /**
574            * Returns the number of social activity counters where groupId = &#63; and classNameId = &#63; and classPK = &#63; and name = &#63; and ownerType = &#63; and startPeriod = &#63;.
575            *
576            * @param groupId the group ID
577            * @param classNameId the class name ID
578            * @param classPK the class p k
579            * @param name the name
580            * @param ownerType the owner type
581            * @param startPeriod the start period
582            * @return the number of matching social activity counters
583            * @throws SystemException if a system exception occurred
584            */
585            public int countByG_C_C_N_O_S(long groupId, long classNameId, long classPK,
586                    java.lang.String name, int ownerType, int startPeriod)
587                    throws com.liferay.portal.kernel.exception.SystemException;
588    
589            /**
590            * Returns the social activity counter where groupId = &#63; and classNameId = &#63; and classPK = &#63; and name = &#63; and ownerType = &#63; and endPeriod = &#63; or throws a {@link com.liferay.portlet.social.NoSuchActivityCounterException} if it could not be found.
591            *
592            * @param groupId the group ID
593            * @param classNameId the class name ID
594            * @param classPK the class p k
595            * @param name the name
596            * @param ownerType the owner type
597            * @param endPeriod the end period
598            * @return the matching social activity counter
599            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found
600            * @throws SystemException if a system exception occurred
601            */
602            public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_N_O_E(
603                    long groupId, long classNameId, long classPK, java.lang.String name,
604                    int ownerType, int endPeriod)
605                    throws com.liferay.portal.kernel.exception.SystemException,
606                            com.liferay.portlet.social.NoSuchActivityCounterException;
607    
608            /**
609            * Returns the social activity counter where groupId = &#63; and classNameId = &#63; and classPK = &#63; and name = &#63; and ownerType = &#63; and endPeriod = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
610            *
611            * @param groupId the group ID
612            * @param classNameId the class name ID
613            * @param classPK the class p k
614            * @param name the name
615            * @param ownerType the owner type
616            * @param endPeriod the end period
617            * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found
618            * @throws SystemException if a system exception occurred
619            */
620            public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_E(
621                    long groupId, long classNameId, long classPK, java.lang.String name,
622                    int ownerType, int endPeriod)
623                    throws com.liferay.portal.kernel.exception.SystemException;
624    
625            /**
626            * Returns the social activity counter where groupId = &#63; and classNameId = &#63; and classPK = &#63; and name = &#63; and ownerType = &#63; and endPeriod = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
627            *
628            * @param groupId the group ID
629            * @param classNameId the class name ID
630            * @param classPK the class p k
631            * @param name the name
632            * @param ownerType the owner type
633            * @param endPeriod the end period
634            * @param retrieveFromCache whether to use the finder cache
635            * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found
636            * @throws SystemException if a system exception occurred
637            */
638            public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_E(
639                    long groupId, long classNameId, long classPK, java.lang.String name,
640                    int ownerType, int endPeriod, boolean retrieveFromCache)
641                    throws com.liferay.portal.kernel.exception.SystemException;
642    
643            /**
644            * Removes the social activity counter where groupId = &#63; and classNameId = &#63; and classPK = &#63; and name = &#63; and ownerType = &#63; and endPeriod = &#63; from the database.
645            *
646            * @param groupId the group ID
647            * @param classNameId the class name ID
648            * @param classPK the class p k
649            * @param name the name
650            * @param ownerType the owner type
651            * @param endPeriod the end period
652            * @return the social activity counter that was removed
653            * @throws SystemException if a system exception occurred
654            */
655            public com.liferay.portlet.social.model.SocialActivityCounter removeByG_C_C_N_O_E(
656                    long groupId, long classNameId, long classPK, java.lang.String name,
657                    int ownerType, int endPeriod)
658                    throws com.liferay.portal.kernel.exception.SystemException,
659                            com.liferay.portlet.social.NoSuchActivityCounterException;
660    
661            /**
662            * Returns the number of social activity counters where groupId = &#63; and classNameId = &#63; and classPK = &#63; and name = &#63; and ownerType = &#63; and endPeriod = &#63;.
663            *
664            * @param groupId the group ID
665            * @param classNameId the class name ID
666            * @param classPK the class p k
667            * @param name the name
668            * @param ownerType the owner type
669            * @param endPeriod the end period
670            * @return the number of matching social activity counters
671            * @throws SystemException if a system exception occurred
672            */
673            public int countByG_C_C_N_O_E(long groupId, long classNameId, long classPK,
674                    java.lang.String name, int ownerType, int endPeriod)
675                    throws com.liferay.portal.kernel.exception.SystemException;
676    
677            /**
678            * Caches the social activity counter in the entity cache if it is enabled.
679            *
680            * @param socialActivityCounter the social activity counter
681            */
682            public void cacheResult(
683                    com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter);
684    
685            /**
686            * Caches the social activity counters in the entity cache if it is enabled.
687            *
688            * @param socialActivityCounters the social activity counters
689            */
690            public void cacheResult(
691                    java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> socialActivityCounters);
692    
693            /**
694            * Creates a new social activity counter with the primary key. Does not add the social activity counter to the database.
695            *
696            * @param activityCounterId the primary key for the new social activity counter
697            * @return the new social activity counter
698            */
699            public com.liferay.portlet.social.model.SocialActivityCounter create(
700                    long activityCounterId);
701    
702            /**
703            * Removes the social activity counter with the primary key from the database. Also notifies the appropriate model listeners.
704            *
705            * @param activityCounterId the primary key of the social activity counter
706            * @return the social activity counter that was removed
707            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found
708            * @throws SystemException if a system exception occurred
709            */
710            public com.liferay.portlet.social.model.SocialActivityCounter remove(
711                    long activityCounterId)
712                    throws com.liferay.portal.kernel.exception.SystemException,
713                            com.liferay.portlet.social.NoSuchActivityCounterException;
714    
715            public com.liferay.portlet.social.model.SocialActivityCounter updateImpl(
716                    com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter)
717                    throws com.liferay.portal.kernel.exception.SystemException;
718    
719            /**
720            * Returns the social activity counter with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityCounterException} if it could not be found.
721            *
722            * @param activityCounterId the primary key of the social activity counter
723            * @return the social activity counter
724            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found
725            * @throws SystemException if a system exception occurred
726            */
727            public com.liferay.portlet.social.model.SocialActivityCounter findByPrimaryKey(
728                    long activityCounterId)
729                    throws com.liferay.portal.kernel.exception.SystemException,
730                            com.liferay.portlet.social.NoSuchActivityCounterException;
731    
732            /**
733            * Returns the social activity counter with the primary key or returns <code>null</code> if it could not be found.
734            *
735            * @param activityCounterId the primary key of the social activity counter
736            * @return the social activity counter, or <code>null</code> if a social activity counter with the primary key could not be found
737            * @throws SystemException if a system exception occurred
738            */
739            public com.liferay.portlet.social.model.SocialActivityCounter fetchByPrimaryKey(
740                    long activityCounterId)
741                    throws com.liferay.portal.kernel.exception.SystemException;
742    
743            /**
744            * Returns all the social activity counters.
745            *
746            * @return the social activity counters
747            * @throws SystemException if a system exception occurred
748            */
749            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll()
750                    throws com.liferay.portal.kernel.exception.SystemException;
751    
752            /**
753            * Returns a range of all the social activity counters.
754            *
755            * <p>
756            * 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.SocialActivityCounterModelImpl}. 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.
757            * </p>
758            *
759            * @param start the lower bound of the range of social activity counters
760            * @param end the upper bound of the range of social activity counters (not inclusive)
761            * @return the range of social activity counters
762            * @throws SystemException if a system exception occurred
763            */
764            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll(
765                    int start, int end)
766                    throws com.liferay.portal.kernel.exception.SystemException;
767    
768            /**
769            * Returns an ordered range of all the social activity counters.
770            *
771            * <p>
772            * 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.SocialActivityCounterModelImpl}. 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.
773            * </p>
774            *
775            * @param start the lower bound of the range of social activity counters
776            * @param end the upper bound of the range of social activity counters (not inclusive)
777            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
778            * @return the ordered range of social activity counters
779            * @throws SystemException if a system exception occurred
780            */
781            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll(
782                    int start, int end,
783                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
784                    throws com.liferay.portal.kernel.exception.SystemException;
785    
786            /**
787            * Removes all the social activity counters from the database.
788            *
789            * @throws SystemException if a system exception occurred
790            */
791            public void removeAll()
792                    throws com.liferay.portal.kernel.exception.SystemException;
793    
794            /**
795            * Returns the number of social activity counters.
796            *
797            * @return the number of social activity counters
798            * @throws SystemException if a system exception occurred
799            */
800            public int countAll()
801                    throws com.liferay.portal.kernel.exception.SystemException;
802    }