001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.social.model.SocialActivityCounter;
020    
021    /**
022     * The persistence interface for the social activity counter service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see SocialActivityCounterPersistenceImpl
030     * @see SocialActivityCounterUtil
031     * @generated
032     */
033    public interface SocialActivityCounterPersistence extends BasePersistence<SocialActivityCounter> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * 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.
038             */
039    
040            /**
041            * Caches the social activity counter in the entity cache if it is enabled.
042            *
043            * @param socialActivityCounter the social activity counter
044            */
045            public void cacheResult(
046                    com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter);
047    
048            /**
049            * Caches the social activity counters in the entity cache if it is enabled.
050            *
051            * @param socialActivityCounters the social activity counters
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> socialActivityCounters);
055    
056            /**
057            * Creates a new social activity counter with the primary key. Does not add the social activity counter to the database.
058            *
059            * @param activityCounterId the primary key for the new social activity counter
060            * @return the new social activity counter
061            */
062            public com.liferay.portlet.social.model.SocialActivityCounter create(
063                    long activityCounterId);
064    
065            /**
066            * Removes the social activity counter with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param activityCounterId the primary key of the social activity counter
069            * @return the social activity counter that was removed
070            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.social.model.SocialActivityCounter remove(
074                    long activityCounterId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.social.NoSuchActivityCounterException;
077    
078            public com.liferay.portlet.social.model.SocialActivityCounter updateImpl(
079                    com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter,
080                    boolean merge)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * Returns the social activity counter with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityCounterException} if it could not be found.
085            *
086            * @param activityCounterId the primary key of the social activity counter
087            * @return the social activity counter
088            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found
089            * @throws SystemException if a system exception occurred
090            */
091            public com.liferay.portlet.social.model.SocialActivityCounter findByPrimaryKey(
092                    long activityCounterId)
093                    throws com.liferay.portal.kernel.exception.SystemException,
094                            com.liferay.portlet.social.NoSuchActivityCounterException;
095    
096            /**
097            * Returns the social activity counter with the primary key or returns <code>null</code> if it could not be found.
098            *
099            * @param activityCounterId the primary key of the social activity counter
100            * @return the social activity counter, or <code>null</code> if a social activity counter with the primary key could not be found
101            * @throws SystemException if a system exception occurred
102            */
103            public com.liferay.portlet.social.model.SocialActivityCounter fetchByPrimaryKey(
104                    long activityCounterId)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            /**
108            * Returns all the social activity counters where classNameId = &#63; and classPK = &#63;.
109            *
110            * @param classNameId the class name ID
111            * @param classPK the class p k
112            * @return the matching social activity counters
113            * @throws SystemException if a system exception occurred
114            */
115            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C(
116                    long classNameId, long classPK)
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            /**
120            * Returns a range of all the social activity counters where classNameId = &#63; and classPK = &#63;.
121            *
122            * <p>
123            * 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.
124            * </p>
125            *
126            * @param classNameId the class name ID
127            * @param classPK the class p k
128            * @param start the lower bound of the range of social activity counters
129            * @param end the upper bound of the range of social activity counters (not inclusive)
130            * @return the range of matching social activity counters
131            * @throws SystemException if a system exception occurred
132            */
133            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C(
134                    long classNameId, long classPK, int start, int end)
135                    throws com.liferay.portal.kernel.exception.SystemException;
136    
137            /**
138            * Returns an ordered range of all the social activity counters where classNameId = &#63; and classPK = &#63;.
139            *
140            * <p>
141            * 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.
142            * </p>
143            *
144            * @param classNameId the class name ID
145            * @param classPK the class p k
146            * @param start the lower bound of the range of social activity counters
147            * @param end the upper bound of the range of social activity counters (not inclusive)
148            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
149            * @return the ordered range of matching social activity counters
150            * @throws SystemException if a system exception occurred
151            */
152            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C(
153                    long classNameId, long classPK, int start, int end,
154                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155                    throws com.liferay.portal.kernel.exception.SystemException;
156    
157            /**
158            * Returns the first social activity counter in the ordered set where classNameId = &#63; and classPK = &#63;.
159            *
160            * <p>
161            * 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.
162            * </p>
163            *
164            * @param classNameId the class name ID
165            * @param classPK the class p k
166            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
167            * @return the first matching social activity counter
168            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found
169            * @throws SystemException if a system exception occurred
170            */
171            public com.liferay.portlet.social.model.SocialActivityCounter findByC_C_First(
172                    long classNameId, long classPK,
173                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174                    throws com.liferay.portal.kernel.exception.SystemException,
175                            com.liferay.portlet.social.NoSuchActivityCounterException;
176    
177            /**
178            * Returns the last social activity counter in the ordered set where classNameId = &#63; and classPK = &#63;.
179            *
180            * <p>
181            * 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.
182            * </p>
183            *
184            * @param classNameId the class name ID
185            * @param classPK the class p k
186            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
187            * @return the last matching social activity counter
188            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public com.liferay.portlet.social.model.SocialActivityCounter findByC_C_Last(
192                    long classNameId, long classPK,
193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194                    throws com.liferay.portal.kernel.exception.SystemException,
195                            com.liferay.portlet.social.NoSuchActivityCounterException;
196    
197            /**
198            * Returns the social activity counters before and after the current social activity counter in the ordered set where classNameId = &#63; and classPK = &#63;.
199            *
200            * <p>
201            * 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.
202            * </p>
203            *
204            * @param activityCounterId the primary key of the current social activity counter
205            * @param classNameId the class name ID
206            * @param classPK the class p k
207            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
208            * @return the previous, current, and next social activity counter
209            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found
210            * @throws SystemException if a system exception occurred
211            */
212            public com.liferay.portlet.social.model.SocialActivityCounter[] findByC_C_PrevAndNext(
213                    long activityCounterId, long classNameId, long classPK,
214                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215                    throws com.liferay.portal.kernel.exception.SystemException,
216                            com.liferay.portlet.social.NoSuchActivityCounterException;
217    
218            /**
219            * Returns all the social activity counters where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63;.
220            *
221            * @param groupId the group ID
222            * @param classNameId the class name ID
223            * @param classPK the class p k
224            * @param ownerType the owner type
225            * @return the matching social activity counters
226            * @throws SystemException if a system exception occurred
227            */
228            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O(
229                    long groupId, long classNameId, long classPK, int ownerType)
230                    throws com.liferay.portal.kernel.exception.SystemException;
231    
232            /**
233            * Returns a range of all the social activity counters where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63;.
234            *
235            * <p>
236            * 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.
237            * </p>
238            *
239            * @param groupId the group ID
240            * @param classNameId the class name ID
241            * @param classPK the class p k
242            * @param ownerType the owner type
243            * @param start the lower bound of the range of social activity counters
244            * @param end the upper bound of the range of social activity counters (not inclusive)
245            * @return the range of matching social activity counters
246            * @throws SystemException if a system exception occurred
247            */
248            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O(
249                    long groupId, long classNameId, long classPK, int ownerType, int start,
250                    int end) throws com.liferay.portal.kernel.exception.SystemException;
251    
252            /**
253            * Returns an ordered range of all the social activity counters where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63;.
254            *
255            * <p>
256            * 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.
257            * </p>
258            *
259            * @param groupId the group ID
260            * @param classNameId the class name ID
261            * @param classPK the class p k
262            * @param ownerType the owner type
263            * @param start the lower bound of the range of social activity counters
264            * @param end the upper bound of the range of social activity counters (not inclusive)
265            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
266            * @return the ordered range of matching social activity counters
267            * @throws SystemException if a system exception occurred
268            */
269            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O(
270                    long groupId, long classNameId, long classPK, int ownerType, int start,
271                    int end,
272                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273                    throws com.liferay.portal.kernel.exception.SystemException;
274    
275            /**
276            * Returns the first social activity counter in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63;.
277            *
278            * <p>
279            * 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.
280            * </p>
281            *
282            * @param groupId the group ID
283            * @param classNameId the class name ID
284            * @param classPK the class p k
285            * @param ownerType the owner type
286            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
287            * @return the first matching social activity counter
288            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found
289            * @throws SystemException if a system exception occurred
290            */
291            public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_O_First(
292                    long groupId, long classNameId, long classPK, int ownerType,
293                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294                    throws com.liferay.portal.kernel.exception.SystemException,
295                            com.liferay.portlet.social.NoSuchActivityCounterException;
296    
297            /**
298            * Returns the last social activity counter in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63;.
299            *
300            * <p>
301            * 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.
302            * </p>
303            *
304            * @param groupId the group ID
305            * @param classNameId the class name ID
306            * @param classPK the class p k
307            * @param ownerType the owner type
308            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
309            * @return the last matching social activity counter
310            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found
311            * @throws SystemException if a system exception occurred
312            */
313            public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_O_Last(
314                    long groupId, long classNameId, long classPK, int ownerType,
315                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
316                    throws com.liferay.portal.kernel.exception.SystemException,
317                            com.liferay.portlet.social.NoSuchActivityCounterException;
318    
319            /**
320            * 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;.
321            *
322            * <p>
323            * 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.
324            * </p>
325            *
326            * @param activityCounterId the primary key of the current social activity counter
327            * @param groupId the group ID
328            * @param classNameId the class name ID
329            * @param classPK the class p k
330            * @param ownerType the owner type
331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
332            * @return the previous, current, and next social activity counter
333            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found
334            * @throws SystemException if a system exception occurred
335            */
336            public com.liferay.portlet.social.model.SocialActivityCounter[] findByG_C_C_O_PrevAndNext(
337                    long activityCounterId, long groupId, long classNameId, long classPK,
338                    int ownerType,
339                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340                    throws com.liferay.portal.kernel.exception.SystemException,
341                            com.liferay.portlet.social.NoSuchActivityCounterException;
342    
343            /**
344            * 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.
345            *
346            * @param groupId the group ID
347            * @param classNameId the class name ID
348            * @param classPK the class p k
349            * @param name the name
350            * @param ownerType the owner type
351            * @param startPeriod the start period
352            * @return the matching social activity counter
353            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found
354            * @throws SystemException if a system exception occurred
355            */
356            public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_N_O_S(
357                    long groupId, long classNameId, long classPK, java.lang.String name,
358                    int ownerType, int startPeriod)
359                    throws com.liferay.portal.kernel.exception.SystemException,
360                            com.liferay.portlet.social.NoSuchActivityCounterException;
361    
362            /**
363            * 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.
364            *
365            * @param groupId the group ID
366            * @param classNameId the class name ID
367            * @param classPK the class p k
368            * @param name the name
369            * @param ownerType the owner type
370            * @param startPeriod the start period
371            * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found
372            * @throws SystemException if a system exception occurred
373            */
374            public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_S(
375                    long groupId, long classNameId, long classPK, java.lang.String name,
376                    int ownerType, int startPeriod)
377                    throws com.liferay.portal.kernel.exception.SystemException;
378    
379            /**
380            * 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.
381            *
382            * @param groupId the group ID
383            * @param classNameId the class name ID
384            * @param classPK the class p k
385            * @param name the name
386            * @param ownerType the owner type
387            * @param startPeriod the start period
388            * @param retrieveFromCache whether to use the finder cache
389            * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found
390            * @throws SystemException if a system exception occurred
391            */
392            public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_S(
393                    long groupId, long classNameId, long classPK, java.lang.String name,
394                    int ownerType, int startPeriod, boolean retrieveFromCache)
395                    throws com.liferay.portal.kernel.exception.SystemException;
396    
397            /**
398            * 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.
399            *
400            * @param groupId the group ID
401            * @param classNameId the class name ID
402            * @param classPK the class p k
403            * @param name the name
404            * @param ownerType the owner type
405            * @param endPeriod the end period
406            * @return the matching social activity counter
407            * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found
408            * @throws SystemException if a system exception occurred
409            */
410            public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_N_O_E(
411                    long groupId, long classNameId, long classPK, java.lang.String name,
412                    int ownerType, int endPeriod)
413                    throws com.liferay.portal.kernel.exception.SystemException,
414                            com.liferay.portlet.social.NoSuchActivityCounterException;
415    
416            /**
417            * 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.
418            *
419            * @param groupId the group ID
420            * @param classNameId the class name ID
421            * @param classPK the class p k
422            * @param name the name
423            * @param ownerType the owner type
424            * @param endPeriod the end period
425            * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found
426            * @throws SystemException if a system exception occurred
427            */
428            public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_E(
429                    long groupId, long classNameId, long classPK, java.lang.String name,
430                    int ownerType, int endPeriod)
431                    throws com.liferay.portal.kernel.exception.SystemException;
432    
433            /**
434            * 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.
435            *
436            * @param groupId the group ID
437            * @param classNameId the class name ID
438            * @param classPK the class p k
439            * @param name the name
440            * @param ownerType the owner type
441            * @param endPeriod the end period
442            * @param retrieveFromCache whether to use the finder cache
443            * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found
444            * @throws SystemException if a system exception occurred
445            */
446            public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_E(
447                    long groupId, long classNameId, long classPK, java.lang.String name,
448                    int ownerType, int endPeriod, boolean retrieveFromCache)
449                    throws com.liferay.portal.kernel.exception.SystemException;
450    
451            /**
452            * Returns all the social activity counters.
453            *
454            * @return the social activity counters
455            * @throws SystemException if a system exception occurred
456            */
457            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll()
458                    throws com.liferay.portal.kernel.exception.SystemException;
459    
460            /**
461            * Returns a range of all the social activity counters.
462            *
463            * <p>
464            * 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.
465            * </p>
466            *
467            * @param start the lower bound of the range of social activity counters
468            * @param end the upper bound of the range of social activity counters (not inclusive)
469            * @return the range of social activity counters
470            * @throws SystemException if a system exception occurred
471            */
472            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll(
473                    int start, int end)
474                    throws com.liferay.portal.kernel.exception.SystemException;
475    
476            /**
477            * Returns an ordered range of all the social activity counters.
478            *
479            * <p>
480            * 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.
481            * </p>
482            *
483            * @param start the lower bound of the range of social activity counters
484            * @param end the upper bound of the range of social activity counters (not inclusive)
485            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
486            * @return the ordered range of social activity counters
487            * @throws SystemException if a system exception occurred
488            */
489            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll(
490                    int start, int end,
491                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * Removes all the social activity counters where classNameId = &#63; and classPK = &#63; from the database.
496            *
497            * @param classNameId the class name ID
498            * @param classPK the class p k
499            * @throws SystemException if a system exception occurred
500            */
501            public void removeByC_C(long classNameId, long classPK)
502                    throws com.liferay.portal.kernel.exception.SystemException;
503    
504            /**
505            * Removes all the social activity counters where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63; from the database.
506            *
507            * @param groupId the group ID
508            * @param classNameId the class name ID
509            * @param classPK the class p k
510            * @param ownerType the owner type
511            * @throws SystemException if a system exception occurred
512            */
513            public void removeByG_C_C_O(long groupId, long classNameId, long classPK,
514                    int ownerType)
515                    throws com.liferay.portal.kernel.exception.SystemException;
516    
517            /**
518            * 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.
519            *
520            * @param groupId the group ID
521            * @param classNameId the class name ID
522            * @param classPK the class p k
523            * @param name the name
524            * @param ownerType the owner type
525            * @param startPeriod the start period
526            * @throws SystemException if a system exception occurred
527            */
528            public void removeByG_C_C_N_O_S(long groupId, long classNameId,
529                    long classPK, java.lang.String name, int ownerType, int startPeriod)
530                    throws com.liferay.portal.kernel.exception.SystemException,
531                            com.liferay.portlet.social.NoSuchActivityCounterException;
532    
533            /**
534            * 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.
535            *
536            * @param groupId the group ID
537            * @param classNameId the class name ID
538            * @param classPK the class p k
539            * @param name the name
540            * @param ownerType the owner type
541            * @param endPeriod the end period
542            * @throws SystemException if a system exception occurred
543            */
544            public void removeByG_C_C_N_O_E(long groupId, long classNameId,
545                    long classPK, java.lang.String name, int ownerType, int endPeriod)
546                    throws com.liferay.portal.kernel.exception.SystemException,
547                            com.liferay.portlet.social.NoSuchActivityCounterException;
548    
549            /**
550            * Removes all the social activity counters from the database.
551            *
552            * @throws SystemException if a system exception occurred
553            */
554            public void removeAll()
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * Returns the number of social activity counters where classNameId = &#63; and classPK = &#63;.
559            *
560            * @param classNameId the class name ID
561            * @param classPK the class p k
562            * @return the number of matching social activity counters
563            * @throws SystemException if a system exception occurred
564            */
565            public int countByC_C(long classNameId, long classPK)
566                    throws com.liferay.portal.kernel.exception.SystemException;
567    
568            /**
569            * Returns the number of social activity counters where groupId = &#63; and classNameId = &#63; and classPK = &#63; and ownerType = &#63;.
570            *
571            * @param groupId the group ID
572            * @param classNameId the class name ID
573            * @param classPK the class p k
574            * @param ownerType the owner type
575            * @return the number of matching social activity counters
576            * @throws SystemException if a system exception occurred
577            */
578            public int countByG_C_C_O(long groupId, long classNameId, long classPK,
579                    int ownerType)
580                    throws com.liferay.portal.kernel.exception.SystemException;
581    
582            /**
583            * 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;.
584            *
585            * @param groupId the group ID
586            * @param classNameId the class name ID
587            * @param classPK the class p k
588            * @param name the name
589            * @param ownerType the owner type
590            * @param startPeriod the start period
591            * @return the number of matching social activity counters
592            * @throws SystemException if a system exception occurred
593            */
594            public int countByG_C_C_N_O_S(long groupId, long classNameId, long classPK,
595                    java.lang.String name, int ownerType, int startPeriod)
596                    throws com.liferay.portal.kernel.exception.SystemException;
597    
598            /**
599            * 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;.
600            *
601            * @param groupId the group ID
602            * @param classNameId the class name ID
603            * @param classPK the class p k
604            * @param name the name
605            * @param ownerType the owner type
606            * @param endPeriod the end period
607            * @return the number of matching social activity counters
608            * @throws SystemException if a system exception occurred
609            */
610            public int countByG_C_C_N_O_E(long groupId, long classNameId, long classPK,
611                    java.lang.String name, int ownerType, int endPeriod)
612                    throws com.liferay.portal.kernel.exception.SystemException;
613    
614            /**
615            * Returns the number of social activity counters.
616            *
617            * @return the number of social activity counters
618            * @throws SystemException if a system exception occurred
619            */
620            public int countAll()
621                    throws com.liferay.portal.kernel.exception.SystemException;
622    }