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