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