001    /**
002     * Copyright (c) 2000-2010 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.blogs.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.blogs.model.BlogsStatsUser;
020    
021    /**
022     * The persistence interface for the blogs stats user service.
023     *
024     * <p>
025     * Never modify or reference this interface directly. Always use {@link BlogsStatsUserUtil} to access the blogs stats user persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
026     * </p>
027     *
028     * <p>
029     * Caching information and settings can be found in <code>portal.properties</code>
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see BlogsStatsUserPersistenceImpl
034     * @see BlogsStatsUserUtil
035     * @generated
036     */
037    public interface BlogsStatsUserPersistence extends BasePersistence<BlogsStatsUser> {
038            /**
039            * Caches the blogs stats user in the entity cache if it is enabled.
040            *
041            * @param blogsStatsUser the blogs stats user to cache
042            */
043            public void cacheResult(
044                    com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser);
045    
046            /**
047            * Caches the blogs stats users in the entity cache if it is enabled.
048            *
049            * @param blogsStatsUsers the blogs stats users to cache
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> blogsStatsUsers);
053    
054            /**
055            * Creates a new blogs stats user with the primary key. Does not add the blogs stats user to the database.
056            *
057            * @param statsUserId the primary key for the new blogs stats user
058            * @return the new blogs stats user
059            */
060            public com.liferay.portlet.blogs.model.BlogsStatsUser create(
061                    long statsUserId);
062    
063            /**
064            * Removes the blogs stats user with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param statsUserId the primary key of the blogs stats user to remove
067            * @return the blogs stats user that was removed
068            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public com.liferay.portlet.blogs.model.BlogsStatsUser remove(
072                    long statsUserId)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.blogs.NoSuchStatsUserException;
075    
076            public com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl(
077                    com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
078                    boolean merge)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Finds the blogs stats user with the primary key or throws a {@link com.liferay.portlet.blogs.NoSuchStatsUserException} if it could not be found.
083            *
084            * @param statsUserId the primary key of the blogs stats user to find
085            * @return the blogs stats user
086            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey(
090                    long statsUserId)
091                    throws com.liferay.portal.kernel.exception.SystemException,
092                            com.liferay.portlet.blogs.NoSuchStatsUserException;
093    
094            /**
095            * Finds the blogs stats user with the primary key or returns <code>null</code> if it could not be found.
096            *
097            * @param statsUserId the primary key of the blogs stats user to find
098            * @return the blogs stats user, or <code>null</code> if a blogs stats user with the primary key could not be found
099            * @throws SystemException if a system exception occurred
100            */
101            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByPrimaryKey(
102                    long statsUserId)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Finds all the blogs stats users where groupId = &#63;.
107            *
108            * @param groupId the group id to search with
109            * @return the matching blogs stats users
110            * @throws SystemException if a system exception occurred
111            */
112            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
113                    long groupId)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Finds a range of all the blogs stats users where groupId = &#63;.
118            *
119            * <p>
120            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
121            * </p>
122            *
123            * @param groupId the group id to search with
124            * @param start the lower bound of the range of blogs stats users to return
125            * @param end the upper bound of the range of blogs stats users to return (not inclusive)
126            * @return the range of matching blogs stats users
127            * @throws SystemException if a system exception occurred
128            */
129            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
130                    long groupId, int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Finds an ordered range of all the blogs stats users where groupId = &#63;.
135            *
136            * <p>
137            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
138            * </p>
139            *
140            * @param groupId the group id to search with
141            * @param start the lower bound of the range of blogs stats users to return
142            * @param end the upper bound of the range of blogs stats users to return (not inclusive)
143            * @param orderByComparator the comparator to order the results by
144            * @return the ordered range of matching blogs stats users
145            * @throws SystemException if a system exception occurred
146            */
147            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
148                    long groupId, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            /**
153            * Finds the first blogs stats user in the ordered set where groupId = &#63;.
154            *
155            * <p>
156            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
157            * </p>
158            *
159            * @param groupId the group id to search with
160            * @param orderByComparator the comparator to order the set by
161            * @return the first matching blogs stats user
162            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
163            * @throws SystemException if a system exception occurred
164            */
165            public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First(
166                    long groupId,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException,
169                            com.liferay.portlet.blogs.NoSuchStatsUserException;
170    
171            /**
172            * Finds the last blogs stats user in the ordered set where groupId = &#63;.
173            *
174            * <p>
175            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
176            * </p>
177            *
178            * @param groupId the group id to search with
179            * @param orderByComparator the comparator to order the set by
180            * @return the last matching blogs stats user
181            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
185                    long groupId,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.blogs.NoSuchStatsUserException;
189    
190            /**
191            * Finds the blogs stats users before and after the current blogs stats user in the ordered set where groupId = &#63;.
192            *
193            * <p>
194            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
195            * </p>
196            *
197            * @param statsUserId the primary key of the current blogs stats user
198            * @param groupId the group id to search with
199            * @param orderByComparator the comparator to order the set by
200            * @return the previous, current, and next blogs stats user
201            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext(
205                    long statsUserId, long groupId,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException,
208                            com.liferay.portlet.blogs.NoSuchStatsUserException;
209    
210            /**
211            * Finds all the blogs stats users where userId = &#63;.
212            *
213            * @param userId the user id to search with
214            * @return the matching blogs stats users
215            * @throws SystemException if a system exception occurred
216            */
217            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
218                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Finds a range of all the blogs stats users where userId = &#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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
225            * </p>
226            *
227            * @param userId the user id to search with
228            * @param start the lower bound of the range of blogs stats users to return
229            * @param end the upper bound of the range of blogs stats users to return (not inclusive)
230            * @return the range of matching blogs stats users
231            * @throws SystemException if a system exception occurred
232            */
233            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
234                    long userId, int start, int end)
235                    throws com.liferay.portal.kernel.exception.SystemException;
236    
237            /**
238            * Finds an ordered range of all the blogs stats users where userId = &#63;.
239            *
240            * <p>
241            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
242            * </p>
243            *
244            * @param userId the user id to search with
245            * @param start the lower bound of the range of blogs stats users to return
246            * @param end the upper bound of the range of blogs stats users to return (not inclusive)
247            * @param orderByComparator the comparator to order the results by
248            * @return the ordered range of matching blogs stats users
249            * @throws SystemException if a system exception occurred
250            */
251            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
252                    long userId, int start, int end,
253                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Finds the first blogs stats user in the ordered set where userId = &#63;.
258            *
259            * <p>
260            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
261            * </p>
262            *
263            * @param userId the user id to search with
264            * @param orderByComparator the comparator to order the set by
265            * @return the first matching blogs stats user
266            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
267            * @throws SystemException if a system exception occurred
268            */
269            public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First(
270                    long userId,
271                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272                    throws com.liferay.portal.kernel.exception.SystemException,
273                            com.liferay.portlet.blogs.NoSuchStatsUserException;
274    
275            /**
276            * Finds the last blogs stats user in the ordered set where userId = &#63;.
277            *
278            * <p>
279            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
280            * </p>
281            *
282            * @param userId the user id to search with
283            * @param orderByComparator the comparator to order the set by
284            * @return the last matching blogs stats user
285            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
286            * @throws SystemException if a system exception occurred
287            */
288            public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last(
289                    long userId,
290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291                    throws com.liferay.portal.kernel.exception.SystemException,
292                            com.liferay.portlet.blogs.NoSuchStatsUserException;
293    
294            /**
295            * Finds the blogs stats users before and after the current blogs stats user in the ordered set where userId = &#63;.
296            *
297            * <p>
298            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
299            * </p>
300            *
301            * @param statsUserId the primary key of the current blogs stats user
302            * @param userId the user id to search with
303            * @param orderByComparator the comparator to order the set by
304            * @return the previous, current, and next blogs stats user
305            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
306            * @throws SystemException if a system exception occurred
307            */
308            public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext(
309                    long statsUserId, long userId,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.kernel.exception.SystemException,
312                            com.liferay.portlet.blogs.NoSuchStatsUserException;
313    
314            /**
315            * Finds the blogs stats user where groupId = &#63; and userId = &#63; or throws a {@link com.liferay.portlet.blogs.NoSuchStatsUserException} if it could not be found.
316            *
317            * @param groupId the group id to search with
318            * @param userId the user id to search with
319            * @return the matching blogs stats user
320            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
321            * @throws SystemException if a system exception occurred
322            */
323            public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U(
324                    long groupId, long userId)
325                    throws com.liferay.portal.kernel.exception.SystemException,
326                            com.liferay.portlet.blogs.NoSuchStatsUserException;
327    
328            /**
329            * Finds the blogs stats user where groupId = &#63; and userId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
330            *
331            * @param groupId the group id to search with
332            * @param userId the user id to search with
333            * @return the matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found
334            * @throws SystemException if a system exception occurred
335            */
336            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
337                    long groupId, long userId)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            /**
341            * Finds the blogs stats user where groupId = &#63; and userId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
342            *
343            * @param groupId the group id to search with
344            * @param userId the user id to search with
345            * @return the matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found
346            * @throws SystemException if a system exception occurred
347            */
348            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
349                    long groupId, long userId, boolean retrieveFromCache)
350                    throws com.liferay.portal.kernel.exception.SystemException;
351    
352            /**
353            * Finds all the blogs stats users where groupId = &#63; and entryCount &ne; &#63;.
354            *
355            * @param groupId the group id to search with
356            * @param entryCount the entry count to search with
357            * @return the matching blogs stats users
358            * @throws SystemException if a system exception occurred
359            */
360            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_NotE(
361                    long groupId, int entryCount)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * Finds a range of all the blogs stats users where groupId = &#63; and entryCount &ne; &#63;.
366            *
367            * <p>
368            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
369            * </p>
370            *
371            * @param groupId the group id to search with
372            * @param entryCount the entry count to search with
373            * @param start the lower bound of the range of blogs stats users to return
374            * @param end the upper bound of the range of blogs stats users to return (not inclusive)
375            * @return the range of matching blogs stats users
376            * @throws SystemException if a system exception occurred
377            */
378            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_NotE(
379                    long groupId, int entryCount, int start, int end)
380                    throws com.liferay.portal.kernel.exception.SystemException;
381    
382            /**
383            * Finds an ordered range of all the blogs stats users where groupId = &#63; and entryCount &ne; &#63;.
384            *
385            * <p>
386            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
387            * </p>
388            *
389            * @param groupId the group id to search with
390            * @param entryCount the entry count to search with
391            * @param start the lower bound of the range of blogs stats users to return
392            * @param end the upper bound of the range of blogs stats users to return (not inclusive)
393            * @param orderByComparator the comparator to order the results by
394            * @return the ordered range of matching blogs stats users
395            * @throws SystemException if a system exception occurred
396            */
397            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_NotE(
398                    long groupId, int entryCount, int start, int end,
399                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
400                    throws com.liferay.portal.kernel.exception.SystemException;
401    
402            /**
403            * Finds the first blogs stats user in the ordered set where groupId = &#63; and entryCount &ne; &#63;.
404            *
405            * <p>
406            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
407            * </p>
408            *
409            * @param groupId the group id to search with
410            * @param entryCount the entry count to search with
411            * @param orderByComparator the comparator to order the set by
412            * @return the first matching blogs stats user
413            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
414            * @throws SystemException if a system exception occurred
415            */
416            public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_NotE_First(
417                    long groupId, int entryCount,
418                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
419                    throws com.liferay.portal.kernel.exception.SystemException,
420                            com.liferay.portlet.blogs.NoSuchStatsUserException;
421    
422            /**
423            * Finds the last blogs stats user in the ordered set where groupId = &#63; and entryCount &ne; &#63;.
424            *
425            * <p>
426            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
427            * </p>
428            *
429            * @param groupId the group id to search with
430            * @param entryCount the entry count to search with
431            * @param orderByComparator the comparator to order the set by
432            * @return the last matching blogs stats user
433            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
434            * @throws SystemException if a system exception occurred
435            */
436            public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_NotE_Last(
437                    long groupId, int entryCount,
438                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
439                    throws com.liferay.portal.kernel.exception.SystemException,
440                            com.liferay.portlet.blogs.NoSuchStatsUserException;
441    
442            /**
443            * Finds the blogs stats users before and after the current blogs stats user in the ordered set where groupId = &#63; and entryCount &ne; &#63;.
444            *
445            * <p>
446            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
447            * </p>
448            *
449            * @param statsUserId the primary key of the current blogs stats user
450            * @param groupId the group id to search with
451            * @param entryCount the entry count to search with
452            * @param orderByComparator the comparator to order the set by
453            * @return the previous, current, and next blogs stats user
454            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
455            * @throws SystemException if a system exception occurred
456            */
457            public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_NotE_PrevAndNext(
458                    long statsUserId, long groupId, int entryCount,
459                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
460                    throws com.liferay.portal.kernel.exception.SystemException,
461                            com.liferay.portlet.blogs.NoSuchStatsUserException;
462    
463            /**
464            * Finds all the blogs stats users where companyId = &#63; and entryCount &ne; &#63;.
465            *
466            * @param companyId the company id to search with
467            * @param entryCount the entry count to search with
468            * @return the matching blogs stats users
469            * @throws SystemException if a system exception occurred
470            */
471            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_NotE(
472                    long companyId, int entryCount)
473                    throws com.liferay.portal.kernel.exception.SystemException;
474    
475            /**
476            * Finds a range of all the blogs stats users where companyId = &#63; and entryCount &ne; &#63;.
477            *
478            * <p>
479            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
480            * </p>
481            *
482            * @param companyId the company id to search with
483            * @param entryCount the entry count to search with
484            * @param start the lower bound of the range of blogs stats users to return
485            * @param end the upper bound of the range of blogs stats users to return (not inclusive)
486            * @return the range of matching blogs stats users
487            * @throws SystemException if a system exception occurred
488            */
489            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_NotE(
490                    long companyId, int entryCount, int start, int end)
491                    throws com.liferay.portal.kernel.exception.SystemException;
492    
493            /**
494            * Finds an ordered range of all the blogs stats users where companyId = &#63; and entryCount &ne; &#63;.
495            *
496            * <p>
497            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
498            * </p>
499            *
500            * @param companyId the company id to search with
501            * @param entryCount the entry count to search with
502            * @param start the lower bound of the range of blogs stats users to return
503            * @param end the upper bound of the range of blogs stats users to return (not inclusive)
504            * @param orderByComparator the comparator to order the results by
505            * @return the ordered range of matching blogs stats users
506            * @throws SystemException if a system exception occurred
507            */
508            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_NotE(
509                    long companyId, int entryCount, int start, int end,
510                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
511                    throws com.liferay.portal.kernel.exception.SystemException;
512    
513            /**
514            * Finds the first blogs stats user in the ordered set where companyId = &#63; and entryCount &ne; &#63;.
515            *
516            * <p>
517            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
518            * </p>
519            *
520            * @param companyId the company id to search with
521            * @param entryCount the entry count to search with
522            * @param orderByComparator the comparator to order the set by
523            * @return the first matching blogs stats user
524            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
525            * @throws SystemException if a system exception occurred
526            */
527            public com.liferay.portlet.blogs.model.BlogsStatsUser findByC_NotE_First(
528                    long companyId, int entryCount,
529                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
530                    throws com.liferay.portal.kernel.exception.SystemException,
531                            com.liferay.portlet.blogs.NoSuchStatsUserException;
532    
533            /**
534            * Finds the last blogs stats user in the ordered set where companyId = &#63; and entryCount &ne; &#63;.
535            *
536            * <p>
537            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
538            * </p>
539            *
540            * @param companyId the company id to search with
541            * @param entryCount the entry count to search with
542            * @param orderByComparator the comparator to order the set by
543            * @return the last matching blogs stats user
544            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
545            * @throws SystemException if a system exception occurred
546            */
547            public com.liferay.portlet.blogs.model.BlogsStatsUser findByC_NotE_Last(
548                    long companyId, int entryCount,
549                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
550                    throws com.liferay.portal.kernel.exception.SystemException,
551                            com.liferay.portlet.blogs.NoSuchStatsUserException;
552    
553            /**
554            * Finds the blogs stats users before and after the current blogs stats user in the ordered set where companyId = &#63; and entryCount &ne; &#63;.
555            *
556            * <p>
557            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
558            * </p>
559            *
560            * @param statsUserId the primary key of the current blogs stats user
561            * @param companyId the company id to search with
562            * @param entryCount the entry count to search with
563            * @param orderByComparator the comparator to order the set by
564            * @return the previous, current, and next blogs stats user
565            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
566            * @throws SystemException if a system exception occurred
567            */
568            public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_NotE_PrevAndNext(
569                    long statsUserId, long companyId, int entryCount,
570                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
571                    throws com.liferay.portal.kernel.exception.SystemException,
572                            com.liferay.portlet.blogs.NoSuchStatsUserException;
573    
574            /**
575            * Finds all the blogs stats users where userId = &#63; and lastPostDate = &#63;.
576            *
577            * @param userId the user id to search with
578            * @param lastPostDate the last post date to search with
579            * @return the matching blogs stats users
580            * @throws SystemException if a system exception occurred
581            */
582            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L(
583                    long userId, java.util.Date lastPostDate)
584                    throws com.liferay.portal.kernel.exception.SystemException;
585    
586            /**
587            * Finds a range of all the blogs stats users where userId = &#63; and lastPostDate = &#63;.
588            *
589            * <p>
590            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
591            * </p>
592            *
593            * @param userId the user id to search with
594            * @param lastPostDate the last post date to search with
595            * @param start the lower bound of the range of blogs stats users to return
596            * @param end the upper bound of the range of blogs stats users to return (not inclusive)
597            * @return the range of matching blogs stats users
598            * @throws SystemException if a system exception occurred
599            */
600            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L(
601                    long userId, java.util.Date lastPostDate, int start, int end)
602                    throws com.liferay.portal.kernel.exception.SystemException;
603    
604            /**
605            * Finds an ordered range of all the blogs stats users where userId = &#63; and lastPostDate = &#63;.
606            *
607            * <p>
608            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
609            * </p>
610            *
611            * @param userId the user id to search with
612            * @param lastPostDate the last post date to search with
613            * @param start the lower bound of the range of blogs stats users to return
614            * @param end the upper bound of the range of blogs stats users to return (not inclusive)
615            * @param orderByComparator the comparator to order the results by
616            * @return the ordered range of matching blogs stats users
617            * @throws SystemException if a system exception occurred
618            */
619            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L(
620                    long userId, java.util.Date lastPostDate, int start, int end,
621                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
622                    throws com.liferay.portal.kernel.exception.SystemException;
623    
624            /**
625            * Finds the first blogs stats user in the ordered set where userId = &#63; and lastPostDate = &#63;.
626            *
627            * <p>
628            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
629            * </p>
630            *
631            * @param userId the user id to search with
632            * @param lastPostDate the last post date to search with
633            * @param orderByComparator the comparator to order the set by
634            * @return the first matching blogs stats user
635            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
636            * @throws SystemException if a system exception occurred
637            */
638            public com.liferay.portlet.blogs.model.BlogsStatsUser findByU_L_First(
639                    long userId, java.util.Date lastPostDate,
640                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
641                    throws com.liferay.portal.kernel.exception.SystemException,
642                            com.liferay.portlet.blogs.NoSuchStatsUserException;
643    
644            /**
645            * Finds the last blogs stats user in the ordered set where userId = &#63; and lastPostDate = &#63;.
646            *
647            * <p>
648            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
649            * </p>
650            *
651            * @param userId the user id to search with
652            * @param lastPostDate the last post date to search with
653            * @param orderByComparator the comparator to order the set by
654            * @return the last matching blogs stats user
655            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
656            * @throws SystemException if a system exception occurred
657            */
658            public com.liferay.portlet.blogs.model.BlogsStatsUser findByU_L_Last(
659                    long userId, java.util.Date lastPostDate,
660                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
661                    throws com.liferay.portal.kernel.exception.SystemException,
662                            com.liferay.portlet.blogs.NoSuchStatsUserException;
663    
664            /**
665            * Finds the blogs stats users before and after the current blogs stats user in the ordered set where userId = &#63; and lastPostDate = &#63;.
666            *
667            * <p>
668            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
669            * </p>
670            *
671            * @param statsUserId the primary key of the current blogs stats user
672            * @param userId the user id to search with
673            * @param lastPostDate the last post date to search with
674            * @param orderByComparator the comparator to order the set by
675            * @return the previous, current, and next blogs stats user
676            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
677            * @throws SystemException if a system exception occurred
678            */
679            public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByU_L_PrevAndNext(
680                    long statsUserId, long userId, java.util.Date lastPostDate,
681                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
682                    throws com.liferay.portal.kernel.exception.SystemException,
683                            com.liferay.portlet.blogs.NoSuchStatsUserException;
684    
685            /**
686            * Finds all the blogs stats users.
687            *
688            * @return the blogs stats users
689            * @throws SystemException if a system exception occurred
690            */
691            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll()
692                    throws com.liferay.portal.kernel.exception.SystemException;
693    
694            /**
695            * Finds a range of all the blogs stats users.
696            *
697            * <p>
698            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
699            * </p>
700            *
701            * @param start the lower bound of the range of blogs stats users to return
702            * @param end the upper bound of the range of blogs stats users to return (not inclusive)
703            * @return the range of blogs stats users
704            * @throws SystemException if a system exception occurred
705            */
706            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
707                    int start, int end)
708                    throws com.liferay.portal.kernel.exception.SystemException;
709    
710            /**
711            * Finds an ordered range of all the blogs stats users.
712            *
713            * <p>
714            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
715            * </p>
716            *
717            * @param start the lower bound of the range of blogs stats users to return
718            * @param end the upper bound of the range of blogs stats users to return (not inclusive)
719            * @param orderByComparator the comparator to order the results by
720            * @return the ordered range of blogs stats users
721            * @throws SystemException if a system exception occurred
722            */
723            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
724                    int start, int end,
725                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
726                    throws com.liferay.portal.kernel.exception.SystemException;
727    
728            /**
729            * Removes all the blogs stats users where groupId = &#63; from the database.
730            *
731            * @param groupId the group id to search with
732            * @throws SystemException if a system exception occurred
733            */
734            public void removeByGroupId(long groupId)
735                    throws com.liferay.portal.kernel.exception.SystemException;
736    
737            /**
738            * Removes all the blogs stats users where userId = &#63; from the database.
739            *
740            * @param userId the user id to search with
741            * @throws SystemException if a system exception occurred
742            */
743            public void removeByUserId(long userId)
744                    throws com.liferay.portal.kernel.exception.SystemException;
745    
746            /**
747            * Removes the blogs stats user where groupId = &#63; and userId = &#63; from the database.
748            *
749            * @param groupId the group id to search with
750            * @param userId the user id to search with
751            * @throws SystemException if a system exception occurred
752            */
753            public void removeByG_U(long groupId, long userId)
754                    throws com.liferay.portal.kernel.exception.SystemException,
755                            com.liferay.portlet.blogs.NoSuchStatsUserException;
756    
757            /**
758            * Removes all the blogs stats users where groupId = &#63; and entryCount &ne; &#63; from the database.
759            *
760            * @param groupId the group id to search with
761            * @param entryCount the entry count to search with
762            * @throws SystemException if a system exception occurred
763            */
764            public void removeByG_NotE(long groupId, int entryCount)
765                    throws com.liferay.portal.kernel.exception.SystemException;
766    
767            /**
768            * Removes all the blogs stats users where companyId = &#63; and entryCount &ne; &#63; from the database.
769            *
770            * @param companyId the company id to search with
771            * @param entryCount the entry count to search with
772            * @throws SystemException if a system exception occurred
773            */
774            public void removeByC_NotE(long companyId, int entryCount)
775                    throws com.liferay.portal.kernel.exception.SystemException;
776    
777            /**
778            * Removes all the blogs stats users where userId = &#63; and lastPostDate = &#63; from the database.
779            *
780            * @param userId the user id to search with
781            * @param lastPostDate the last post date to search with
782            * @throws SystemException if a system exception occurred
783            */
784            public void removeByU_L(long userId, java.util.Date lastPostDate)
785                    throws com.liferay.portal.kernel.exception.SystemException;
786    
787            /**
788            * Removes all the blogs stats users from the database.
789            *
790            * @throws SystemException if a system exception occurred
791            */
792            public void removeAll()
793                    throws com.liferay.portal.kernel.exception.SystemException;
794    
795            /**
796            * Counts all the blogs stats users where groupId = &#63;.
797            *
798            * @param groupId the group id to search with
799            * @return the number of matching blogs stats users
800            * @throws SystemException if a system exception occurred
801            */
802            public int countByGroupId(long groupId)
803                    throws com.liferay.portal.kernel.exception.SystemException;
804    
805            /**
806            * Counts all the blogs stats users where userId = &#63;.
807            *
808            * @param userId the user id to search with
809            * @return the number of matching blogs stats users
810            * @throws SystemException if a system exception occurred
811            */
812            public int countByUserId(long userId)
813                    throws com.liferay.portal.kernel.exception.SystemException;
814    
815            /**
816            * Counts all the blogs stats users where groupId = &#63; and userId = &#63;.
817            *
818            * @param groupId the group id to search with
819            * @param userId the user id to search with
820            * @return the number of matching blogs stats users
821            * @throws SystemException if a system exception occurred
822            */
823            public int countByG_U(long groupId, long userId)
824                    throws com.liferay.portal.kernel.exception.SystemException;
825    
826            /**
827            * Counts all the blogs stats users where groupId = &#63; and entryCount &ne; &#63;.
828            *
829            * @param groupId the group id to search with
830            * @param entryCount the entry count to search with
831            * @return the number of matching blogs stats users
832            * @throws SystemException if a system exception occurred
833            */
834            public int countByG_NotE(long groupId, int entryCount)
835                    throws com.liferay.portal.kernel.exception.SystemException;
836    
837            /**
838            * Counts all the blogs stats users where companyId = &#63; and entryCount &ne; &#63;.
839            *
840            * @param companyId the company id to search with
841            * @param entryCount the entry count to search with
842            * @return the number of matching blogs stats users
843            * @throws SystemException if a system exception occurred
844            */
845            public int countByC_NotE(long companyId, int entryCount)
846                    throws com.liferay.portal.kernel.exception.SystemException;
847    
848            /**
849            * Counts all the blogs stats users where userId = &#63; and lastPostDate = &#63;.
850            *
851            * @param userId the user id to search with
852            * @param lastPostDate the last post date to search with
853            * @return the number of matching blogs stats users
854            * @throws SystemException if a system exception occurred
855            */
856            public int countByU_L(long userId, java.util.Date lastPostDate)
857                    throws com.liferay.portal.kernel.exception.SystemException;
858    
859            /**
860            * Counts all the blogs stats users.
861            *
862            * @return the number of blogs stats users
863            * @throws SystemException if a system exception occurred
864            */
865            public int countAll()
866                    throws com.liferay.portal.kernel.exception.SystemException;
867    }