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