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.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     * Caching information and settings can be found in <code>portal.properties</code>
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             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link MBStatsUserUtil} to access the message boards stats user persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the message boards stats user in the entity cache if it is enabled.
042            *
043            * @param mbStatsUser the message boards stats user
044            */
045            public void cacheResult(
046                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser);
047    
048            /**
049            * Caches the message boards stats users in the entity cache if it is enabled.
050            *
051            * @param mbStatsUsers the message boards stats users
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> mbStatsUsers);
055    
056            /**
057            * Creates a new message boards stats user with the primary key. Does not add the message boards stats user to the database.
058            *
059            * @param statsUserId the primary key for the new message boards stats user
060            * @return the new message boards stats user
061            */
062            public com.liferay.portlet.messageboards.model.MBStatsUser create(
063                    long statsUserId);
064    
065            /**
066            * Removes the message boards stats user with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param statsUserId the primary key of the message boards stats user
069            * @return the message boards stats user that was removed
070            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.messageboards.model.MBStatsUser remove(
074                    long statsUserId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
077    
078            public com.liferay.portlet.messageboards.model.MBStatsUser updateImpl(
079                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
080                    boolean merge)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * Returns the message boards stats user with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchStatsUserException} if it could not be found.
085            *
086            * @param statsUserId the primary key of the message boards stats user
087            * @return the message boards stats user
088            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
089            * @throws SystemException if a system exception occurred
090            */
091            public com.liferay.portlet.messageboards.model.MBStatsUser findByPrimaryKey(
092                    long statsUserId)
093                    throws com.liferay.portal.kernel.exception.SystemException,
094                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
095    
096            /**
097            * Returns the message boards 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 message boards stats user
100            * @return the message boards stats user, or <code>null</code> if a message boards stats user with the primary key could not be found
101            * @throws SystemException if a system exception occurred
102            */
103            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByPrimaryKey(
104                    long statsUserId)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            /**
108            * Returns all the message boards stats users where groupId = &#63;.
109            *
110            * @param groupId the group ID
111            * @return the matching message boards stats users
112            * @throws SystemException if a system exception occurred
113            */
114            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
115                    long groupId)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns a range of all the message boards 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 message boards stats users
127            * @param end the upper bound of the range of message boards stats users (not inclusive)
128            * @return the range of matching message boards stats users
129            * @throws SystemException if a system exception occurred
130            */
131            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> 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 message boards 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 message boards stats users
144            * @param end the upper bound of the range of message boards 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 message boards stats users
147            * @throws SystemException if a system exception occurred
148            */
149            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> 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 message boards 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 message boards stats user
160            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portlet.messageboards.model.MBStatsUser 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.messageboards.NoSuchStatsUserException;
168    
169            /**
170            * Returns the first message boards 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 message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.messageboards.model.MBStatsUser 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 message boards 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 message boards stats user
188            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public com.liferay.portlet.messageboards.model.MBStatsUser 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.messageboards.NoSuchStatsUserException;
196    
197            /**
198            * Returns the last message boards 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 message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
203            * @throws SystemException if a system exception occurred
204            */
205            public com.liferay.portlet.messageboards.model.MBStatsUser 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 message boards stats users before and after the current message boards stats user in the ordered set where groupId = &#63;.
212            *
213            * @param statsUserId the primary key of the current message boards 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 message boards stats user
217            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portlet.messageboards.model.MBStatsUser[] 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.messageboards.NoSuchStatsUserException;
225    
226            /**
227            * Returns all the message boards stats users where userId = &#63;.
228            *
229            * @param userId the user ID
230            * @return the matching message boards stats users
231            * @throws SystemException if a system exception occurred
232            */
233            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
234                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * Returns a range of all the message boards 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 message boards stats users
245            * @param end the upper bound of the range of message boards stats users (not inclusive)
246            * @return the range of matching message boards stats users
247            * @throws SystemException if a system exception occurred
248            */
249            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> 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 message boards 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 message boards stats users
262            * @param end the upper bound of the range of message boards 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 message boards stats users
265            * @throws SystemException if a system exception occurred
266            */
267            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> 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 message boards 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 message boards stats user
278            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
279            * @throws SystemException if a system exception occurred
280            */
281            public com.liferay.portlet.messageboards.model.MBStatsUser 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.messageboards.NoSuchStatsUserException;
286    
287            /**
288            * Returns the first message boards 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 message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
293            * @throws SystemException if a system exception occurred
294            */
295            public com.liferay.portlet.messageboards.model.MBStatsUser 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 message boards 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 message boards stats user
306            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
307            * @throws SystemException if a system exception occurred
308            */
309            public com.liferay.portlet.messageboards.model.MBStatsUser 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.messageboards.NoSuchStatsUserException;
314    
315            /**
316            * Returns the last message boards 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 message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
321            * @throws SystemException if a system exception occurred
322            */
323            public com.liferay.portlet.messageboards.model.MBStatsUser 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 message boards stats users before and after the current message boards stats user in the ordered set where userId = &#63;.
330            *
331            * @param statsUserId the primary key of the current message boards 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 message boards stats user
335            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
336            * @throws SystemException if a system exception occurred
337            */
338            public com.liferay.portlet.messageboards.model.MBStatsUser[] 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.messageboards.NoSuchStatsUserException;
343    
344            /**
345            * Returns 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.
346            *
347            * @param groupId the group ID
348            * @param userId the user ID
349            * @return the matching message boards stats user
350            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
351            * @throws SystemException if a system exception occurred
352            */
353            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_U(
354                    long groupId, long userId)
355                    throws com.liferay.portal.kernel.exception.SystemException,
356                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
357    
358            /**
359            * Returns 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.
360            *
361            * @param groupId the group ID
362            * @param userId the user ID
363            * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
364            * @throws SystemException if a system exception occurred
365            */
366            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
367                    long groupId, long userId)
368                    throws com.liferay.portal.kernel.exception.SystemException;
369    
370            /**
371            * Returns 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.
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 message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
377            * @throws SystemException if a system exception occurred
378            */
379            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
380                    long groupId, long userId, boolean retrieveFromCache)
381                    throws com.liferay.portal.kernel.exception.SystemException;
382    
383            /**
384            * Returns all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
385            *
386            * @param groupId the group ID
387            * @param userId the user ID
388            * @param messageCount the message count
389            * @return the matching message boards stats users
390            * @throws SystemException if a system exception occurred
391            */
392            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM(
393                    long groupId, long userId, int messageCount)
394                    throws com.liferay.portal.kernel.exception.SystemException;
395    
396            /**
397            * Returns a range of all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
398            *
399            * <p>
400            * 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.
401            * </p>
402            *
403            * @param groupId the group ID
404            * @param userId the user ID
405            * @param messageCount the message count
406            * @param start the lower bound of the range of message boards stats users
407            * @param end the upper bound of the range of message boards stats users (not inclusive)
408            * @return the range of matching message boards stats users
409            * @throws SystemException if a system exception occurred
410            */
411            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM(
412                    long groupId, long userId, int messageCount, int start, int end)
413                    throws com.liferay.portal.kernel.exception.SystemException;
414    
415            /**
416            * Returns an ordered range of all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
417            *
418            * <p>
419            * 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.
420            * </p>
421            *
422            * @param groupId the group ID
423            * @param userId the user ID
424            * @param messageCount the message count
425            * @param start the lower bound of the range of message boards stats users
426            * @param end the upper bound of the range of message boards stats users (not inclusive)
427            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
428            * @return the ordered range of matching message boards stats users
429            * @throws SystemException if a system exception occurred
430            */
431            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM(
432                    long groupId, long userId, int messageCount, int start, int end,
433                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
434                    throws com.liferay.portal.kernel.exception.SystemException;
435    
436            /**
437            * Returns the first message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
438            *
439            * @param groupId the group ID
440            * @param userId the user ID
441            * @param messageCount the message count
442            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
443            * @return the first matching message boards stats user
444            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
445            * @throws SystemException if a system exception occurred
446            */
447            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotU_NotM_First(
448                    long groupId, long userId, int messageCount,
449                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
450                    throws com.liferay.portal.kernel.exception.SystemException,
451                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
452    
453            /**
454            * Returns the first message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
455            *
456            * @param groupId the group ID
457            * @param userId the user ID
458            * @param messageCount the message count
459            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
460            * @return the first matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
461            * @throws SystemException if a system exception occurred
462            */
463            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_NotU_NotM_First(
464                    long groupId, long userId, int messageCount,
465                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            /**
469            * Returns the last message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
470            *
471            * @param groupId the group ID
472            * @param userId the user ID
473            * @param messageCount the message count
474            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
475            * @return the last matching message boards stats user
476            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
477            * @throws SystemException if a system exception occurred
478            */
479            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotU_NotM_Last(
480                    long groupId, long userId, int messageCount,
481                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
482                    throws com.liferay.portal.kernel.exception.SystemException,
483                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
484    
485            /**
486            * Returns the last message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
487            *
488            * @param groupId the group ID
489            * @param userId the user ID
490            * @param messageCount the message count
491            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
492            * @return the last matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
493            * @throws SystemException if a system exception occurred
494            */
495            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_NotU_NotM_Last(
496                    long groupId, long userId, int messageCount,
497                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
498                    throws com.liferay.portal.kernel.exception.SystemException;
499    
500            /**
501            * Returns the message boards stats users before and after the current message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
502            *
503            * @param statsUserId the primary key of the current message boards stats user
504            * @param groupId the group ID
505            * @param userId the user ID
506            * @param messageCount the message count
507            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
508            * @return the previous, current, and next message boards stats user
509            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
510            * @throws SystemException if a system exception occurred
511            */
512            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_NotU_NotM_PrevAndNext(
513                    long statsUserId, long groupId, long userId, int messageCount,
514                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
515                    throws com.liferay.portal.kernel.exception.SystemException,
516                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
517    
518            /**
519            * Returns all the message boards stats users.
520            *
521            * @return the message boards stats users
522            * @throws SystemException if a system exception occurred
523            */
524            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll()
525                    throws com.liferay.portal.kernel.exception.SystemException;
526    
527            /**
528            * Returns a range of all the message boards stats users.
529            *
530            * <p>
531            * 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.
532            * </p>
533            *
534            * @param start the lower bound of the range of message boards stats users
535            * @param end the upper bound of the range of message boards stats users (not inclusive)
536            * @return the range of message boards stats users
537            * @throws SystemException if a system exception occurred
538            */
539            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
540                    int start, int end)
541                    throws com.liferay.portal.kernel.exception.SystemException;
542    
543            /**
544            * Returns an ordered range of all the message boards stats users.
545            *
546            * <p>
547            * 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.
548            * </p>
549            *
550            * @param start the lower bound of the range of message boards stats users
551            * @param end the upper bound of the range of message boards stats users (not inclusive)
552            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
553            * @return the ordered range of message boards stats users
554            * @throws SystemException if a system exception occurred
555            */
556            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
557                    int start, int end,
558                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
559                    throws com.liferay.portal.kernel.exception.SystemException;
560    
561            /**
562            * Removes all the message boards stats users where groupId = &#63; from the database.
563            *
564            * @param groupId the group ID
565            * @throws SystemException if a system exception occurred
566            */
567            public void removeByGroupId(long groupId)
568                    throws com.liferay.portal.kernel.exception.SystemException;
569    
570            /**
571            * Removes all the message boards stats users where userId = &#63; from the database.
572            *
573            * @param userId the user ID
574            * @throws SystemException if a system exception occurred
575            */
576            public void removeByUserId(long userId)
577                    throws com.liferay.portal.kernel.exception.SystemException;
578    
579            /**
580            * Removes the message boards stats user where groupId = &#63; and userId = &#63; from the database.
581            *
582            * @param groupId the group ID
583            * @param userId the user ID
584            * @return the message boards stats user that was removed
585            * @throws SystemException if a system exception occurred
586            */
587            public com.liferay.portlet.messageboards.model.MBStatsUser removeByG_U(
588                    long groupId, long userId)
589                    throws com.liferay.portal.kernel.exception.SystemException,
590                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
591    
592            /**
593            * Removes all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63; from the database.
594            *
595            * @param groupId the group ID
596            * @param userId the user ID
597            * @param messageCount the message count
598            * @throws SystemException if a system exception occurred
599            */
600            public void removeByG_NotU_NotM(long groupId, long userId, int messageCount)
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    
603            /**
604            * Removes all the message boards stats users from the database.
605            *
606            * @throws SystemException if a system exception occurred
607            */
608            public void removeAll()
609                    throws com.liferay.portal.kernel.exception.SystemException;
610    
611            /**
612            * Returns the number of message boards stats users where groupId = &#63;.
613            *
614            * @param groupId the group ID
615            * @return the number of matching message boards stats users
616            * @throws SystemException if a system exception occurred
617            */
618            public int countByGroupId(long groupId)
619                    throws com.liferay.portal.kernel.exception.SystemException;
620    
621            /**
622            * Returns the number of message boards stats users where userId = &#63;.
623            *
624            * @param userId the user ID
625            * @return the number of matching message boards stats users
626            * @throws SystemException if a system exception occurred
627            */
628            public int countByUserId(long userId)
629                    throws com.liferay.portal.kernel.exception.SystemException;
630    
631            /**
632            * Returns the number of message boards stats users where groupId = &#63; and userId = &#63;.
633            *
634            * @param groupId the group ID
635            * @param userId the user ID
636            * @return the number of matching message boards stats users
637            * @throws SystemException if a system exception occurred
638            */
639            public int countByG_U(long groupId, long userId)
640                    throws com.liferay.portal.kernel.exception.SystemException;
641    
642            /**
643            * Returns the number of message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
644            *
645            * @param groupId the group ID
646            * @param userId the user ID
647            * @param messageCount the message count
648            * @return the number of matching message boards stats users
649            * @throws SystemException if a system exception occurred
650            */
651            public int countByG_NotU_NotM(long groupId, long userId, int messageCount)
652                    throws com.liferay.portal.kernel.exception.SystemException;
653    
654            /**
655            * Returns the number of message boards stats users.
656            *
657            * @return the number of message boards stats users
658            * @throws SystemException if a system exception occurred
659            */
660            public int countAll()
661                    throws com.liferay.portal.kernel.exception.SystemException;
662    }