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