001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.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            * <p>
158            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
159            * </p>
160            *
161            * @param groupId the group ID
162            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
163            * @return the first matching message boards stats user
164            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
165            * @throws SystemException if a system exception occurred
166            */
167            public com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_First(
168                    long groupId,
169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170                    throws com.liferay.portal.kernel.exception.SystemException,
171                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
172    
173            /**
174            * Returns the last message boards stats user in the ordered set where groupId = &#63;.
175            *
176            * <p>
177            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
178            * </p>
179            *
180            * @param groupId the group ID
181            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
182            * @return the last matching message boards stats user
183            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_Last(
187                    long groupId,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
191    
192            /**
193            * Returns the message boards stats users before and after the current message boards stats user in the ordered set where groupId = &#63;.
194            *
195            * <p>
196            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
197            * </p>
198            *
199            * @param statsUserId the primary key of the current message boards stats user
200            * @param groupId the group ID
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the previous, current, and next message boards stats user
203            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
204            * @throws SystemException if a system exception occurred
205            */
206            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByGroupId_PrevAndNext(
207                    long statsUserId, long groupId,
208                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209                    throws com.liferay.portal.kernel.exception.SystemException,
210                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
211    
212            /**
213            * Returns all the message boards stats users where userId = &#63;.
214            *
215            * @param userId the user ID
216            * @return the matching message boards stats users
217            * @throws SystemException if a system exception occurred
218            */
219            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
220                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
221    
222            /**
223            * Returns a range of all the message boards stats users where userId = &#63;.
224            *
225            * <p>
226            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
227            * </p>
228            *
229            * @param userId the user ID
230            * @param start the lower bound of the range of message boards stats users
231            * @param end the upper bound of the range of message boards stats users (not inclusive)
232            * @return the range of matching message boards stats users
233            * @throws SystemException if a system exception occurred
234            */
235            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
236                    long userId, int start, int end)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            /**
240            * Returns an ordered range of all the message boards stats users where userId = &#63;.
241            *
242            * <p>
243            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
244            * </p>
245            *
246            * @param userId the user ID
247            * @param start the lower bound of the range of message boards stats users
248            * @param end the upper bound of the range of message boards stats users (not inclusive)
249            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
250            * @return the ordered range of matching message boards stats users
251            * @throws SystemException if a system exception occurred
252            */
253            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
254                    long userId, int start, int end,
255                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
256                    throws com.liferay.portal.kernel.exception.SystemException;
257    
258            /**
259            * Returns the first message boards stats user in the ordered set where userId = &#63;.
260            *
261            * <p>
262            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
263            * </p>
264            *
265            * @param userId the user ID
266            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
267            * @return the first matching message boards stats user
268            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
269            * @throws SystemException if a system exception occurred
270            */
271            public com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_First(
272                    long userId,
273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274                    throws com.liferay.portal.kernel.exception.SystemException,
275                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
276    
277            /**
278            * Returns the last message boards stats user in the ordered set where userId = &#63;.
279            *
280            * <p>
281            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
282            * </p>
283            *
284            * @param userId the user ID
285            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
286            * @return the last matching message boards stats user
287            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
288            * @throws SystemException if a system exception occurred
289            */
290            public com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_Last(
291                    long userId,
292                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293                    throws com.liferay.portal.kernel.exception.SystemException,
294                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
295    
296            /**
297            * Returns the message boards stats users before and after the current message boards stats user in the ordered set where userId = &#63;.
298            *
299            * <p>
300            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
301            * </p>
302            *
303            * @param statsUserId the primary key of the current message boards stats user
304            * @param userId the user ID
305            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
306            * @return the previous, current, and next message boards stats user
307            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
308            * @throws SystemException if a system exception occurred
309            */
310            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByUserId_PrevAndNext(
311                    long statsUserId, long userId,
312                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
313                    throws com.liferay.portal.kernel.exception.SystemException,
314                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
315    
316            /**
317            * 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.
318            *
319            * @param groupId the group ID
320            * @param userId the user ID
321            * @return the matching message boards stats user
322            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
323            * @throws SystemException if a system exception occurred
324            */
325            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_U(
326                    long groupId, long userId)
327                    throws com.liferay.portal.kernel.exception.SystemException,
328                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
329    
330            /**
331            * 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.
332            *
333            * @param groupId the group ID
334            * @param userId the user ID
335            * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
336            * @throws SystemException if a system exception occurred
337            */
338            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
339                    long groupId, long userId)
340                    throws com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * 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.
344            *
345            * @param groupId the group ID
346            * @param userId the user ID
347            * @param retrieveFromCache whether to use the finder cache
348            * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
349            * @throws SystemException if a system exception occurred
350            */
351            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
352                    long groupId, long userId, boolean retrieveFromCache)
353                    throws com.liferay.portal.kernel.exception.SystemException;
354    
355            /**
356            * Returns all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
357            *
358            * @param groupId the group ID
359            * @param userId the user ID
360            * @param messageCount the message count
361            * @return the matching message boards stats users
362            * @throws SystemException if a system exception occurred
363            */
364            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM(
365                    long groupId, long userId, int messageCount)
366                    throws com.liferay.portal.kernel.exception.SystemException;
367    
368            /**
369            * Returns a range of all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
370            *
371            * <p>
372            * 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.
373            * </p>
374            *
375            * @param groupId the group ID
376            * @param userId the user ID
377            * @param messageCount the message count
378            * @param start the lower bound of the range of message boards stats users
379            * @param end the upper bound of the range of message boards stats users (not inclusive)
380            * @return the range of matching message boards stats users
381            * @throws SystemException if a system exception occurred
382            */
383            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM(
384                    long groupId, long userId, int messageCount, int start, int end)
385                    throws com.liferay.portal.kernel.exception.SystemException;
386    
387            /**
388            * Returns an ordered range of all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
389            *
390            * <p>
391            * 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.
392            * </p>
393            *
394            * @param groupId the group ID
395            * @param userId the user ID
396            * @param messageCount the message count
397            * @param start the lower bound of the range of message boards stats users
398            * @param end the upper bound of the range of message boards stats users (not inclusive)
399            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
400            * @return the ordered range of matching message boards stats users
401            * @throws SystemException if a system exception occurred
402            */
403            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM(
404                    long groupId, long userId, int messageCount, int start, int end,
405                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
406                    throws com.liferay.portal.kernel.exception.SystemException;
407    
408            /**
409            * Returns the first message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
410            *
411            * <p>
412            * 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.
413            * </p>
414            *
415            * @param groupId the group ID
416            * @param userId the user ID
417            * @param messageCount the message count
418            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
419            * @return the first matching message boards stats user
420            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
421            * @throws SystemException if a system exception occurred
422            */
423            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotU_NotM_First(
424                    long groupId, long userId, int messageCount,
425                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
426                    throws com.liferay.portal.kernel.exception.SystemException,
427                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
428    
429            /**
430            * Returns the last message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
431            *
432            * <p>
433            * 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.
434            * </p>
435            *
436            * @param groupId the group ID
437            * @param userId the user ID
438            * @param messageCount the message count
439            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
440            * @return the last matching message boards stats user
441            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
442            * @throws SystemException if a system exception occurred
443            */
444            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotU_NotM_Last(
445                    long groupId, long userId, int messageCount,
446                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
447                    throws com.liferay.portal.kernel.exception.SystemException,
448                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
449    
450            /**
451            * 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;.
452            *
453            * <p>
454            * 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.
455            * </p>
456            *
457            * @param statsUserId the primary key of the current message boards stats user
458            * @param groupId the group ID
459            * @param userId the user ID
460            * @param messageCount the message count
461            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
462            * @return the previous, current, and next message boards stats user
463            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
464            * @throws SystemException if a system exception occurred
465            */
466            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_NotU_NotM_PrevAndNext(
467                    long statsUserId, long groupId, long userId, int messageCount,
468                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
469                    throws com.liferay.portal.kernel.exception.SystemException,
470                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
471    
472            /**
473            * Returns all the message boards stats users.
474            *
475            * @return the message boards stats users
476            * @throws SystemException if a system exception occurred
477            */
478            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll()
479                    throws com.liferay.portal.kernel.exception.SystemException;
480    
481            /**
482            * Returns a range of all the message boards stats users.
483            *
484            * <p>
485            * 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.
486            * </p>
487            *
488            * @param start the lower bound of the range of message boards stats users
489            * @param end the upper bound of the range of message boards stats users (not inclusive)
490            * @return the range of message boards stats users
491            * @throws SystemException if a system exception occurred
492            */
493            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
494                    int start, int end)
495                    throws com.liferay.portal.kernel.exception.SystemException;
496    
497            /**
498            * Returns an ordered range of all the message boards stats users.
499            *
500            * <p>
501            * 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.
502            * </p>
503            *
504            * @param start the lower bound of the range of message boards stats users
505            * @param end the upper bound of the range of message boards stats users (not inclusive)
506            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
507            * @return the ordered range of message boards stats users
508            * @throws SystemException if a system exception occurred
509            */
510            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
511                    int start, int end,
512                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
513                    throws com.liferay.portal.kernel.exception.SystemException;
514    
515            /**
516            * Removes all the message boards stats users where groupId = &#63; from the database.
517            *
518            * @param groupId the group ID
519            * @throws SystemException if a system exception occurred
520            */
521            public void removeByGroupId(long groupId)
522                    throws com.liferay.portal.kernel.exception.SystemException;
523    
524            /**
525            * Removes all the message boards stats users where userId = &#63; from the database.
526            *
527            * @param userId the user ID
528            * @throws SystemException if a system exception occurred
529            */
530            public void removeByUserId(long userId)
531                    throws com.liferay.portal.kernel.exception.SystemException;
532    
533            /**
534            * Removes the message boards stats user where groupId = &#63; and userId = &#63; from the database.
535            *
536            * @param groupId the group ID
537            * @param userId the user ID
538            * @throws SystemException if a system exception occurred
539            */
540            public void removeByG_U(long groupId, long userId)
541                    throws com.liferay.portal.kernel.exception.SystemException,
542                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
543    
544            /**
545            * Removes all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63; from the database.
546            *
547            * @param groupId the group ID
548            * @param userId the user ID
549            * @param messageCount the message count
550            * @throws SystemException if a system exception occurred
551            */
552            public void removeByG_NotU_NotM(long groupId, long userId, int messageCount)
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            /**
556            * Removes all the message boards stats users from the database.
557            *
558            * @throws SystemException if a system exception occurred
559            */
560            public void removeAll()
561                    throws com.liferay.portal.kernel.exception.SystemException;
562    
563            /**
564            * Returns the number of message boards stats users where groupId = &#63;.
565            *
566            * @param groupId the group ID
567            * @return the number of matching message boards stats users
568            * @throws SystemException if a system exception occurred
569            */
570            public int countByGroupId(long groupId)
571                    throws com.liferay.portal.kernel.exception.SystemException;
572    
573            /**
574            * Returns the number of message boards stats users where userId = &#63;.
575            *
576            * @param userId the user ID
577            * @return the number of matching message boards stats users
578            * @throws SystemException if a system exception occurred
579            */
580            public int countByUserId(long userId)
581                    throws com.liferay.portal.kernel.exception.SystemException;
582    
583            /**
584            * Returns the number of message boards stats users where groupId = &#63; and userId = &#63;.
585            *
586            * @param groupId the group ID
587            * @param userId the user ID
588            * @return the number of matching message boards stats users
589            * @throws SystemException if a system exception occurred
590            */
591            public int countByG_U(long groupId, long userId)
592                    throws com.liferay.portal.kernel.exception.SystemException;
593    
594            /**
595            * Returns the number of message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
596            *
597            * @param groupId the group ID
598            * @param userId the user ID
599            * @param messageCount the message count
600            * @return the number of matching message boards stats users
601            * @throws SystemException if a system exception occurred
602            */
603            public int countByG_NotU_NotM(long groupId, long userId, int messageCount)
604                    throws com.liferay.portal.kernel.exception.SystemException;
605    
606            /**
607            * Returns the number of message boards stats users.
608            *
609            * @return the number of message boards stats users
610            * @throws SystemException if a system exception occurred
611            */
612            public int countAll()
613                    throws com.liferay.portal.kernel.exception.SystemException;
614    }