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