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