001    /**
002     * Copyright (c) 2000-2013 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            * @param groupId the group ID
158            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
159            * @return the first matching blogs stats user
160            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First(
164                    long groupId,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException,
167                            com.liferay.portlet.blogs.NoSuchStatsUserException;
168    
169            /**
170            * Returns the first blogs stats user in the ordered set where groupId = &#63;.
171            *
172            * @param groupId the group ID
173            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
174            * @return the first matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByGroupId_First(
178                    long groupId,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            /**
183            * Returns the last blogs stats user in the ordered set where groupId = &#63;.
184            *
185            * @param groupId the group ID
186            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
187            * @return the last matching blogs stats user
188            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
192                    long groupId,
193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194                    throws com.liferay.portal.kernel.exception.SystemException,
195                            com.liferay.portlet.blogs.NoSuchStatsUserException;
196    
197            /**
198            * Returns the last blogs stats user in the ordered set where groupId = &#63;.
199            *
200            * @param groupId the group ID
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the last matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found
203            * @throws SystemException if a system exception occurred
204            */
205            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByGroupId_Last(
206                    long groupId,
207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            /**
211            * Returns the blogs stats users before and after the current blogs stats user in the ordered set where groupId = &#63;.
212            *
213            * @param statsUserId the primary key of the current blogs stats user
214            * @param groupId the group ID
215            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
216            * @return the previous, current, and next blogs stats user
217            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext(
221                    long statsUserId, long groupId,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223                    throws com.liferay.portal.kernel.exception.SystemException,
224                            com.liferay.portlet.blogs.NoSuchStatsUserException;
225    
226            /**
227            * Returns all the blogs stats users where userId = &#63;.
228            *
229            * @param userId the user ID
230            * @return the matching blogs stats users
231            * @throws SystemException if a system exception occurred
232            */
233            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
234                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * Returns a range of all the blogs stats users where userId = &#63;.
238            *
239            * <p>
240            * 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.
241            * </p>
242            *
243            * @param userId the user ID
244            * @param start the lower bound of the range of blogs stats users
245            * @param end the upper bound of the range of blogs stats users (not inclusive)
246            * @return the range of matching blogs stats users
247            * @throws SystemException if a system exception occurred
248            */
249            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
250                    long userId, int start, int end)
251                    throws com.liferay.portal.kernel.exception.SystemException;
252    
253            /**
254            * Returns an ordered range of all the blogs stats users where userId = &#63;.
255            *
256            * <p>
257            * 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.
258            * </p>
259            *
260            * @param userId the user ID
261            * @param start the lower bound of the range of blogs stats users
262            * @param end the upper bound of the range of blogs stats users (not inclusive)
263            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
264            * @return the ordered range of matching blogs stats users
265            * @throws SystemException if a system exception occurred
266            */
267            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
268                    long userId, int start, int end,
269                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270                    throws com.liferay.portal.kernel.exception.SystemException;
271    
272            /**
273            * Returns the first blogs stats user in the ordered set where userId = &#63;.
274            *
275            * @param userId the user ID
276            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
277            * @return the first matching blogs stats user
278            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
279            * @throws SystemException if a system exception occurred
280            */
281            public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First(
282                    long userId,
283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284                    throws com.liferay.portal.kernel.exception.SystemException,
285                            com.liferay.portlet.blogs.NoSuchStatsUserException;
286    
287            /**
288            * Returns the first blogs stats user in the ordered set where userId = &#63;.
289            *
290            * @param userId the user ID
291            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
292            * @return the first matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found
293            * @throws SystemException if a system exception occurred
294            */
295            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByUserId_First(
296                    long userId,
297                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
298                    throws com.liferay.portal.kernel.exception.SystemException;
299    
300            /**
301            * Returns the last blogs stats user in the ordered set where userId = &#63;.
302            *
303            * @param userId the user ID
304            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
305            * @return the last matching blogs stats user
306            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
307            * @throws SystemException if a system exception occurred
308            */
309            public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last(
310                    long userId,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.kernel.exception.SystemException,
313                            com.liferay.portlet.blogs.NoSuchStatsUserException;
314    
315            /**
316            * Returns the last blogs stats user in the ordered set where userId = &#63;.
317            *
318            * @param userId the user ID
319            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
320            * @return the last matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found
321            * @throws SystemException if a system exception occurred
322            */
323            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByUserId_Last(
324                    long userId,
325                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
326                    throws com.liferay.portal.kernel.exception.SystemException;
327    
328            /**
329            * Returns the blogs stats users before and after the current blogs stats user in the ordered set where userId = &#63;.
330            *
331            * @param statsUserId the primary key of the current blogs stats user
332            * @param userId the user ID
333            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
334            * @return the previous, current, and next blogs stats user
335            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
336            * @throws SystemException if a system exception occurred
337            */
338            public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext(
339                    long statsUserId, long userId,
340                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
341                    throws com.liferay.portal.kernel.exception.SystemException,
342                            com.liferay.portlet.blogs.NoSuchStatsUserException;
343    
344            /**
345            * 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.
346            *
347            * @param groupId the group ID
348            * @param userId the user ID
349            * @return the matching blogs stats user
350            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
351            * @throws SystemException if a system exception occurred
352            */
353            public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U(
354                    long groupId, long userId)
355                    throws com.liferay.portal.kernel.exception.SystemException,
356                            com.liferay.portlet.blogs.NoSuchStatsUserException;
357    
358            /**
359            * 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.
360            *
361            * @param groupId the group ID
362            * @param userId the user ID
363            * @return the matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found
364            * @throws SystemException if a system exception occurred
365            */
366            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
367                    long groupId, long userId)
368                    throws com.liferay.portal.kernel.exception.SystemException;
369    
370            /**
371            * 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.
372            *
373            * @param groupId the group ID
374            * @param userId the user ID
375            * @param retrieveFromCache whether to use the finder cache
376            * @return the matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found
377            * @throws SystemException if a system exception occurred
378            */
379            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
380                    long groupId, long userId, boolean retrieveFromCache)
381                    throws com.liferay.portal.kernel.exception.SystemException;
382    
383            /**
384            * Returns all the blogs stats users where groupId = &#63; and entryCount &ne; &#63;.
385            *
386            * @param groupId the group ID
387            * @param entryCount the entry count
388            * @return the matching blogs stats users
389            * @throws SystemException if a system exception occurred
390            */
391            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_NotE(
392                    long groupId, int entryCount)
393                    throws com.liferay.portal.kernel.exception.SystemException;
394    
395            /**
396            * Returns a range of all the blogs stats users where groupId = &#63; and entryCount &ne; &#63;.
397            *
398            * <p>
399            * 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.
400            * </p>
401            *
402            * @param groupId the group ID
403            * @param entryCount the entry count
404            * @param start the lower bound of the range of blogs stats users
405            * @param end the upper bound of the range of blogs stats users (not inclusive)
406            * @return the range of matching blogs stats users
407            * @throws SystemException if a system exception occurred
408            */
409            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_NotE(
410                    long groupId, int entryCount, int start, int end)
411                    throws com.liferay.portal.kernel.exception.SystemException;
412    
413            /**
414            * Returns an ordered range of all the blogs stats users where groupId = &#63; and entryCount &ne; &#63;.
415            *
416            * <p>
417            * 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.
418            * </p>
419            *
420            * @param groupId the group ID
421            * @param entryCount the entry count
422            * @param start the lower bound of the range of blogs stats users
423            * @param end the upper bound of the range of blogs stats users (not inclusive)
424            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
425            * @return the ordered range of matching blogs stats users
426            * @throws SystemException if a system exception occurred
427            */
428            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_NotE(
429                    long groupId, int entryCount, int start, int end,
430                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
431                    throws com.liferay.portal.kernel.exception.SystemException;
432    
433            /**
434            * Returns the first blogs stats user in the ordered set where groupId = &#63; and entryCount &ne; &#63;.
435            *
436            * @param groupId the group ID
437            * @param entryCount the entry count
438            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
439            * @return the first matching blogs stats user
440            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
441            * @throws SystemException if a system exception occurred
442            */
443            public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_NotE_First(
444                    long groupId, int entryCount,
445                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
446                    throws com.liferay.portal.kernel.exception.SystemException,
447                            com.liferay.portlet.blogs.NoSuchStatsUserException;
448    
449            /**
450            * Returns the first blogs stats user in the ordered set where groupId = &#63; and entryCount &ne; &#63;.
451            *
452            * @param groupId the group ID
453            * @param entryCount the entry count
454            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
455            * @return the first matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found
456            * @throws SystemException if a system exception occurred
457            */
458            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_NotE_First(
459                    long groupId, int entryCount,
460                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
461                    throws com.liferay.portal.kernel.exception.SystemException;
462    
463            /**
464            * Returns the last blogs stats user in the ordered set where groupId = &#63; and entryCount &ne; &#63;.
465            *
466            * @param groupId the group ID
467            * @param entryCount the entry count
468            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
469            * @return the last matching blogs stats user
470            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
471            * @throws SystemException if a system exception occurred
472            */
473            public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_NotE_Last(
474                    long groupId, int entryCount,
475                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
476                    throws com.liferay.portal.kernel.exception.SystemException,
477                            com.liferay.portlet.blogs.NoSuchStatsUserException;
478    
479            /**
480            * Returns the last blogs stats user in the ordered set where groupId = &#63; and entryCount &ne; &#63;.
481            *
482            * @param groupId the group ID
483            * @param entryCount the entry count
484            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
485            * @return the last matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found
486            * @throws SystemException if a system exception occurred
487            */
488            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_NotE_Last(
489                    long groupId, int entryCount,
490                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
491                    throws com.liferay.portal.kernel.exception.SystemException;
492    
493            /**
494            * Returns the blogs stats users before and after the current blogs stats user in the ordered set where groupId = &#63; and entryCount &ne; &#63;.
495            *
496            * @param statsUserId the primary key of the current blogs stats user
497            * @param groupId the group ID
498            * @param entryCount the entry count
499            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
500            * @return the previous, current, and next blogs stats user
501            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
502            * @throws SystemException if a system exception occurred
503            */
504            public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_NotE_PrevAndNext(
505                    long statsUserId, long groupId, int entryCount,
506                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
507                    throws com.liferay.portal.kernel.exception.SystemException,
508                            com.liferay.portlet.blogs.NoSuchStatsUserException;
509    
510            /**
511            * Returns all the blogs stats users where companyId = &#63; and entryCount &ne; &#63;.
512            *
513            * @param companyId the company ID
514            * @param entryCount the entry count
515            * @return the matching blogs stats users
516            * @throws SystemException if a system exception occurred
517            */
518            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_NotE(
519                    long companyId, int entryCount)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Returns a range of all the blogs stats users where companyId = &#63; and entryCount &ne; &#63;.
524            *
525            * <p>
526            * 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.
527            * </p>
528            *
529            * @param companyId the company ID
530            * @param entryCount the entry count
531            * @param start the lower bound of the range of blogs stats users
532            * @param end the upper bound of the range of blogs stats users (not inclusive)
533            * @return the range of matching blogs stats users
534            * @throws SystemException if a system exception occurred
535            */
536            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_NotE(
537                    long companyId, int entryCount, int start, int end)
538                    throws com.liferay.portal.kernel.exception.SystemException;
539    
540            /**
541            * Returns an ordered range of all the blogs stats users where companyId = &#63; and entryCount &ne; &#63;.
542            *
543            * <p>
544            * 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.
545            * </p>
546            *
547            * @param companyId the company ID
548            * @param entryCount the entry count
549            * @param start the lower bound of the range of blogs stats users
550            * @param end the upper bound of the range of blogs stats users (not inclusive)
551            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
552            * @return the ordered range of matching blogs stats users
553            * @throws SystemException if a system exception occurred
554            */
555            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_NotE(
556                    long companyId, int entryCount, int start, int end,
557                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
558                    throws com.liferay.portal.kernel.exception.SystemException;
559    
560            /**
561            * Returns the first blogs stats user in the ordered set where companyId = &#63; and entryCount &ne; &#63;.
562            *
563            * @param companyId the company ID
564            * @param entryCount the entry count
565            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
566            * @return the first matching blogs stats user
567            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
568            * @throws SystemException if a system exception occurred
569            */
570            public com.liferay.portlet.blogs.model.BlogsStatsUser findByC_NotE_First(
571                    long companyId, int entryCount,
572                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
573                    throws com.liferay.portal.kernel.exception.SystemException,
574                            com.liferay.portlet.blogs.NoSuchStatsUserException;
575    
576            /**
577            * Returns the first blogs stats user in the ordered set where companyId = &#63; and entryCount &ne; &#63;.
578            *
579            * @param companyId the company ID
580            * @param entryCount the entry count
581            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
582            * @return the first matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found
583            * @throws SystemException if a system exception occurred
584            */
585            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByC_NotE_First(
586                    long companyId, int entryCount,
587                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
588                    throws com.liferay.portal.kernel.exception.SystemException;
589    
590            /**
591            * Returns the last blogs stats user in the ordered set where companyId = &#63; and entryCount &ne; &#63;.
592            *
593            * @param companyId the company ID
594            * @param entryCount the entry count
595            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
596            * @return the last matching blogs stats user
597            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
598            * @throws SystemException if a system exception occurred
599            */
600            public com.liferay.portlet.blogs.model.BlogsStatsUser findByC_NotE_Last(
601                    long companyId, int entryCount,
602                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
603                    throws com.liferay.portal.kernel.exception.SystemException,
604                            com.liferay.portlet.blogs.NoSuchStatsUserException;
605    
606            /**
607            * Returns the last blogs stats user in the ordered set where companyId = &#63; and entryCount &ne; &#63;.
608            *
609            * @param companyId the company ID
610            * @param entryCount the entry count
611            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
612            * @return the last matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found
613            * @throws SystemException if a system exception occurred
614            */
615            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByC_NotE_Last(
616                    long companyId, int entryCount,
617                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
618                    throws com.liferay.portal.kernel.exception.SystemException;
619    
620            /**
621            * Returns the blogs stats users before and after the current blogs stats user in the ordered set where companyId = &#63; and entryCount &ne; &#63;.
622            *
623            * @param statsUserId the primary key of the current blogs stats user
624            * @param companyId the company ID
625            * @param entryCount the entry count
626            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
627            * @return the previous, current, and next blogs stats user
628            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
629            * @throws SystemException if a system exception occurred
630            */
631            public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_NotE_PrevAndNext(
632                    long statsUserId, long companyId, int entryCount,
633                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
634                    throws com.liferay.portal.kernel.exception.SystemException,
635                            com.liferay.portlet.blogs.NoSuchStatsUserException;
636    
637            /**
638            * Returns all the blogs stats users where userId = &#63; and lastPostDate = &#63;.
639            *
640            * @param userId the user ID
641            * @param lastPostDate the last post date
642            * @return the matching blogs stats users
643            * @throws SystemException if a system exception occurred
644            */
645            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L(
646                    long userId, java.util.Date lastPostDate)
647                    throws com.liferay.portal.kernel.exception.SystemException;
648    
649            /**
650            * Returns a range of all the blogs stats users where userId = &#63; and lastPostDate = &#63;.
651            *
652            * <p>
653            * 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.
654            * </p>
655            *
656            * @param userId the user ID
657            * @param lastPostDate the last post date
658            * @param start the lower bound of the range of blogs stats users
659            * @param end the upper bound of the range of blogs stats users (not inclusive)
660            * @return the range of matching blogs stats users
661            * @throws SystemException if a system exception occurred
662            */
663            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L(
664                    long userId, java.util.Date lastPostDate, int start, int end)
665                    throws com.liferay.portal.kernel.exception.SystemException;
666    
667            /**
668            * Returns an ordered range of all the blogs stats users 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 userId the user ID
675            * @param lastPostDate the last post date
676            * @param start the lower bound of the range of blogs stats users
677            * @param end the upper bound of the range of blogs stats users (not inclusive)
678            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
679            * @return the ordered range of matching blogs stats users
680            * @throws SystemException if a system exception occurred
681            */
682            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L(
683                    long userId, java.util.Date lastPostDate, int start, int end,
684                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
685                    throws com.liferay.portal.kernel.exception.SystemException;
686    
687            /**
688            * Returns the first blogs stats user in the ordered set where userId = &#63; and lastPostDate = &#63;.
689            *
690            * @param userId the user ID
691            * @param lastPostDate the last post date
692            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
693            * @return the first matching blogs stats user
694            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
695            * @throws SystemException if a system exception occurred
696            */
697            public com.liferay.portlet.blogs.model.BlogsStatsUser findByU_L_First(
698                    long userId, java.util.Date lastPostDate,
699                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
700                    throws com.liferay.portal.kernel.exception.SystemException,
701                            com.liferay.portlet.blogs.NoSuchStatsUserException;
702    
703            /**
704            * Returns the first blogs stats user in the ordered set where userId = &#63; and lastPostDate = &#63;.
705            *
706            * @param userId the user ID
707            * @param lastPostDate the last post date
708            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
709            * @return the first matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found
710            * @throws SystemException if a system exception occurred
711            */
712            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByU_L_First(
713                    long userId, java.util.Date lastPostDate,
714                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
715                    throws com.liferay.portal.kernel.exception.SystemException;
716    
717            /**
718            * Returns the last blogs stats user in the ordered set where userId = &#63; and lastPostDate = &#63;.
719            *
720            * @param userId the user ID
721            * @param lastPostDate the last post date
722            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
723            * @return the last matching blogs stats user
724            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found
725            * @throws SystemException if a system exception occurred
726            */
727            public com.liferay.portlet.blogs.model.BlogsStatsUser findByU_L_Last(
728                    long userId, java.util.Date lastPostDate,
729                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
730                    throws com.liferay.portal.kernel.exception.SystemException,
731                            com.liferay.portlet.blogs.NoSuchStatsUserException;
732    
733            /**
734            * Returns the last blogs stats user in the ordered set where userId = &#63; and lastPostDate = &#63;.
735            *
736            * @param userId the user ID
737            * @param lastPostDate the last post date
738            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
739            * @return the last matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found
740            * @throws SystemException if a system exception occurred
741            */
742            public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByU_L_Last(
743                    long userId, java.util.Date lastPostDate,
744                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
745                    throws com.liferay.portal.kernel.exception.SystemException;
746    
747            /**
748            * Returns the blogs stats users before and after the current blogs stats user in the ordered set where userId = &#63; and lastPostDate = &#63;.
749            *
750            * @param statsUserId the primary key of the current blogs stats user
751            * @param userId the user ID
752            * @param lastPostDate the last post date
753            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
754            * @return the previous, current, and next blogs stats user
755            * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found
756            * @throws SystemException if a system exception occurred
757            */
758            public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByU_L_PrevAndNext(
759                    long statsUserId, long userId, java.util.Date lastPostDate,
760                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
761                    throws com.liferay.portal.kernel.exception.SystemException,
762                            com.liferay.portlet.blogs.NoSuchStatsUserException;
763    
764            /**
765            * Returns all the blogs stats users.
766            *
767            * @return the blogs stats users
768            * @throws SystemException if a system exception occurred
769            */
770            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll()
771                    throws com.liferay.portal.kernel.exception.SystemException;
772    
773            /**
774            * Returns a range of all the blogs stats users.
775            *
776            * <p>
777            * 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.
778            * </p>
779            *
780            * @param start the lower bound of the range of blogs stats users
781            * @param end the upper bound of the range of blogs stats users (not inclusive)
782            * @return the range of blogs stats users
783            * @throws SystemException if a system exception occurred
784            */
785            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
786                    int start, int end)
787                    throws com.liferay.portal.kernel.exception.SystemException;
788    
789            /**
790            * Returns an ordered range of all the blogs stats users.
791            *
792            * <p>
793            * 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.
794            * </p>
795            *
796            * @param start the lower bound of the range of blogs stats users
797            * @param end the upper bound of the range of blogs stats users (not inclusive)
798            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
799            * @return the ordered range of blogs stats users
800            * @throws SystemException if a system exception occurred
801            */
802            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
803                    int start, int end,
804                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
805                    throws com.liferay.portal.kernel.exception.SystemException;
806    
807            /**
808            * Removes all the blogs stats users where groupId = &#63; from the database.
809            *
810            * @param groupId the group ID
811            * @throws SystemException if a system exception occurred
812            */
813            public void removeByGroupId(long groupId)
814                    throws com.liferay.portal.kernel.exception.SystemException;
815    
816            /**
817            * Removes all the blogs stats users where userId = &#63; from the database.
818            *
819            * @param userId the user ID
820            * @throws SystemException if a system exception occurred
821            */
822            public void removeByUserId(long userId)
823                    throws com.liferay.portal.kernel.exception.SystemException;
824    
825            /**
826            * Removes the blogs stats user where groupId = &#63; and userId = &#63; from the database.
827            *
828            * @param groupId the group ID
829            * @param userId the user ID
830            * @return the blogs stats user that was removed
831            * @throws SystemException if a system exception occurred
832            */
833            public com.liferay.portlet.blogs.model.BlogsStatsUser removeByG_U(
834                    long groupId, long userId)
835                    throws com.liferay.portal.kernel.exception.SystemException,
836                            com.liferay.portlet.blogs.NoSuchStatsUserException;
837    
838            /**
839            * Removes all the blogs stats users where groupId = &#63; and entryCount &ne; &#63; from the database.
840            *
841            * @param groupId the group ID
842            * @param entryCount the entry count
843            * @throws SystemException if a system exception occurred
844            */
845            public void removeByG_NotE(long groupId, int entryCount)
846                    throws com.liferay.portal.kernel.exception.SystemException;
847    
848            /**
849            * Removes all the blogs stats users where companyId = &#63; and entryCount &ne; &#63; from the database.
850            *
851            * @param companyId the company ID
852            * @param entryCount the entry count
853            * @throws SystemException if a system exception occurred
854            */
855            public void removeByC_NotE(long companyId, int entryCount)
856                    throws com.liferay.portal.kernel.exception.SystemException;
857    
858            /**
859            * Removes all the blogs stats users where userId = &#63; and lastPostDate = &#63; from the database.
860            *
861            * @param userId the user ID
862            * @param lastPostDate the last post date
863            * @throws SystemException if a system exception occurred
864            */
865            public void removeByU_L(long userId, java.util.Date lastPostDate)
866                    throws com.liferay.portal.kernel.exception.SystemException;
867    
868            /**
869            * Removes all the blogs stats users from the database.
870            *
871            * @throws SystemException if a system exception occurred
872            */
873            public void removeAll()
874                    throws com.liferay.portal.kernel.exception.SystemException;
875    
876            /**
877            * Returns the number of blogs stats users where groupId = &#63;.
878            *
879            * @param groupId the group ID
880            * @return the number of matching blogs stats users
881            * @throws SystemException if a system exception occurred
882            */
883            public int countByGroupId(long groupId)
884                    throws com.liferay.portal.kernel.exception.SystemException;
885    
886            /**
887            * Returns the number of blogs stats users where userId = &#63;.
888            *
889            * @param userId the user ID
890            * @return the number of matching blogs stats users
891            * @throws SystemException if a system exception occurred
892            */
893            public int countByUserId(long userId)
894                    throws com.liferay.portal.kernel.exception.SystemException;
895    
896            /**
897            * Returns the number of blogs stats users where groupId = &#63; and userId = &#63;.
898            *
899            * @param groupId the group ID
900            * @param userId the user ID
901            * @return the number of matching blogs stats users
902            * @throws SystemException if a system exception occurred
903            */
904            public int countByG_U(long groupId, long userId)
905                    throws com.liferay.portal.kernel.exception.SystemException;
906    
907            /**
908            * Returns the number of blogs stats users where groupId = &#63; and entryCount &ne; &#63;.
909            *
910            * @param groupId the group ID
911            * @param entryCount the entry count
912            * @return the number of matching blogs stats users
913            * @throws SystemException if a system exception occurred
914            */
915            public int countByG_NotE(long groupId, int entryCount)
916                    throws com.liferay.portal.kernel.exception.SystemException;
917    
918            /**
919            * Returns the number of blogs stats users where companyId = &#63; and entryCount &ne; &#63;.
920            *
921            * @param companyId the company ID
922            * @param entryCount the entry count
923            * @return the number of matching blogs stats users
924            * @throws SystemException if a system exception occurred
925            */
926            public int countByC_NotE(long companyId, int entryCount)
927                    throws com.liferay.portal.kernel.exception.SystemException;
928    
929            /**
930            * Returns the number of blogs stats users where userId = &#63; and lastPostDate = &#63;.
931            *
932            * @param userId the user ID
933            * @param lastPostDate the last post date
934            * @return the number of matching blogs stats users
935            * @throws SystemException if a system exception occurred
936            */
937            public int countByU_L(long userId, java.util.Date lastPostDate)
938                    throws com.liferay.portal.kernel.exception.SystemException;
939    
940            /**
941            * Returns the number of blogs stats users.
942            *
943            * @return the number of blogs stats users
944            * @throws SystemException if a system exception occurred
945            */
946            public int countAll()
947                    throws com.liferay.portal.kernel.exception.SystemException;
948    }