001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.messageboards.model.MBStatsUser;
020    
021    /**
022     * The persistence interface for the message boards stats user service.
023     *
024     * <p>
025     * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see MBStatsUserPersistenceImpl
030     * @see MBStatsUserUtil
031     * @generated
032     */
033    public interface MBStatsUserPersistence extends BasePersistence<MBStatsUser> {
034            /**
035            * Caches the message boards stats user in the entity cache if it is enabled.
036            *
037            * @param mbStatsUser the message boards stats user to cache
038            */
039            public void cacheResult(
040                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser);
041    
042            /**
043            * Caches the message boards stats users in the entity cache if it is enabled.
044            *
045            * @param mbStatsUsers the message boards stats users to cache
046            */
047            public void cacheResult(
048                    java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> mbStatsUsers);
049    
050            /**
051            * Creates a new message boards stats user with the primary key.
052            *
053            * @param statsUserId the primary key for the new message boards stats user
054            * @return the new message boards stats user
055            */
056            public com.liferay.portlet.messageboards.model.MBStatsUser create(
057                    long statsUserId);
058    
059            /**
060            * Removes the message boards stats user with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param statsUserId the primary key of the message boards stats user to remove
063            * @return the message boards stats user that was removed
064            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.messageboards.model.MBStatsUser remove(
068                    long statsUserId)
069                    throws com.liferay.portal.kernel.exception.SystemException,
070                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
071    
072            public com.liferay.portlet.messageboards.model.MBStatsUser updateImpl(
073                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
074                    boolean merge)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            /**
078            * Finds the message boards stats user with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchStatsUserException} if it could not be found.
079            *
080            * @param statsUserId the primary key of the message boards stats user to find
081            * @return the message boards stats user
082            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
083            * @throws SystemException if a system exception occurred
084            */
085            public com.liferay.portlet.messageboards.model.MBStatsUser findByPrimaryKey(
086                    long statsUserId)
087                    throws com.liferay.portal.kernel.exception.SystemException,
088                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
089    
090            /**
091            * Finds the message boards stats user with the primary key or returns <code>null</code> if it could not be found.
092            *
093            * @param statsUserId the primary key of the message boards stats user to find
094            * @return the message boards stats user, or <code>null</code> if a message boards stats user with the primary key could not be found
095            * @throws SystemException if a system exception occurred
096            */
097            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByPrimaryKey(
098                    long statsUserId)
099                    throws com.liferay.portal.kernel.exception.SystemException;
100    
101            /**
102            * Finds all the message boards stats users where groupId = &#63;.
103            *
104            * @param groupId the group id to search with
105            * @return the matching message boards stats users
106            * @throws SystemException if a system exception occurred
107            */
108            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
109                    long groupId)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            /**
113            * Finds a range of all the message boards stats users where groupId = &#63;.
114            *
115            * <p>
116            * 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.
117            * </p>
118            *
119            * @param groupId the group id to search with
120            * @param start the lower bound of the range of message boards stats users to return
121            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
122            * @return the range of matching message boards stats users
123            * @throws SystemException if a system exception occurred
124            */
125            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
126                    long groupId, int start, int end)
127                    throws com.liferay.portal.kernel.exception.SystemException;
128    
129            /**
130            * Finds an ordered range of all the message boards stats users where groupId = &#63;.
131            *
132            * <p>
133            * 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.
134            * </p>
135            *
136            * @param groupId the group id to search with
137            * @param start the lower bound of the range of message boards stats users to return
138            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
139            * @param orderByComparator the comparator to order the results by
140            * @return the ordered range of matching message boards stats users
141            * @throws SystemException if a system exception occurred
142            */
143            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
144                    long groupId, int start, int end,
145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            /**
149            * Finds the first message boards stats user in the ordered set where groupId = &#63;.
150            *
151            * <p>
152            * 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.
153            * </p>
154            *
155            * @param groupId the group id to search with
156            * @param orderByComparator the comparator to order the set by
157            * @return the first matching message boards stats user
158            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_First(
162                    long groupId,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException,
165                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
166    
167            /**
168            * Finds the last message boards stats user in the ordered set where groupId = &#63;.
169            *
170            * <p>
171            * 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.
172            * </p>
173            *
174            * @param groupId the group id to search with
175            * @param orderByComparator the comparator to order the set by
176            * @return the last matching message boards stats user
177            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
178            * @throws SystemException if a system exception occurred
179            */
180            public com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_Last(
181                    long groupId,
182                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183                    throws com.liferay.portal.kernel.exception.SystemException,
184                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
185    
186            /**
187            * Finds the message boards stats users before and after the current message boards stats user in the ordered set where groupId = &#63;.
188            *
189            * <p>
190            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
191            * </p>
192            *
193            * @param statsUserId the primary key of the current message boards stats user
194            * @param groupId the group id to search with
195            * @param orderByComparator the comparator to order the set by
196            * @return the previous, current, and next message boards stats user
197            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByGroupId_PrevAndNext(
201                    long statsUserId, long groupId,
202                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203                    throws com.liferay.portal.kernel.exception.SystemException,
204                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
205    
206            /**
207            * Finds all the message boards stats users where userId = &#63;.
208            *
209            * @param userId the user id to search with
210            * @return the matching message boards stats users
211            * @throws SystemException if a system exception occurred
212            */
213            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
214                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
215    
216            /**
217            * Finds a range of all the message boards stats users where userId = &#63;.
218            *
219            * <p>
220            * 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.
221            * </p>
222            *
223            * @param userId the user id to search with
224            * @param start the lower bound of the range of message boards stats users to return
225            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
226            * @return the range of matching message boards stats users
227            * @throws SystemException if a system exception occurred
228            */
229            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
230                    long userId, int start, int end)
231                    throws com.liferay.portal.kernel.exception.SystemException;
232    
233            /**
234            * Finds an ordered range of all the message boards stats users where userId = &#63;.
235            *
236            * <p>
237            * 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.
238            * </p>
239            *
240            * @param userId the user id to search with
241            * @param start the lower bound of the range of message boards stats users to return
242            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
243            * @param orderByComparator the comparator to order the results by
244            * @return the ordered range of matching message boards stats users
245            * @throws SystemException if a system exception occurred
246            */
247            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
248                    long userId, int start, int end,
249                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            /**
253            * Finds the first message boards stats user in the ordered set where userId = &#63;.
254            *
255            * <p>
256            * 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.
257            * </p>
258            *
259            * @param userId the user id to search with
260            * @param orderByComparator the comparator to order the set by
261            * @return the first matching message boards stats user
262            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
263            * @throws SystemException if a system exception occurred
264            */
265            public com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_First(
266                    long userId,
267                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268                    throws com.liferay.portal.kernel.exception.SystemException,
269                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
270    
271            /**
272            * Finds the last message boards stats user in the ordered set where userId = &#63;.
273            *
274            * <p>
275            * 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.
276            * </p>
277            *
278            * @param userId the user id to search with
279            * @param orderByComparator the comparator to order the set by
280            * @return the last matching message boards stats user
281            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
282            * @throws SystemException if a system exception occurred
283            */
284            public com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_Last(
285                    long userId,
286                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
287                    throws com.liferay.portal.kernel.exception.SystemException,
288                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
289    
290            /**
291            * Finds the message boards stats users before and after the current message boards stats user in the ordered set where userId = &#63;.
292            *
293            * <p>
294            * 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.
295            * </p>
296            *
297            * @param statsUserId the primary key of the current message boards stats user
298            * @param userId the user id to search with
299            * @param orderByComparator the comparator to order the set by
300            * @return the previous, current, and next message boards stats user
301            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByUserId_PrevAndNext(
305                    long statsUserId, long userId,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException,
308                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
309    
310            /**
311            * Finds the message boards stats user where groupId = &#63; and userId = &#63; or throws a {@link com.liferay.portlet.messageboards.NoSuchStatsUserException} if it could not be found.
312            *
313            * @param groupId the group id to search with
314            * @param userId the user id to search with
315            * @return the matching message boards stats user
316            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
317            * @throws SystemException if a system exception occurred
318            */
319            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_U(
320                    long groupId, long userId)
321                    throws com.liferay.portal.kernel.exception.SystemException,
322                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
323    
324            /**
325            * Finds the message boards stats user where groupId = &#63; and userId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
326            *
327            * @param groupId the group id to search with
328            * @param userId the user id to search with
329            * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
330            * @throws SystemException if a system exception occurred
331            */
332            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
333                    long groupId, long userId)
334                    throws com.liferay.portal.kernel.exception.SystemException;
335    
336            /**
337            * Finds the message boards stats user where groupId = &#63; and userId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
338            *
339            * @param groupId the group id to search with
340            * @param userId the user id to search with
341            * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
342            * @throws SystemException if a system exception occurred
343            */
344            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
345                    long groupId, long userId, boolean retrieveFromCache)
346                    throws com.liferay.portal.kernel.exception.SystemException;
347    
348            /**
349            * Finds all the message boards stats users where groupId = &#63; and messageCount &ne; &#63;.
350            *
351            * @param groupId the group id to search with
352            * @param messageCount the message count to search with
353            * @return the matching message boards stats users
354            * @throws SystemException if a system exception occurred
355            */
356            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotM(
357                    long groupId, int messageCount)
358                    throws com.liferay.portal.kernel.exception.SystemException;
359    
360            /**
361            * Finds a range of all the message boards stats users where groupId = &#63; and messageCount &ne; &#63;.
362            *
363            * <p>
364            * 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.
365            * </p>
366            *
367            * @param groupId the group id to search with
368            * @param messageCount the message count to search with
369            * @param start the lower bound of the range of message boards stats users to return
370            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
371            * @return the range of matching message boards stats users
372            * @throws SystemException if a system exception occurred
373            */
374            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotM(
375                    long groupId, int messageCount, int start, int end)
376                    throws com.liferay.portal.kernel.exception.SystemException;
377    
378            /**
379            * Finds an ordered range of all the message boards stats users where groupId = &#63; and messageCount &ne; &#63;.
380            *
381            * <p>
382            * 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.
383            * </p>
384            *
385            * @param groupId the group id to search with
386            * @param messageCount the message count to search with
387            * @param start the lower bound of the range of message boards stats users to return
388            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
389            * @param orderByComparator the comparator to order the results by
390            * @return the ordered range of matching message boards stats users
391            * @throws SystemException if a system exception occurred
392            */
393            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotM(
394                    long groupId, int messageCount, int start, int end,
395                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396                    throws com.liferay.portal.kernel.exception.SystemException;
397    
398            /**
399            * Finds the first message boards stats user in the ordered set where groupId = &#63; and messageCount &ne; &#63;.
400            *
401            * <p>
402            * 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.
403            * </p>
404            *
405            * @param groupId the group id to search with
406            * @param messageCount the message count to search with
407            * @param orderByComparator the comparator to order the set by
408            * @return the first matching message boards stats user
409            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
410            * @throws SystemException if a system exception occurred
411            */
412            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotM_First(
413                    long groupId, int messageCount,
414                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
415                    throws com.liferay.portal.kernel.exception.SystemException,
416                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
417    
418            /**
419            * Finds the last message boards stats user in the ordered set where groupId = &#63; and messageCount &ne; &#63;.
420            *
421            * <p>
422            * 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.
423            * </p>
424            *
425            * @param groupId the group id to search with
426            * @param messageCount the message count to search with
427            * @param orderByComparator the comparator to order the set by
428            * @return the last matching message boards stats user
429            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
430            * @throws SystemException if a system exception occurred
431            */
432            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotM_Last(
433                    long groupId, int messageCount,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.kernel.exception.SystemException,
436                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
437    
438            /**
439            * Finds the message boards stats users before and after the current message boards stats user in the ordered set where groupId = &#63; and messageCount &ne; &#63;.
440            *
441            * <p>
442            * 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.
443            * </p>
444            *
445            * @param statsUserId the primary key of the current message boards stats user
446            * @param groupId the group id to search with
447            * @param messageCount the message count to search with
448            * @param orderByComparator the comparator to order the set by
449            * @return the previous, current, and next message boards stats user
450            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
451            * @throws SystemException if a system exception occurred
452            */
453            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_NotM_PrevAndNext(
454                    long statsUserId, long groupId, int messageCount,
455                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
456                    throws com.liferay.portal.kernel.exception.SystemException,
457                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
458    
459            /**
460            * Finds all the message boards stats users.
461            *
462            * @return the message boards stats users
463            * @throws SystemException if a system exception occurred
464            */
465            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll()
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            /**
469            * Finds a range of all the message boards stats users.
470            *
471            * <p>
472            * 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.
473            * </p>
474            *
475            * @param start the lower bound of the range of message boards stats users to return
476            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
477            * @return the range of message boards stats users
478            * @throws SystemException if a system exception occurred
479            */
480            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
481                    int start, int end)
482                    throws com.liferay.portal.kernel.exception.SystemException;
483    
484            /**
485            * Finds an ordered range of all the message boards stats users.
486            *
487            * <p>
488            * 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.
489            * </p>
490            *
491            * @param start the lower bound of the range of message boards stats users to return
492            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
493            * @param orderByComparator the comparator to order the results by
494            * @return the ordered range of message boards stats users
495            * @throws SystemException if a system exception occurred
496            */
497            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
498                    int start, int end,
499                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
500                    throws com.liferay.portal.kernel.exception.SystemException;
501    
502            /**
503            * Removes all the message boards stats users where groupId = &#63; from the database.
504            *
505            * @param groupId the group id to search with
506            * @throws SystemException if a system exception occurred
507            */
508            public void removeByGroupId(long groupId)
509                    throws com.liferay.portal.kernel.exception.SystemException;
510    
511            /**
512            * Removes all the message boards stats users where userId = &#63; from the database.
513            *
514            * @param userId the user id to search with
515            * @throws SystemException if a system exception occurred
516            */
517            public void removeByUserId(long userId)
518                    throws com.liferay.portal.kernel.exception.SystemException;
519    
520            /**
521            * Removes the message boards stats user where groupId = &#63; and userId = &#63; from the database.
522            *
523            * @param groupId the group id to search with
524            * @param userId the user id to search with
525            * @throws SystemException if a system exception occurred
526            */
527            public void removeByG_U(long groupId, long userId)
528                    throws com.liferay.portal.kernel.exception.SystemException,
529                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
530    
531            /**
532            * Removes all the message boards stats users where groupId = &#63; and messageCount &ne; &#63; from the database.
533            *
534            * @param groupId the group id to search with
535            * @param messageCount the message count to search with
536            * @throws SystemException if a system exception occurred
537            */
538            public void removeByG_NotM(long groupId, int messageCount)
539                    throws com.liferay.portal.kernel.exception.SystemException;
540    
541            /**
542            * Removes all the message boards stats users from the database.
543            *
544            * @throws SystemException if a system exception occurred
545            */
546            public void removeAll()
547                    throws com.liferay.portal.kernel.exception.SystemException;
548    
549            /**
550            * Counts all the message boards stats users where groupId = &#63;.
551            *
552            * @param groupId the group id to search with
553            * @return the number of matching message boards stats users
554            * @throws SystemException if a system exception occurred
555            */
556            public int countByGroupId(long groupId)
557                    throws com.liferay.portal.kernel.exception.SystemException;
558    
559            /**
560            * Counts all the message boards stats users where userId = &#63;.
561            *
562            * @param userId the user id to search with
563            * @return the number of matching message boards stats users
564            * @throws SystemException if a system exception occurred
565            */
566            public int countByUserId(long userId)
567                    throws com.liferay.portal.kernel.exception.SystemException;
568    
569            /**
570            * Counts all the message boards stats users where groupId = &#63; and userId = &#63;.
571            *
572            * @param groupId the group id to search with
573            * @param userId the user id to search with
574            * @return the number of matching message boards stats users
575            * @throws SystemException if a system exception occurred
576            */
577            public int countByG_U(long groupId, long userId)
578                    throws com.liferay.portal.kernel.exception.SystemException;
579    
580            /**
581            * Counts all the message boards stats users where groupId = &#63; and messageCount &ne; &#63;.
582            *
583            * @param groupId the group id to search with
584            * @param messageCount the message count to search with
585            * @return the number of matching message boards stats users
586            * @throws SystemException if a system exception occurred
587            */
588            public int countByG_NotM(long groupId, int messageCount)
589                    throws com.liferay.portal.kernel.exception.SystemException;
590    
591            /**
592            * Counts all the message boards stats users.
593            *
594            * @return the number of message boards stats users
595            * @throws SystemException if a system exception occurred
596            */
597            public int countAll()
598                    throws com.liferay.portal.kernel.exception.SystemException;
599    }