001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.messageboards.model.MBStatsUser;
022    
023    /**
024     * The persistence interface for the message boards stats user service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see com.liferay.portlet.messageboards.service.persistence.impl.MBStatsUserPersistenceImpl
032     * @see MBStatsUserUtil
033     * @generated
034     */
035    @ProviderType
036    public interface MBStatsUserPersistence extends BasePersistence<MBStatsUser> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * 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.
041             */
042    
043            /**
044            * Returns all the message boards stats users where groupId = &#63;.
045            *
046            * @param groupId the group ID
047            * @return the matching message boards stats users
048            */
049            public java.util.List<MBStatsUser> findByGroupId(long groupId);
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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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            */
063            public java.util.List<MBStatsUser> findByGroupId(long groupId, int start,
064                    int end);
065    
066            /**
067            * Returns an ordered range of all the message boards stats users where groupId = &#63;.
068            *
069            * <p>
070            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
071            * </p>
072            *
073            * @param groupId the group ID
074            * @param start the lower bound of the range of message boards stats users
075            * @param end the upper bound of the range of message boards stats users (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching message boards stats users
078            */
079            public java.util.List<MBStatsUser> findByGroupId(long groupId, int start,
080                    int end,
081                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator);
082    
083            /**
084            * Returns an ordered range of all the message boards stats users where groupId = &#63;.
085            *
086            * <p>
087            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
088            * </p>
089            *
090            * @param groupId the group ID
091            * @param start the lower bound of the range of message boards stats users
092            * @param end the upper bound of the range of message boards stats users (not inclusive)
093            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
094            * @param retrieveFromCache whether to retrieve from the finder cache
095            * @return the ordered range of matching message boards stats users
096            */
097            public java.util.List<MBStatsUser> findByGroupId(long groupId, int start,
098                    int end,
099                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator,
100                    boolean retrieveFromCache);
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
108            * @throws NoSuchStatsUserException if a matching message boards stats user could not be found
109            */
110            public MBStatsUser findByGroupId_First(long groupId,
111                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator)
112                    throws com.liferay.portlet.messageboards.exception.NoSuchStatsUserException;
113    
114            /**
115            * Returns the first message boards stats user in the ordered set where groupId = &#63;.
116            *
117            * @param groupId the group ID
118            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
119            * @return the first matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
120            */
121            public MBStatsUser fetchByGroupId_First(long groupId,
122                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator);
123    
124            /**
125            * Returns the last message boards stats user in the ordered set where groupId = &#63;.
126            *
127            * @param groupId the group ID
128            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
129            * @return the last matching message boards stats user
130            * @throws NoSuchStatsUserException if a matching message boards stats user could not be found
131            */
132            public MBStatsUser findByGroupId_Last(long groupId,
133                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator)
134                    throws com.liferay.portlet.messageboards.exception.NoSuchStatsUserException;
135    
136            /**
137            * Returns the last message boards stats user in the ordered set where groupId = &#63;.
138            *
139            * @param groupId the group ID
140            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
141            * @return the last matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
142            */
143            public MBStatsUser fetchByGroupId_Last(long groupId,
144                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator);
145    
146            /**
147            * Returns the message boards stats users before and after the current message boards stats user in the ordered set where groupId = &#63;.
148            *
149            * @param statsUserId the primary key of the current message boards stats user
150            * @param groupId the group ID
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next message boards stats user
153            * @throws NoSuchStatsUserException if a message boards stats user with the primary key could not be found
154            */
155            public MBStatsUser[] findByGroupId_PrevAndNext(long statsUserId,
156                    long groupId,
157                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator)
158                    throws com.liferay.portlet.messageboards.exception.NoSuchStatsUserException;
159    
160            /**
161            * Removes all the message boards stats users where groupId = &#63; from the database.
162            *
163            * @param groupId the group ID
164            */
165            public void removeByGroupId(long groupId);
166    
167            /**
168            * Returns the number of message boards stats users where groupId = &#63;.
169            *
170            * @param groupId the group ID
171            * @return the number of matching message boards stats users
172            */
173            public int countByGroupId(long groupId);
174    
175            /**
176            * Returns all the message boards stats users where userId = &#63;.
177            *
178            * @param userId the user ID
179            * @return the matching message boards stats users
180            */
181            public java.util.List<MBStatsUser> findByUserId(long userId);
182    
183            /**
184            * Returns a range of all the message boards stats users where userId = &#63;.
185            *
186            * <p>
187            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
188            * </p>
189            *
190            * @param userId the user ID
191            * @param start the lower bound of the range of message boards stats users
192            * @param end the upper bound of the range of message boards stats users (not inclusive)
193            * @return the range of matching message boards stats users
194            */
195            public java.util.List<MBStatsUser> findByUserId(long userId, int start,
196                    int end);
197    
198            /**
199            * Returns an ordered range of all the message boards stats users where userId = &#63;.
200            *
201            * <p>
202            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
203            * </p>
204            *
205            * @param userId the user ID
206            * @param start the lower bound of the range of message boards stats users
207            * @param end the upper bound of the range of message boards stats users (not inclusive)
208            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
209            * @return the ordered range of matching message boards stats users
210            */
211            public java.util.List<MBStatsUser> findByUserId(long userId, int start,
212                    int end,
213                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator);
214    
215            /**
216            * Returns an ordered range of all the message boards stats users where userId = &#63;.
217            *
218            * <p>
219            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
220            * </p>
221            *
222            * @param userId the user ID
223            * @param start the lower bound of the range of message boards stats users
224            * @param end the upper bound of the range of message boards stats users (not inclusive)
225            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
226            * @param retrieveFromCache whether to retrieve from the finder cache
227            * @return the ordered range of matching message boards stats users
228            */
229            public java.util.List<MBStatsUser> findByUserId(long userId, int start,
230                    int end,
231                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator,
232                    boolean retrieveFromCache);
233    
234            /**
235            * Returns the first message boards stats user in the ordered set where userId = &#63;.
236            *
237            * @param userId the user ID
238            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
239            * @return the first matching message boards stats user
240            * @throws NoSuchStatsUserException if a matching message boards stats user could not be found
241            */
242            public MBStatsUser findByUserId_First(long userId,
243                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator)
244                    throws com.liferay.portlet.messageboards.exception.NoSuchStatsUserException;
245    
246            /**
247            * Returns the first message boards stats user in the ordered set where userId = &#63;.
248            *
249            * @param userId the user ID
250            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
251            * @return the first matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
252            */
253            public MBStatsUser fetchByUserId_First(long userId,
254                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator);
255    
256            /**
257            * Returns the last message boards stats user in the ordered set where userId = &#63;.
258            *
259            * @param userId the user ID
260            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
261            * @return the last matching message boards stats user
262            * @throws NoSuchStatsUserException if a matching message boards stats user could not be found
263            */
264            public MBStatsUser findByUserId_Last(long userId,
265                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator)
266                    throws com.liferay.portlet.messageboards.exception.NoSuchStatsUserException;
267    
268            /**
269            * Returns the last message boards stats user in the ordered set where userId = &#63;.
270            *
271            * @param userId the user ID
272            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
273            * @return the last matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
274            */
275            public MBStatsUser fetchByUserId_Last(long userId,
276                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator);
277    
278            /**
279            * Returns the message boards stats users before and after the current message boards stats user in the ordered set where userId = &#63;.
280            *
281            * @param statsUserId the primary key of the current message boards stats user
282            * @param userId the user ID
283            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
284            * @return the previous, current, and next message boards stats user
285            * @throws NoSuchStatsUserException if a message boards stats user with the primary key could not be found
286            */
287            public MBStatsUser[] findByUserId_PrevAndNext(long statsUserId,
288                    long userId,
289                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator)
290                    throws com.liferay.portlet.messageboards.exception.NoSuchStatsUserException;
291    
292            /**
293            * Removes all the message boards stats users where userId = &#63; from the database.
294            *
295            * @param userId the user ID
296            */
297            public void removeByUserId(long userId);
298    
299            /**
300            * Returns the number of message boards stats users where userId = &#63;.
301            *
302            * @param userId the user ID
303            * @return the number of matching message boards stats users
304            */
305            public int countByUserId(long userId);
306    
307            /**
308            * Returns the message boards stats user where groupId = &#63; and userId = &#63; or throws a {@link NoSuchStatsUserException} if it could not be found.
309            *
310            * @param groupId the group ID
311            * @param userId the user ID
312            * @return the matching message boards stats user
313            * @throws NoSuchStatsUserException if a matching message boards stats user could not be found
314            */
315            public MBStatsUser findByG_U(long groupId, long userId)
316                    throws com.liferay.portlet.messageboards.exception.NoSuchStatsUserException;
317    
318            /**
319            * 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.
320            *
321            * @param groupId the group ID
322            * @param userId the user ID
323            * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
324            */
325            public MBStatsUser fetchByG_U(long groupId, long userId);
326    
327            /**
328            * 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.
329            *
330            * @param groupId the group ID
331            * @param userId the user ID
332            * @param retrieveFromCache whether to retrieve from the finder cache
333            * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
334            */
335            public MBStatsUser fetchByG_U(long groupId, long userId,
336                    boolean retrieveFromCache);
337    
338            /**
339            * Removes the message boards stats user where groupId = &#63; and userId = &#63; from the database.
340            *
341            * @param groupId the group ID
342            * @param userId the user ID
343            * @return the message boards stats user that was removed
344            */
345            public MBStatsUser removeByG_U(long groupId, long userId)
346                    throws com.liferay.portlet.messageboards.exception.NoSuchStatsUserException;
347    
348            /**
349            * Returns the number of message boards stats users where groupId = &#63; and userId = &#63;.
350            *
351            * @param groupId the group ID
352            * @param userId the user ID
353            * @return the number of matching message boards stats users
354            */
355            public int countByG_U(long groupId, long userId);
356    
357            /**
358            * Returns all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
359            *
360            * @param groupId the group ID
361            * @param userId the user ID
362            * @param messageCount the message count
363            * @return the matching message boards stats users
364            */
365            public java.util.List<MBStatsUser> findByG_NotU_NotM(long groupId,
366                    long userId, int messageCount);
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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
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            */
382            public java.util.List<MBStatsUser> findByG_NotU_NotM(long groupId,
383                    long userId, int messageCount, int start, int end);
384    
385            /**
386            * Returns an ordered range of all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
387            *
388            * <p>
389            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
390            * </p>
391            *
392            * @param groupId the group ID
393            * @param userId the user ID
394            * @param messageCount the message count
395            * @param start the lower bound of the range of message boards stats users
396            * @param end the upper bound of the range of message boards stats users (not inclusive)
397            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
398            * @return the ordered range of matching message boards stats users
399            */
400            public java.util.List<MBStatsUser> findByG_NotU_NotM(long groupId,
401                    long userId, int messageCount, int start, int end,
402                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator);
403    
404            /**
405            * Returns an ordered range of all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
406            *
407            * <p>
408            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
409            * </p>
410            *
411            * @param groupId the group ID
412            * @param userId the user ID
413            * @param messageCount the message count
414            * @param start the lower bound of the range of message boards stats users
415            * @param end the upper bound of the range of message boards stats users (not inclusive)
416            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
417            * @param retrieveFromCache whether to retrieve from the finder cache
418            * @return the ordered range of matching message boards stats users
419            */
420            public java.util.List<MBStatsUser> findByG_NotU_NotM(long groupId,
421                    long userId, int messageCount, int start, int end,
422                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator,
423                    boolean retrieveFromCache);
424    
425            /**
426            * Returns the first message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
427            *
428            * @param groupId the group ID
429            * @param userId the user ID
430            * @param messageCount the message count
431            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
432            * @return the first matching message boards stats user
433            * @throws NoSuchStatsUserException if a matching message boards stats user could not be found
434            */
435            public MBStatsUser findByG_NotU_NotM_First(long groupId, long userId,
436                    int messageCount,
437                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator)
438                    throws com.liferay.portlet.messageboards.exception.NoSuchStatsUserException;
439    
440            /**
441            * Returns the first message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
442            *
443            * @param groupId the group ID
444            * @param userId the user ID
445            * @param messageCount the message count
446            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
447            * @return the first matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
448            */
449            public MBStatsUser fetchByG_NotU_NotM_First(long groupId, long userId,
450                    int messageCount,
451                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator);
452    
453            /**
454            * Returns the last 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 last matching message boards stats user
461            * @throws NoSuchStatsUserException if a matching message boards stats user could not be found
462            */
463            public MBStatsUser findByG_NotU_NotM_Last(long groupId, long userId,
464                    int messageCount,
465                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator)
466                    throws com.liferay.portlet.messageboards.exception.NoSuchStatsUserException;
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, or <code>null</code> if a matching message boards stats user could not be found
476            */
477            public MBStatsUser fetchByG_NotU_NotM_Last(long groupId, long userId,
478                    int messageCount,
479                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator);
480    
481            /**
482            * 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;.
483            *
484            * @param statsUserId the primary key of the current message boards stats user
485            * @param groupId the group ID
486            * @param userId the user ID
487            * @param messageCount the message count
488            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
489            * @return the previous, current, and next message boards stats user
490            * @throws NoSuchStatsUserException if a message boards stats user with the primary key could not be found
491            */
492            public MBStatsUser[] findByG_NotU_NotM_PrevAndNext(long statsUserId,
493                    long groupId, long userId, int messageCount,
494                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator)
495                    throws com.liferay.portlet.messageboards.exception.NoSuchStatsUserException;
496    
497            /**
498            * Removes all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63; from the database.
499            *
500            * @param groupId the group ID
501            * @param userId the user ID
502            * @param messageCount the message count
503            */
504            public void removeByG_NotU_NotM(long groupId, long userId, int messageCount);
505    
506            /**
507            * Returns the number of message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
508            *
509            * @param groupId the group ID
510            * @param userId the user ID
511            * @param messageCount the message count
512            * @return the number of matching message boards stats users
513            */
514            public int countByG_NotU_NotM(long groupId, long userId, int messageCount);
515    
516            /**
517            * Caches the message boards stats user in the entity cache if it is enabled.
518            *
519            * @param mbStatsUser the message boards stats user
520            */
521            public void cacheResult(MBStatsUser mbStatsUser);
522    
523            /**
524            * Caches the message boards stats users in the entity cache if it is enabled.
525            *
526            * @param mbStatsUsers the message boards stats users
527            */
528            public void cacheResult(java.util.List<MBStatsUser> mbStatsUsers);
529    
530            /**
531            * Creates a new message boards stats user with the primary key. Does not add the message boards stats user to the database.
532            *
533            * @param statsUserId the primary key for the new message boards stats user
534            * @return the new message boards stats user
535            */
536            public MBStatsUser create(long statsUserId);
537    
538            /**
539            * Removes the message boards stats user with the primary key from the database. Also notifies the appropriate model listeners.
540            *
541            * @param statsUserId the primary key of the message boards stats user
542            * @return the message boards stats user that was removed
543            * @throws NoSuchStatsUserException if a message boards stats user with the primary key could not be found
544            */
545            public MBStatsUser remove(long statsUserId)
546                    throws com.liferay.portlet.messageboards.exception.NoSuchStatsUserException;
547    
548            public MBStatsUser updateImpl(MBStatsUser mbStatsUser);
549    
550            /**
551            * Returns the message boards stats user with the primary key or throws a {@link NoSuchStatsUserException} if it could not be found.
552            *
553            * @param statsUserId the primary key of the message boards stats user
554            * @return the message boards stats user
555            * @throws NoSuchStatsUserException if a message boards stats user with the primary key could not be found
556            */
557            public MBStatsUser findByPrimaryKey(long statsUserId)
558                    throws com.liferay.portlet.messageboards.exception.NoSuchStatsUserException;
559    
560            /**
561            * Returns the message boards stats user with the primary key or returns <code>null</code> if it could not be found.
562            *
563            * @param statsUserId the primary key of the message boards stats user
564            * @return the message boards stats user, or <code>null</code> if a message boards stats user with the primary key could not be found
565            */
566            public MBStatsUser fetchByPrimaryKey(long statsUserId);
567    
568            @Override
569            public java.util.Map<java.io.Serializable, MBStatsUser> fetchByPrimaryKeys(
570                    java.util.Set<java.io.Serializable> primaryKeys);
571    
572            /**
573            * Returns all the message boards stats users.
574            *
575            * @return the message boards stats users
576            */
577            public java.util.List<MBStatsUser> findAll();
578    
579            /**
580            * Returns a range of all the message boards stats users.
581            *
582            * <p>
583            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
584            * </p>
585            *
586            * @param start the lower bound of the range of message boards stats users
587            * @param end the upper bound of the range of message boards stats users (not inclusive)
588            * @return the range of message boards stats users
589            */
590            public java.util.List<MBStatsUser> findAll(int start, int end);
591    
592            /**
593            * Returns an ordered range of all the message boards stats users.
594            *
595            * <p>
596            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
597            * </p>
598            *
599            * @param start the lower bound of the range of message boards stats users
600            * @param end the upper bound of the range of message boards stats users (not inclusive)
601            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
602            * @return the ordered range of message boards stats users
603            */
604            public java.util.List<MBStatsUser> findAll(int start, int end,
605                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator);
606    
607            /**
608            * Returns an ordered range of all the message boards stats users.
609            *
610            * <p>
611            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
612            * </p>
613            *
614            * @param start the lower bound of the range of message boards stats users
615            * @param end the upper bound of the range of message boards stats users (not inclusive)
616            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
617            * @param retrieveFromCache whether to retrieve from the finder cache
618            * @return the ordered range of message boards stats users
619            */
620            public java.util.List<MBStatsUser> findAll(int start, int end,
621                    com.liferay.portal.kernel.util.OrderByComparator<MBStatsUser> orderByComparator,
622                    boolean retrieveFromCache);
623    
624            /**
625            * Removes all the message boards stats users from the database.
626            */
627            public void removeAll();
628    
629            /**
630            * Returns the number of message boards stats users.
631            *
632            * @return the number of message boards stats users
633            */
634            public int countAll();
635    }