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            * Returns all the message boards stats users where groupId = &#63;.
042            *
043            * @param groupId the group ID
044            * @return the matching message boards stats users
045            * @throws SystemException if a system exception occurred
046            */
047            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
048                    long groupId)
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            /**
052            * Returns a range of all the message boards stats users where groupId = &#63;.
053            *
054            * <p>
055            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBStatsUserModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
056            * </p>
057            *
058            * @param groupId the group ID
059            * @param start the lower bound of the range of message boards stats users
060            * @param end the upper bound of the range of message boards stats users (not inclusive)
061            * @return the range of matching message boards stats users
062            * @throws SystemException if a system exception occurred
063            */
064            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
065                    long groupId, int start, int end)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            /**
069            * Returns an ordered range of all the message boards stats users where groupId = &#63;.
070            *
071            * <p>
072            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBStatsUserModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
073            * </p>
074            *
075            * @param groupId the group ID
076            * @param start the lower bound of the range of message boards stats users
077            * @param end the upper bound of the range of message boards stats users (not inclusive)
078            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
079            * @return the ordered range of matching message boards stats users
080            * @throws SystemException if a system exception occurred
081            */
082            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
083                    long groupId, int start, int end,
084                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            /**
088            * Returns the first message boards stats user in the ordered set where groupId = &#63;.
089            *
090            * @param groupId the group ID
091            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
092            * @return the first matching message boards stats user
093            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
094            * @throws SystemException if a system exception occurred
095            */
096            public com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_First(
097                    long groupId,
098                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
099                    throws com.liferay.portal.kernel.exception.SystemException,
100                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
101    
102            /**
103            * Returns the first message boards stats user in the ordered set where groupId = &#63;.
104            *
105            * @param groupId the group ID
106            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
107            * @return the first matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
108            * @throws SystemException if a system exception occurred
109            */
110            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByGroupId_First(
111                    long groupId,
112                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns the last message boards stats user in the ordered set where groupId = &#63;.
117            *
118            * @param groupId the group ID
119            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
120            * @return the last matching message boards stats user
121            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
122            * @throws SystemException if a system exception occurred
123            */
124            public com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_Last(
125                    long groupId,
126                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127                    throws com.liferay.portal.kernel.exception.SystemException,
128                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
129    
130            /**
131            * Returns the last message boards stats user in the ordered set where groupId = &#63;.
132            *
133            * @param groupId the group ID
134            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
135            * @return the last matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
136            * @throws SystemException if a system exception occurred
137            */
138            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByGroupId_Last(
139                    long groupId,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            /**
144            * Returns the message boards stats users before and after the current message boards stats user in the ordered set where groupId = &#63;.
145            *
146            * @param statsUserId the primary key of the current message boards stats user
147            * @param groupId the group ID
148            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
149            * @return the previous, current, and next message boards stats user
150            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByGroupId_PrevAndNext(
154                    long statsUserId, long groupId,
155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156                    throws com.liferay.portal.kernel.exception.SystemException,
157                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
158    
159            /**
160            * Removes all the message boards stats users where groupId = &#63; from the database.
161            *
162            * @param groupId the group ID
163            * @throws SystemException if a system exception occurred
164            */
165            public void removeByGroupId(long groupId)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            /**
169            * Returns the number of message boards stats users where groupId = &#63;.
170            *
171            * @param groupId the group ID
172            * @return the number of matching message boards stats users
173            * @throws SystemException if a system exception occurred
174            */
175            public int countByGroupId(long groupId)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * Returns all the message boards stats users where userId = &#63;.
180            *
181            * @param userId the user ID
182            * @return the matching message boards stats users
183            * @throws SystemException if a system exception occurred
184            */
185            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
186                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
187    
188            /**
189            * Returns a range of all the message boards stats users where userId = &#63;.
190            *
191            * <p>
192            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBStatsUserModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
193            * </p>
194            *
195            * @param userId the user ID
196            * @param start the lower bound of the range of message boards stats users
197            * @param end the upper bound of the range of message boards stats users (not inclusive)
198            * @return the range of matching message boards stats users
199            * @throws SystemException if a system exception occurred
200            */
201            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
202                    long userId, int start, int end)
203                    throws com.liferay.portal.kernel.exception.SystemException;
204    
205            /**
206            * Returns an ordered range of all the message boards stats users where userId = &#63;.
207            *
208            * <p>
209            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBStatsUserModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
210            * </p>
211            *
212            * @param userId the user ID
213            * @param start the lower bound of the range of message boards stats users
214            * @param end the upper bound of the range of message boards stats users (not inclusive)
215            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
216            * @return the ordered range of 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, int start, int end,
221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222                    throws com.liferay.portal.kernel.exception.SystemException;
223    
224            /**
225            * Returns the first message boards stats user in the ordered set where userId = &#63;.
226            *
227            * @param userId the user ID
228            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
229            * @return the first matching message boards stats user
230            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
231            * @throws SystemException if a system exception occurred
232            */
233            public com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_First(
234                    long userId,
235                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
236                    throws com.liferay.portal.kernel.exception.SystemException,
237                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
238    
239            /**
240            * Returns the first message boards stats user in the ordered set where userId = &#63;.
241            *
242            * @param userId the user ID
243            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
244            * @return the first matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
245            * @throws SystemException if a system exception occurred
246            */
247            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByUserId_First(
248                    long userId,
249                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            /**
253            * Returns the last message boards stats user in the ordered set where userId = &#63;.
254            *
255            * @param userId the user ID
256            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
257            * @return the last matching message boards stats user
258            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
259            * @throws SystemException if a system exception occurred
260            */
261            public com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_Last(
262                    long userId,
263                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264                    throws com.liferay.portal.kernel.exception.SystemException,
265                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
266    
267            /**
268            * Returns the last message boards stats user in the ordered set where userId = &#63;.
269            *
270            * @param userId the user ID
271            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
272            * @return the last matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
273            * @throws SystemException if a system exception occurred
274            */
275            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByUserId_Last(
276                    long userId,
277                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
278                    throws com.liferay.portal.kernel.exception.SystemException;
279    
280            /**
281            * Returns the message boards stats users before and after the current message boards stats user in the ordered set where userId = &#63;.
282            *
283            * @param statsUserId the primary key of the current message boards stats user
284            * @param userId the user ID
285            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
286            * @return the previous, current, and next message boards stats user
287            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
288            * @throws SystemException if a system exception occurred
289            */
290            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByUserId_PrevAndNext(
291                    long statsUserId, 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            * Removes all the message boards stats users where userId = &#63; from the database.
298            *
299            * @param userId the user ID
300            * @throws SystemException if a system exception occurred
301            */
302            public void removeByUserId(long userId)
303                    throws com.liferay.portal.kernel.exception.SystemException;
304    
305            /**
306            * Returns the number of message boards stats users where userId = &#63;.
307            *
308            * @param userId the user ID
309            * @return the number of matching message boards stats users
310            * @throws SystemException if a system exception occurred
311            */
312            public int countByUserId(long userId)
313                    throws com.liferay.portal.kernel.exception.SystemException;
314    
315            /**
316            * 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.
317            *
318            * @param groupId the group ID
319            * @param userId the user ID
320            * @return the matching message boards stats user
321            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
322            * @throws SystemException if a system exception occurred
323            */
324            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_U(
325                    long groupId, long userId)
326                    throws com.liferay.portal.kernel.exception.SystemException,
327                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
328    
329            /**
330            * 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.
331            *
332            * @param groupId the group ID
333            * @param userId the user ID
334            * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
335            * @throws SystemException if a system exception occurred
336            */
337            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
338                    long groupId, long userId)
339                    throws com.liferay.portal.kernel.exception.SystemException;
340    
341            /**
342            * 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.
343            *
344            * @param groupId the group ID
345            * @param userId the user ID
346            * @param retrieveFromCache whether to use the finder cache
347            * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
348            * @throws SystemException if a system exception occurred
349            */
350            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
351                    long groupId, long userId, boolean retrieveFromCache)
352                    throws com.liferay.portal.kernel.exception.SystemException;
353    
354            /**
355            * Removes the message boards stats user where groupId = &#63; and userId = &#63; from the database.
356            *
357            * @param groupId the group ID
358            * @param userId the user ID
359            * @return the message boards stats user that was removed
360            * @throws SystemException if a system exception occurred
361            */
362            public com.liferay.portlet.messageboards.model.MBStatsUser removeByG_U(
363                    long groupId, long userId)
364                    throws com.liferay.portal.kernel.exception.SystemException,
365                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
366    
367            /**
368            * Returns the number of message boards stats users where groupId = &#63; and userId = &#63;.
369            *
370            * @param groupId the group ID
371            * @param userId the user ID
372            * @return the number of matching message boards stats users
373            * @throws SystemException if a system exception occurred
374            */
375            public int countByG_U(long groupId, long userId)
376                    throws com.liferay.portal.kernel.exception.SystemException;
377    
378            /**
379            * Returns all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
380            *
381            * @param groupId the group ID
382            * @param userId the user ID
383            * @param messageCount the message count
384            * @return the matching message boards stats users
385            * @throws SystemException if a system exception occurred
386            */
387            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM(
388                    long groupId, long userId, int messageCount)
389                    throws com.liferay.portal.kernel.exception.SystemException;
390    
391            /**
392            * Returns a range of all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
393            *
394            * <p>
395            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBStatsUserModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
396            * </p>
397            *
398            * @param groupId the group ID
399            * @param userId the user ID
400            * @param messageCount the message count
401            * @param start the lower bound of the range of message boards stats users
402            * @param end the upper bound of the range of message boards stats users (not inclusive)
403            * @return the range of matching message boards stats users
404            * @throws SystemException if a system exception occurred
405            */
406            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM(
407                    long groupId, long userId, int messageCount, int start, int end)
408                    throws com.liferay.portal.kernel.exception.SystemException;
409    
410            /**
411            * Returns an ordered range of all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
412            *
413            * <p>
414            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBStatsUserModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
415            * </p>
416            *
417            * @param groupId the group ID
418            * @param userId the user ID
419            * @param messageCount the message count
420            * @param start the lower bound of the range of message boards stats users
421            * @param end the upper bound of the range of message boards stats users (not inclusive)
422            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
423            * @return the ordered range of matching message boards stats users
424            * @throws SystemException if a system exception occurred
425            */
426            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM(
427                    long groupId, long userId, int messageCount, int start, int end,
428                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
429                    throws com.liferay.portal.kernel.exception.SystemException;
430    
431            /**
432            * Returns the first message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
433            *
434            * @param groupId the group ID
435            * @param userId the user ID
436            * @param messageCount the message count
437            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
438            * @return the first matching message boards stats user
439            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
440            * @throws SystemException if a system exception occurred
441            */
442            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotU_NotM_First(
443                    long groupId, long userId, int messageCount,
444                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
445                    throws com.liferay.portal.kernel.exception.SystemException,
446                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
447    
448            /**
449            * Returns the first message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
450            *
451            * @param groupId the group ID
452            * @param userId the user ID
453            * @param messageCount the message count
454            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
455            * @return the first matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
456            * @throws SystemException if a system exception occurred
457            */
458            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_NotU_NotM_First(
459                    long groupId, long userId, int messageCount,
460                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
461                    throws com.liferay.portal.kernel.exception.SystemException;
462    
463            /**
464            * Returns the last message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
465            *
466            * @param groupId the group ID
467            * @param userId the user ID
468            * @param messageCount the message count
469            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
470            * @return the last matching message boards stats user
471            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
472            * @throws SystemException if a system exception occurred
473            */
474            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotU_NotM_Last(
475                    long groupId, long userId, int messageCount,
476                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
477                    throws com.liferay.portal.kernel.exception.SystemException,
478                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
479    
480            /**
481            * Returns the last message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
482            *
483            * @param groupId the group ID
484            * @param userId the user ID
485            * @param messageCount the message count
486            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
487            * @return the last matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
488            * @throws SystemException if a system exception occurred
489            */
490            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_NotU_NotM_Last(
491                    long groupId, long userId, int messageCount,
492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493                    throws com.liferay.portal.kernel.exception.SystemException;
494    
495            /**
496            * 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;.
497            *
498            * @param statsUserId the primary key of the current message boards stats user
499            * @param groupId the group ID
500            * @param userId the user ID
501            * @param messageCount the message count
502            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
503            * @return the previous, current, and next message boards stats user
504            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
505            * @throws SystemException if a system exception occurred
506            */
507            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_NotU_NotM_PrevAndNext(
508                    long statsUserId, long groupId, long userId, int messageCount,
509                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
510                    throws com.liferay.portal.kernel.exception.SystemException,
511                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
512    
513            /**
514            * Removes all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63; from the database.
515            *
516            * @param groupId the group ID
517            * @param userId the user ID
518            * @param messageCount the message count
519            * @throws SystemException if a system exception occurred
520            */
521            public void removeByG_NotU_NotM(long groupId, long userId, int messageCount)
522                    throws com.liferay.portal.kernel.exception.SystemException;
523    
524            /**
525            * Returns the number of message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
526            *
527            * @param groupId the group ID
528            * @param userId the user ID
529            * @param messageCount the message count
530            * @return the number of matching message boards stats users
531            * @throws SystemException if a system exception occurred
532            */
533            public int countByG_NotU_NotM(long groupId, long userId, int messageCount)
534                    throws com.liferay.portal.kernel.exception.SystemException;
535    
536            /**
537            * Caches the message boards stats user in the entity cache if it is enabled.
538            *
539            * @param mbStatsUser the message boards stats user
540            */
541            public void cacheResult(
542                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser);
543    
544            /**
545            * Caches the message boards stats users in the entity cache if it is enabled.
546            *
547            * @param mbStatsUsers the message boards stats users
548            */
549            public void cacheResult(
550                    java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> mbStatsUsers);
551    
552            /**
553            * Creates a new message boards stats user with the primary key. Does not add the message boards stats user to the database.
554            *
555            * @param statsUserId the primary key for the new message boards stats user
556            * @return the new message boards stats user
557            */
558            public com.liferay.portlet.messageboards.model.MBStatsUser create(
559                    long statsUserId);
560    
561            /**
562            * Removes the message boards stats user with the primary key from the database. Also notifies the appropriate model listeners.
563            *
564            * @param statsUserId the primary key of the message boards stats user
565            * @return the message boards stats user that was removed
566            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
567            * @throws SystemException if a system exception occurred
568            */
569            public com.liferay.portlet.messageboards.model.MBStatsUser remove(
570                    long statsUserId)
571                    throws com.liferay.portal.kernel.exception.SystemException,
572                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
573    
574            public com.liferay.portlet.messageboards.model.MBStatsUser updateImpl(
575                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
576                    throws com.liferay.portal.kernel.exception.SystemException;
577    
578            /**
579            * 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.
580            *
581            * @param statsUserId the primary key of the message boards stats user
582            * @return the message boards stats user
583            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
584            * @throws SystemException if a system exception occurred
585            */
586            public com.liferay.portlet.messageboards.model.MBStatsUser findByPrimaryKey(
587                    long statsUserId)
588                    throws com.liferay.portal.kernel.exception.SystemException,
589                            com.liferay.portlet.messageboards.NoSuchStatsUserException;
590    
591            /**
592            * Returns the message boards stats user with the primary key or returns <code>null</code> if it could not be found.
593            *
594            * @param statsUserId the primary key of the message boards stats user
595            * @return the message boards stats user, or <code>null</code> if a message boards stats user with the primary key could not be found
596            * @throws SystemException if a system exception occurred
597            */
598            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByPrimaryKey(
599                    long statsUserId)
600                    throws com.liferay.portal.kernel.exception.SystemException;
601    
602            /**
603            * Returns all the message boards stats users.
604            *
605            * @return the message boards stats users
606            * @throws SystemException if a system exception occurred
607            */
608            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll()
609                    throws com.liferay.portal.kernel.exception.SystemException;
610    
611            /**
612            * Returns a range of all the message boards stats users.
613            *
614            * <p>
615            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBStatsUserModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
616            * </p>
617            *
618            * @param start the lower bound of the range of message boards stats users
619            * @param end the upper bound of the range of message boards stats users (not inclusive)
620            * @return the range of message boards stats users
621            * @throws SystemException if a system exception occurred
622            */
623            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
624                    int start, int end)
625                    throws com.liferay.portal.kernel.exception.SystemException;
626    
627            /**
628            * Returns an ordered range of all the message boards stats users.
629            *
630            * <p>
631            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBStatsUserModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
632            * </p>
633            *
634            * @param start the lower bound of the range of message boards stats users
635            * @param end the upper bound of the range of message boards stats users (not inclusive)
636            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
637            * @return the ordered range of message boards stats users
638            * @throws SystemException if a system exception occurred
639            */
640            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
641                    int start, int end,
642                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
643                    throws com.liferay.portal.kernel.exception.SystemException;
644    
645            /**
646            * Removes all the message boards stats users from the database.
647            *
648            * @throws SystemException if a system exception occurred
649            */
650            public void removeAll()
651                    throws com.liferay.portal.kernel.exception.SystemException;
652    
653            /**
654            * Returns the number of message boards stats users.
655            *
656            * @return the number of message boards stats users
657            * @throws SystemException if a system exception occurred
658            */
659            public int countAll()
660                    throws com.liferay.portal.kernel.exception.SystemException;
661    }