001    /**
002     * Copyright (c) 2000-2012 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     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see BlogsStatsUserPersistenceImpl
030     * @see BlogsStatsUserUtil
031     * @generated
032     */
033    public interface BlogsStatsUserPersistence extends BasePersistence<BlogsStatsUser> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * 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.
038             */
039    
040            /**
041            * Caches the blogs stats user in the entity cache if it is enabled.
042            *
043            * @param blogsStatsUser the blogs stats user
044            */
045            public void cacheResult(
046                    com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser);
047    
048            /**
049            * Caches the blogs stats users in the entity cache if it is enabled.
050            *
051            * @param blogsStatsUsers the blogs stats users
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> blogsStatsUsers);
055    
056            /**
057            * Creates a new blogs stats user with the primary key. Does not add the blogs stats user to the database.
058            *
059            * @param statsUserId the primary key for the new blogs stats user
060            * @return the new blogs stats user
061            */
062            public com.liferay.portlet.blogs.model.BlogsStatsUser create(
063                    long statsUserId);
064    
065            /**
066            * Removes the blogs stats user with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param statsUserId the primary key of the blogs stats user
069            * @return the blogs stats user that was removed
070            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.blogs.model.BlogsStatsUser remove(
074                    long statsUserId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.blogs.NoSuchStatsUserException;
077    
078            public com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl(
079                    com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
080                    boolean merge)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * Returns the blogs stats user with the primary key or throws a {@link com.liferay.portlet.blogs.NoSuchStatsUserException} if it could not be found.
085            *
086            * @param statsUserId the primary key of the blogs stats user
087            * @return the blogs stats user
088            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
089            * @throws SystemException if a system exception occurred
090            */
091            public com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey(
092                    long statsUserId)
093                    throws com.liferay.portal.kernel.exception.SystemException,
094                            com.liferay.portlet.blogs.NoSuchStatsUserException;
095    
096            /**
097            * Returns the blogs stats user with the primary key or returns <code>null</code> if it could not be found.
098            *
099            * @param statsUserId the primary key of the blogs stats user
100            * @return the blogs stats user, or <code>null</code> if a blogs stats user with the primary key could not be found
101            * @throws SystemException if a system exception occurred
102            */
103            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByPrimaryKey(
104                    long statsUserId)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            /**
108            * Returns all the blogs stats users where groupId = &#63;.
109            *
110            * @param groupId the group ID
111            * @return the matching blogs stats users
112            * @throws SystemException if a system exception occurred
113            */
114            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
115                    long groupId)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns a range of all the blogs stats users where groupId = &#63;.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param groupId the group ID
126            * @param start the lower bound of the range of blogs stats users
127            * @param end the upper bound of the range of blogs stats users (not inclusive)
128            * @return the range of matching blogs stats users
129            * @throws SystemException if a system exception occurred
130            */
131            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
132                    long groupId, int start, int end)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            /**
136            * Returns an ordered range of all the blogs stats users where groupId = &#63;.
137            *
138            * <p>
139            * 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.
140            * </p>
141            *
142            * @param groupId the group ID
143            * @param start the lower bound of the range of blogs stats users
144            * @param end the upper bound of the range of blogs stats users (not inclusive)
145            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
146            * @return the ordered range of matching blogs stats users
147            * @throws SystemException if a system exception occurred
148            */
149            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
150                    long groupId, int start, int end,
151                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            /**
155            * Returns the first blogs stats user in the ordered set where groupId = &#63;.
156            *
157            * <p>
158            * 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.
159            * </p>
160            *
161            * @param groupId the group ID
162            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
163            * @return the first matching blogs stats user
164            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
165            * @throws SystemException if a system exception occurred
166            */
167            public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First(
168                    long groupId,
169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170                    throws com.liferay.portal.kernel.exception.SystemException,
171                            com.liferay.portlet.blogs.NoSuchStatsUserException;
172    
173            /**
174            * Returns the last blogs stats user in the ordered set where groupId = &#63;.
175            *
176            * <p>
177            * 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.
178            * </p>
179            *
180            * @param groupId the group ID
181            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
182            * @return the last matching blogs stats user
183            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
187                    long groupId,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.blogs.NoSuchStatsUserException;
191    
192            /**
193            * Returns the blogs stats users before and after the current blogs stats user in the ordered set where groupId = &#63;.
194            *
195            * <p>
196            * 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.
197            * </p>
198            *
199            * @param statsUserId the primary key of the current blogs stats user
200            * @param groupId the group ID
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the previous, current, and next blogs stats user
203            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
204            * @throws SystemException if a system exception occurred
205            */
206            public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext(
207                    long statsUserId, long groupId,
208                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209                    throws com.liferay.portal.kernel.exception.SystemException,
210                            com.liferay.portlet.blogs.NoSuchStatsUserException;
211    
212            /**
213            * Returns all the blogs stats users where userId = &#63;.
214            *
215            * @param userId the user ID
216            * @return the matching blogs stats users
217            * @throws SystemException if a system exception occurred
218            */
219            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
220                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
221    
222            /**
223            * Returns a range of all the blogs stats users where userId = &#63;.
224            *
225            * <p>
226            * 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.
227            * </p>
228            *
229            * @param userId the user ID
230            * @param start the lower bound of the range of blogs stats users
231            * @param end the upper bound of the range of blogs stats users (not inclusive)
232            * @return the range of matching blogs stats users
233            * @throws SystemException if a system exception occurred
234            */
235            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
236                    long userId, int start, int end)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            /**
240            * Returns an ordered range of all the blogs stats users where userId = &#63;.
241            *
242            * <p>
243            * 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.
244            * </p>
245            *
246            * @param userId the user ID
247            * @param start the lower bound of the range of blogs stats users
248            * @param end the upper bound of the range of blogs stats users (not inclusive)
249            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
250            * @return the ordered range of matching blogs stats users
251            * @throws SystemException if a system exception occurred
252            */
253            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
254                    long userId, int start, int end,
255                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
256                    throws com.liferay.portal.kernel.exception.SystemException;
257    
258            /**
259            * Returns the first blogs stats user in the ordered set where userId = &#63;.
260            *
261            * <p>
262            * 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.
263            * </p>
264            *
265            * @param userId the user ID
266            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
267            * @return the first matching blogs stats user
268            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
269            * @throws SystemException if a system exception occurred
270            */
271            public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First(
272                    long userId,
273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274                    throws com.liferay.portal.kernel.exception.SystemException,
275                            com.liferay.portlet.blogs.NoSuchStatsUserException;
276    
277            /**
278            * Returns the last blogs stats user in the ordered set where userId = &#63;.
279            *
280            * <p>
281            * 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.
282            * </p>
283            *
284            * @param userId the user ID
285            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
286            * @return the last matching blogs stats user
287            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
288            * @throws SystemException if a system exception occurred
289            */
290            public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last(
291                    long userId,
292                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293                    throws com.liferay.portal.kernel.exception.SystemException,
294                            com.liferay.portlet.blogs.NoSuchStatsUserException;
295    
296            /**
297            * Returns the blogs stats users before and after the current blogs stats user in the ordered set where userId = &#63;.
298            *
299            * <p>
300            * 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.
301            * </p>
302            *
303            * @param statsUserId the primary key of the current blogs stats user
304            * @param userId the user ID
305            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
306            * @return the previous, current, and next blogs stats user
307            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
308            * @throws SystemException if a system exception occurred
309            */
310            public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext(
311                    long statsUserId, long userId,
312                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
313                    throws com.liferay.portal.kernel.exception.SystemException,
314                            com.liferay.portlet.blogs.NoSuchStatsUserException;
315    
316            /**
317            * Returns 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.
318            *
319            * @param groupId the group ID
320            * @param userId the user ID
321            * @return the matching blogs stats user
322            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
323            * @throws SystemException if a system exception occurred
324            */
325            public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U(
326                    long groupId, long userId)
327                    throws com.liferay.portal.kernel.exception.SystemException,
328                            com.liferay.portlet.blogs.NoSuchStatsUserException;
329    
330            /**
331            * Returns 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.
332            *
333            * @param groupId the group ID
334            * @param userId the user ID
335            * @return the matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found
336            * @throws SystemException if a system exception occurred
337            */
338            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
339                    long groupId, long userId)
340                    throws com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * Returns 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.
344            *
345            * @param groupId the group ID
346            * @param userId the user ID
347            * @param retrieveFromCache whether to use the finder cache
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            * Returns all the blogs stats users where groupId = &#63; and entryCount &ne; &#63;.
357            *
358            * @param groupId the group ID
359            * @param entryCount the entry count
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            * Returns 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
375            * @param entryCount the entry count
376            * @param start the lower bound of the range of blogs stats users
377            * @param end the upper bound of the range of blogs stats users (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            * Returns 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
393            * @param entryCount the entry count
394            * @param start the lower bound of the range of blogs stats users
395            * @param end the upper bound of the range of blogs stats users (not inclusive)
396            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns 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
413            * @param entryCount the entry count
414            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
433            * @param entryCount the entry count
434            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
454            * @param entryCount the entry count
455            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns all the blogs stats users where companyId = &#63; and entryCount &ne; &#63;.
468            *
469            * @param companyId the company ID
470            * @param entryCount the entry count
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            * Returns 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
486            * @param entryCount the entry count
487            * @param start the lower bound of the range of blogs stats users
488            * @param end the upper bound of the range of blogs stats users (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            * Returns 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
504            * @param entryCount the entry count
505            * @param start the lower bound of the range of blogs stats users
506            * @param end the upper bound of the range of blogs stats users (not inclusive)
507            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns 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
524            * @param entryCount the entry count
525            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
544            * @param entryCount the entry count
545            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
565            * @param entryCount the entry count
566            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns all the blogs stats users where userId = &#63; and lastPostDate = &#63;.
579            *
580            * @param userId the user ID
581            * @param lastPostDate the last post date
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            * Returns 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
597            * @param lastPostDate the last post date
598            * @param start the lower bound of the range of blogs stats users
599            * @param end the upper bound of the range of blogs stats users (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            * Returns 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
615            * @param lastPostDate the last post date
616            * @param start the lower bound of the range of blogs stats users
617            * @param end the upper bound of the range of blogs stats users (not inclusive)
618            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns 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
635            * @param lastPostDate the last post date
636            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
655            * @param lastPostDate the last post date
656            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
676            * @param lastPostDate the last post date
677            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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            * Returns 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
705            * @param end the upper bound of the range of blogs stats users (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            * Returns 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
721            * @param end the upper bound of the range of blogs stats users (not inclusive)
722            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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
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
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
753            * @param userId the user ID
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
764            * @param entryCount the entry count
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
774            * @param entryCount the entry count
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
784            * @param lastPostDate the last post date
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            * Returns the number of blogs stats users where groupId = &#63;.
800            *
801            * @param groupId the group ID
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            * Returns the number of blogs stats users where userId = &#63;.
810            *
811            * @param userId the user ID
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            * Returns the number of blogs stats users where groupId = &#63; and userId = &#63;.
820            *
821            * @param groupId the group ID
822            * @param userId the user ID
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            * Returns the number of blogs stats users where groupId = &#63; and entryCount &ne; &#63;.
831            *
832            * @param groupId the group ID
833            * @param entryCount the entry count
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            * Returns the number of blogs stats users where companyId = &#63; and entryCount &ne; &#63;.
842            *
843            * @param companyId the company ID
844            * @param entryCount the entry count
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            * Returns the number of blogs stats users where userId = &#63; and lastPostDate = &#63;.
853            *
854            * @param userId the user ID
855            * @param lastPostDate the last post date
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            * Returns the number of 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    }